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 EventSink, Future; | 7 import 'dart:async' show EventSink, Future; |
8 import 'dart:convert' show UTF8, LineSplitter; | 8 import 'dart:convert' show UTF8, LineSplitter; |
9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; | 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; |
10 | 10 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 new OptionHandler(Flags.disableInlining, implyCompilation), | 370 new OptionHandler(Flags.disableInlining, implyCompilation), |
371 new OptionHandler(Flags.disableTypeInference, implyCompilation), | 371 new OptionHandler(Flags.disableTypeInference, implyCompilation), |
372 new OptionHandler(Flags.terse, passThrough), | 372 new OptionHandler(Flags.terse, passThrough), |
373 new OptionHandler('--deferred-map=.+', implyCompilation), | 373 new OptionHandler('--deferred-map=.+', implyCompilation), |
374 new OptionHandler(Flags.dumpInfo, implyCompilation), | 374 new OptionHandler(Flags.dumpInfo, implyCompilation), |
375 new OptionHandler( | 375 new OptionHandler( |
376 '--disallow-unsafe-eval', (_) => hasDisallowUnsafeEval = true), | 376 '--disallow-unsafe-eval', (_) => hasDisallowUnsafeEval = true), |
377 new OptionHandler(Option.showPackageWarnings, passThrough), | 377 new OptionHandler(Option.showPackageWarnings, passThrough), |
378 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), | 378 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), |
379 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), | 379 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), |
380 new OptionHandler(Flags.enableAssertMessage, passThrough), | |
381 | 380 |
382 // TODO(floitsch): remove conditional directives flag. | 381 // TODO(floitsch): remove conditional directives flag. |
383 // We don't provide the info-message yet, since we haven't publicly | 382 // We don't provide the info-message yet, since we haven't publicly |
384 // launched the feature yet. | 383 // launched the feature yet. |
385 new OptionHandler(Flags.conditionalDirectives, (_) {}), | 384 new OptionHandler(Flags.conditionalDirectives, (_) {}), |
386 new OptionHandler('--enable-async', (_) { | 385 new OptionHandler('--enable-async', (_) { |
387 hints.add("Option '--enable-async' is no longer needed. " | 386 hints.add("Option '--enable-async' is no longer needed. " |
388 "Async-await is supported by default."); | 387 "Async-await is supported by default."); |
389 }), | 388 }), |
390 new OptionHandler('--enable-null-aware-operators', (_) { | 389 new OptionHandler('--enable-null-aware-operators', (_) { |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 @override | 1032 @override |
1034 void close() { | 1033 void close() { |
1035 // Do nothing. | 1034 // Do nothing. |
1036 } | 1035 } |
1037 | 1036 |
1038 @override | 1037 @override |
1039 void addError(errorEvent, [StackTrace stackTrace]) { | 1038 void addError(errorEvent, [StackTrace stackTrace]) { |
1040 // Ignore | 1039 // Ignore |
1041 } | 1040 } |
1042 } | 1041 } |
OLD | NEW |