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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 setOutputType), | 328 setOutputType), |
329 new OptionHandler(Flags.useKernel, passThrough), | 329 new OptionHandler(Flags.useKernel, passThrough), |
330 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), | 330 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), |
331 new OptionHandler(Flags.verbose, setVerbose), | 331 new OptionHandler(Flags.verbose, setVerbose), |
332 new OptionHandler(Flags.version, (_) => wantVersion = true), | 332 new OptionHandler(Flags.version, (_) => wantVersion = true), |
333 new OptionHandler('--library-root=.+', setLibraryRoot), | 333 new OptionHandler('--library-root=.+', setLibraryRoot), |
334 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), | 334 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), |
335 new OptionHandler(Flags.allowMockCompilation, passThrough), | 335 new OptionHandler(Flags.allowMockCompilation, passThrough), |
336 new OptionHandler(Flags.fastStartup, passThrough), | 336 new OptionHandler(Flags.fastStartup, passThrough), |
337 new OptionHandler(Flags.genericMethodSyntax, ignoreOption), | 337 new OptionHandler(Flags.genericMethodSyntax, ignoreOption), |
338 new OptionHandler(Flags.initializingFormalAccess, passThrough), | 338 new OptionHandler(Flags.initializingFormalAccess, ignoreOption), |
339 new OptionHandler('${Flags.minify}|-m', implyCompilation), | 339 new OptionHandler('${Flags.minify}|-m', implyCompilation), |
340 new OptionHandler(Flags.preserveUris, passThrough), | 340 new OptionHandler(Flags.preserveUris, passThrough), |
341 new OptionHandler('--force-strip=.*', setStrip), | 341 new OptionHandler('--force-strip=.*', setStrip), |
342 new OptionHandler(Flags.disableDiagnosticColors, (_) { | 342 new OptionHandler(Flags.disableDiagnosticColors, (_) { |
343 enableColors = false; | 343 enableColors = false; |
344 }), | 344 }), |
345 new OptionHandler(Flags.enableDiagnosticColors, (_) { | 345 new OptionHandler(Flags.enableDiagnosticColors, (_) { |
346 enableColors = true; | 346 enableColors = true; |
347 }), | 347 }), |
348 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 348 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 @override | 1033 @override |
1034 void close() { | 1034 void close() { |
1035 // Do nothing. | 1035 // Do nothing. |
1036 } | 1036 } |
1037 | 1037 |
1038 @override | 1038 @override |
1039 void addError(errorEvent, [StackTrace stackTrace]) { | 1039 void addError(errorEvent, [StackTrace stackTrace]) { |
1040 // Ignore | 1040 // Ignore |
1041 } | 1041 } |
1042 } | 1042 } |
OLD | NEW |