| 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.useMultiSourceInfo, passThrough), |
| 398 new OptionHandler(Flags.useNewSourceInfo, passThrough), | 399 new OptionHandler(Flags.useNewSourceInfo, passThrough), |
| 399 new OptionHandler(Flags.testMode, passThrough), | 400 new OptionHandler(Flags.testMode, passThrough), |
| 400 | 401 |
| 401 // The following three options must come last. | 402 // The following three options must come last. |
| 402 new OptionHandler('-D.+=.*', addInEnvironment), | 403 new OptionHandler('-D.+=.*', addInEnvironment), |
| 403 new OptionHandler('-.*', (String argument) { | 404 new OptionHandler('-.*', (String argument) { |
| 404 helpAndFail("Unknown option '$argument'."); | 405 helpAndFail("Unknown option '$argument'."); |
| 405 }), | 406 }), |
| 406 new OptionHandler('.*', (String argument) { | 407 new OptionHandler('.*', (String argument) { |
| 407 arguments.add(nativeToUriPath(argument)); | 408 arguments.add(nativeToUriPath(argument)); |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 @override | 1028 @override |
| 1028 void add(String event) { | 1029 void add(String event) { |
| 1029 sb.write(event); | 1030 sb.write(event); |
| 1030 } | 1031 } |
| 1031 | 1032 |
| 1032 @override | 1033 @override |
| 1033 void close() { | 1034 void close() { |
| 1034 // Do nothing. | 1035 // Do nothing. |
| 1035 } | 1036 } |
| 1036 } | 1037 } |
| OLD | NEW |