| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 new OptionHandler('--enable-null-aware-operators', (_) { | 388 new OptionHandler('--enable-null-aware-operators', (_) { |
| 389 hints.add("Option '--enable-null-aware-operators' is no longer needed. " | 389 hints.add("Option '--enable-null-aware-operators' is no longer needed. " |
| 390 "Null aware operators are supported by default."); | 390 "Null aware operators are supported by default."); |
| 391 }), | 391 }), |
| 392 new OptionHandler('--enable-enum', (_) { | 392 new OptionHandler('--enable-enum', (_) { |
| 393 hints.add("Option '--enable-enum' is no longer needed. " | 393 hints.add("Option '--enable-enum' is no longer needed. " |
| 394 "Enums are supported by default."); | 394 "Enums are supported by default."); |
| 395 }), | 395 }), |
| 396 new OptionHandler(Flags.allowNativeExtensions, setAllowNativeExtensions), | 396 new OptionHandler(Flags.allowNativeExtensions, setAllowNativeExtensions), |
| 397 new OptionHandler(Flags.generateCodeWithCompileTimeErrors, passThrough), | 397 new OptionHandler(Flags.generateCodeWithCompileTimeErrors, passThrough), |
| 398 new OptionHandler(Flags.useNewSourceInfo, passThrough), |
| 398 new OptionHandler(Flags.testMode, passThrough), | 399 new OptionHandler(Flags.testMode, passThrough), |
| 399 | 400 |
| 400 // The following three options must come last. | 401 // The following three options must come last. |
| 401 new OptionHandler('-D.+=.*', addInEnvironment), | 402 new OptionHandler('-D.+=.*', addInEnvironment), |
| 402 new OptionHandler('-.*', (String argument) { | 403 new OptionHandler('-.*', (String argument) { |
| 403 helpAndFail("Unknown option '$argument'."); | 404 helpAndFail("Unknown option '$argument'."); |
| 404 }), | 405 }), |
| 405 new OptionHandler('.*', (String argument) { | 406 new OptionHandler('.*', (String argument) { |
| 406 arguments.add(nativeToUriPath(argument)); | 407 arguments.add(nativeToUriPath(argument)); |
| 407 }) | 408 }) |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 @override | 1031 @override |
| 1031 void close() { | 1032 void close() { |
| 1032 // Do nothing. | 1033 // Do nothing. |
| 1033 } | 1034 } |
| 1034 | 1035 |
| 1035 @override | 1036 @override |
| 1036 void addError(errorEvent, [StackTrace stackTrace]) { | 1037 void addError(errorEvent, [StackTrace stackTrace]) { |
| 1037 // Ignore | 1038 // Ignore |
| 1038 } | 1039 } |
| 1039 } | 1040 } |
| OLD | NEW |