| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.cmdline; | 5 library dart2js.cmdline; |
| 6 | 6 |
| 7 import 'dart:async' | 7 import 'dart:async' |
| 8 show Future, EventSink; | 8 show Future, EventSink; |
| 9 import 'dart:convert' show UTF8, LineSplitter; | 9 import 'dart:convert' show UTF8, LineSplitter; |
| 10 import 'dart:io' | 10 import 'dart:io' |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 new OptionHandler(Flags.fastStartup, passThrough), | 322 new OptionHandler(Flags.fastStartup, passThrough), |
| 323 new OptionHandler('${Flags.minify}|-m', implyCompilation), | 323 new OptionHandler('${Flags.minify}|-m', implyCompilation), |
| 324 new OptionHandler(Flags.preserveUris, passThrough), | 324 new OptionHandler(Flags.preserveUris, passThrough), |
| 325 new OptionHandler('--force-strip=.*', setStrip), | 325 new OptionHandler('--force-strip=.*', setStrip), |
| 326 new OptionHandler(Flags.disableDiagnosticColors, | 326 new OptionHandler(Flags.disableDiagnosticColors, |
| 327 (_) => diagnosticHandler.enableColors = false), | 327 (_) => diagnosticHandler.enableColors = false), |
| 328 new OptionHandler(Flags.enableDiagnosticColors, | 328 new OptionHandler(Flags.enableDiagnosticColors, |
| 329 (_) => diagnosticHandler.enableColors = true), | 329 (_) => diagnosticHandler.enableColors = true), |
| 330 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 330 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
| 331 (_) => setCheckedMode(Flags.enableCheckedMode)), | 331 (_) => setCheckedMode(Flags.enableCheckedMode)), |
| 332 new OptionHandler(Flags.enableConcreteTypeInference, | |
| 333 (_) => implyCompilation( | |
| 334 Flags.enableConcreteTypeInference)), | |
| 335 new OptionHandler(Flags.trustTypeAnnotations, | 332 new OptionHandler(Flags.trustTypeAnnotations, |
| 336 (_) => setTrustTypeAnnotations( | 333 (_) => setTrustTypeAnnotations( |
| 337 Flags.trustTypeAnnotations)), | 334 Flags.trustTypeAnnotations)), |
| 338 new OptionHandler(Flags.trustPrimitives, | 335 new OptionHandler(Flags.trustPrimitives, |
| 339 (_) => setTrustPrimitives( | 336 (_) => setTrustPrimitives( |
| 340 Flags.trustPrimitives)), | 337 Flags.trustPrimitives)), |
| 341 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), | 338 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), |
| 342 new OptionHandler('--packages=.+', setPackageConfig), | 339 new OptionHandler('--packages=.+', setPackageConfig), |
| 343 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), | 340 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), |
| 344 new OptionHandler(Flags.analyzeAll, setAnalyzeAll), | 341 new OptionHandler(Flags.analyzeAll, setAnalyzeAll), |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 } else if (exitCode == 253) { | 766 } else if (exitCode == 253) { |
| 770 print(">>> TEST CRASH"); | 767 print(">>> TEST CRASH"); |
| 771 } else { | 768 } else { |
| 772 print(">>> TEST FAIL"); | 769 print(">>> TEST FAIL"); |
| 773 } | 770 } |
| 774 stderr.writeln(">>> EOF STDERR"); | 771 stderr.writeln(">>> EOF STDERR"); |
| 775 subscription.resume(); | 772 subscription.resume(); |
| 776 }); | 773 }); |
| 777 }); | 774 }); |
| 778 } | 775 } |
| OLD | NEW |