| 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' show Future, EventSink; | 7 import 'dart:async' show Future, EventSink; |
| 8 import 'dart:convert' show UTF8, LineSplitter; | 8 import 'dart:convert' show UTF8, LineSplitter; |
| 9 import 'dart:io' | 9 import 'dart:io' |
| 10 show | 10 show |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 setOutputType), | 320 setOutputType), |
| 321 new OptionHandler(Flags.useCpsIr, passThrough), | 321 new OptionHandler(Flags.useCpsIr, passThrough), |
| 322 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), | 322 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), |
| 323 new OptionHandler(Flags.verbose, setVerbose), | 323 new OptionHandler(Flags.verbose, setVerbose), |
| 324 new OptionHandler(Flags.version, (_) => wantVersion = true), | 324 new OptionHandler(Flags.version, (_) => wantVersion = true), |
| 325 new OptionHandler('--library-root=.+', setLibraryRoot), | 325 new OptionHandler('--library-root=.+', setLibraryRoot), |
| 326 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), | 326 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), |
| 327 new OptionHandler(Flags.allowMockCompilation, passThrough), | 327 new OptionHandler(Flags.allowMockCompilation, passThrough), |
| 328 new OptionHandler(Flags.fastStartup, passThrough), | 328 new OptionHandler(Flags.fastStartup, passThrough), |
| 329 new OptionHandler(Flags.conditionalDirectives, passThrough), | 329 new OptionHandler(Flags.conditionalDirectives, passThrough), |
| 330 new OptionHandler(Flags.genericMethodSyntax, passThrough), |
| 330 new OptionHandler('${Flags.minify}|-m', implyCompilation), | 331 new OptionHandler('${Flags.minify}|-m', implyCompilation), |
| 331 new OptionHandler(Flags.preserveUris, passThrough), | 332 new OptionHandler(Flags.preserveUris, passThrough), |
| 332 new OptionHandler('--force-strip=.*', setStrip), | 333 new OptionHandler('--force-strip=.*', setStrip), |
| 333 new OptionHandler(Flags.disableDiagnosticColors, | 334 new OptionHandler(Flags.disableDiagnosticColors, |
| 334 (_) => diagnosticHandler.enableColors = false), | 335 (_) => diagnosticHandler.enableColors = false), |
| 335 new OptionHandler(Flags.enableDiagnosticColors, | 336 new OptionHandler(Flags.enableDiagnosticColors, |
| 336 (_) => diagnosticHandler.enableColors = true), | 337 (_) => diagnosticHandler.enableColors = true), |
| 337 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 338 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
| 338 (_) => setCheckedMode(Flags.enableCheckedMode)), | 339 (_) => setCheckedMode(Flags.enableCheckedMode)), |
| 339 new OptionHandler(Flags.trustTypeAnnotations, | 340 new OptionHandler(Flags.trustTypeAnnotations, |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 } else if (exitCode == 253) { | 782 } else if (exitCode == 253) { |
| 782 print(">>> TEST CRASH"); | 783 print(">>> TEST CRASH"); |
| 783 } else { | 784 } else { |
| 784 print(">>> TEST FAIL"); | 785 print(">>> TEST FAIL"); |
| 785 } | 786 } |
| 786 stderr.writeln(">>> EOF STDERR"); | 787 stderr.writeln(">>> EOF STDERR"); |
| 787 subscription.resume(); | 788 subscription.resume(); |
| 788 }); | 789 }); |
| 789 }); | 790 }); |
| 790 } | 791 } |
| OLD | NEW |