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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 passThrough(Flags.suppressWarnings); | 317 passThrough(Flags.suppressWarnings); |
318 }), | 318 }), |
319 new OptionHandler(Flags.fatalWarnings, passThrough), | 319 new OptionHandler(Flags.fatalWarnings, passThrough), |
320 new OptionHandler(Flags.suppressHints, (_) { | 320 new OptionHandler(Flags.suppressHints, (_) { |
321 showHints = false; | 321 showHints = false; |
322 }), | 322 }), |
323 // TODO(sigmund): remove entirely after Dart 1.20 | 323 // TODO(sigmund): remove entirely after Dart 1.20 |
324 new OptionHandler( | 324 new OptionHandler( |
325 '--output-type=dart|--output-type=dart-multi|--output-type=js', | 325 '--output-type=dart|--output-type=dart-multi|--output-type=js', |
326 setOutputType), | 326 setOutputType), |
| 327 new OptionHandler(Flags.useKernel, passThrough), |
327 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), | 328 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), |
328 new OptionHandler(Flags.verbose, setVerbose), | 329 new OptionHandler(Flags.verbose, setVerbose), |
329 new OptionHandler(Flags.version, (_) => wantVersion = true), | 330 new OptionHandler(Flags.version, (_) => wantVersion = true), |
330 new OptionHandler('--library-root=.+', setLibraryRoot), | 331 new OptionHandler('--library-root=.+', setLibraryRoot), |
331 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), | 332 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), |
332 new OptionHandler(Flags.allowMockCompilation, passThrough), | 333 new OptionHandler(Flags.allowMockCompilation, passThrough), |
333 new OptionHandler(Flags.fastStartup, passThrough), | 334 new OptionHandler(Flags.fastStartup, passThrough), |
334 new OptionHandler(Flags.genericMethodSyntax, passThrough), | 335 new OptionHandler(Flags.genericMethodSyntax, passThrough), |
335 new OptionHandler(Flags.initializingFormalAccess, passThrough), | 336 new OptionHandler(Flags.initializingFormalAccess, passThrough), |
336 new OptionHandler('${Flags.minify}|-m', implyCompilation), | 337 new OptionHandler('${Flags.minify}|-m', implyCompilation), |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 @override | 1029 @override |
1029 void close() { | 1030 void close() { |
1030 // Do nothing. | 1031 // Do nothing. |
1031 } | 1032 } |
1032 | 1033 |
1033 @override | 1034 @override |
1034 void addError(errorEvent, [StackTrace stackTrace]) { | 1035 void addError(errorEvent, [StackTrace stackTrace]) { |
1035 // Ignore | 1036 // Ignore |
1036 } | 1037 } |
1037 } | 1038 } |
OLD | NEW |