| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 new OptionHandler(Flags.noSourceMaps, passThrough), | 343 new OptionHandler(Flags.noSourceMaps, passThrough), |
| 344 new OptionHandler(Flags.analyzeSignaturesOnly, setAnalyzeOnly), | 344 new OptionHandler(Flags.analyzeSignaturesOnly, setAnalyzeOnly), |
| 345 new OptionHandler(Flags.disableNativeLiveTypeAnalysis, passThrough), | 345 new OptionHandler(Flags.disableNativeLiveTypeAnalysis, passThrough), |
| 346 new OptionHandler('--categories=.*', setCategories), | 346 new OptionHandler('--categories=.*', setCategories), |
| 347 new OptionHandler(Flags.disableTypeInference, implyCompilation), | 347 new OptionHandler(Flags.disableTypeInference, implyCompilation), |
| 348 new OptionHandler(Flags.terse, passThrough), | 348 new OptionHandler(Flags.terse, passThrough), |
| 349 new OptionHandler('--deferred-map=.+', implyCompilation), | 349 new OptionHandler('--deferred-map=.+', implyCompilation), |
| 350 new OptionHandler(Flags.dumpInfo, setDumpInfo), | 350 new OptionHandler(Flags.dumpInfo, setDumpInfo), |
| 351 new OptionHandler('--disallow-unsafe-eval', | 351 new OptionHandler('--disallow-unsafe-eval', |
| 352 (_) => hasDisallowUnsafeEval = true), | 352 (_) => hasDisallowUnsafeEval = true), |
| 353 new OptionHandler(Flags.showPackageWarnings, passThrough), | 353 new OptionHandler(Option.showPackageWarnings, passThrough), |
| 354 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), | 354 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), |
| 355 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), | 355 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), |
| 356 new OptionHandler(Flags.enableAssertMessage, passThrough), | 356 new OptionHandler(Flags.enableAssertMessage, passThrough), |
| 357 new OptionHandler('--enable-async', (_) { | 357 new OptionHandler('--enable-async', (_) { |
| 358 diagnosticHandler.info( | 358 diagnosticHandler.info( |
| 359 "Option '--enable-async' is no longer needed. " | 359 "Option '--enable-async' is no longer needed. " |
| 360 "Async-await is supported by default.", | 360 "Async-await is supported by default.", |
| 361 api.Diagnostic.HINT); | 361 api.Diagnostic.HINT); |
| 362 }), | 362 }), |
| 363 new OptionHandler('--enable-null-aware-operators', (_) { | 363 new OptionHandler('--enable-null-aware-operators', (_) { |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 } else if (exitCode == 253) { | 766 } else if (exitCode == 253) { |
| 767 print(">>> TEST CRASH"); | 767 print(">>> TEST CRASH"); |
| 768 } else { | 768 } else { |
| 769 print(">>> TEST FAIL"); | 769 print(">>> TEST FAIL"); |
| 770 } | 770 } |
| 771 stderr.writeln(">>> EOF STDERR"); | 771 stderr.writeln(">>> EOF STDERR"); |
| 772 subscription.resume(); | 772 subscription.resume(); |
| 773 }); | 773 }); |
| 774 }); | 774 }); |
| 775 } | 775 } |
| OLD | NEW |