| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 setOutputType), | 331 setOutputType), |
| 332 new OptionHandler(Flags.useCpsIr, passThrough), | 332 new OptionHandler(Flags.useCpsIr, passThrough), |
| 333 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), | 333 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), |
| 334 new OptionHandler(Flags.verbose, setVerbose), | 334 new OptionHandler(Flags.verbose, setVerbose), |
| 335 new OptionHandler(Flags.version, (_) => wantVersion = true), | 335 new OptionHandler(Flags.version, (_) => wantVersion = true), |
| 336 new OptionHandler('--library-root=.+', setLibraryRoot), | 336 new OptionHandler('--library-root=.+', setLibraryRoot), |
| 337 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), | 337 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), |
| 338 new OptionHandler(Flags.allowMockCompilation, passThrough), | 338 new OptionHandler(Flags.allowMockCompilation, passThrough), |
| 339 new OptionHandler(Flags.fastStartup, passThrough), | 339 new OptionHandler(Flags.fastStartup, passThrough), |
| 340 new OptionHandler(Flags.genericMethodSyntax, passThrough), | 340 new OptionHandler(Flags.genericMethodSyntax, passThrough), |
| 341 new OptionHandler(Flags.initializingFormalAccess, passThrough), |
| 341 new OptionHandler('${Flags.minify}|-m', implyCompilation), | 342 new OptionHandler('${Flags.minify}|-m', implyCompilation), |
| 342 new OptionHandler(Flags.preserveUris, passThrough), | 343 new OptionHandler(Flags.preserveUris, passThrough), |
| 343 new OptionHandler('--force-strip=.*', setStrip), | 344 new OptionHandler('--force-strip=.*', setStrip), |
| 344 new OptionHandler(Flags.disableDiagnosticColors, | 345 new OptionHandler(Flags.disableDiagnosticColors, |
| 345 (_) => diagnosticHandler.enableColors = false), | 346 (_) => diagnosticHandler.enableColors = false), |
| 346 new OptionHandler(Flags.enableDiagnosticColors, | 347 new OptionHandler(Flags.enableDiagnosticColors, |
| 347 (_) => diagnosticHandler.enableColors = true), | 348 (_) => diagnosticHandler.enableColors = true), |
| 348 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 349 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
| 349 (_) => setCheckedMode(Flags.enableCheckedMode)), | 350 (_) => setCheckedMode(Flags.enableCheckedMode)), |
| 350 new OptionHandler(Flags.trustTypeAnnotations, | 351 new OptionHandler(Flags.trustTypeAnnotations, |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 @override | 911 @override |
| 911 void close() { | 912 void close() { |
| 912 // Do nothing. | 913 // Do nothing. |
| 913 } | 914 } |
| 914 | 915 |
| 915 @override | 916 @override |
| 916 void addError(errorEvent, [StackTrace stackTrace]) { | 917 void addError(errorEvent, [StackTrace stackTrace]) { |
| 917 // Ignore | 918 // Ignore |
| 918 } | 919 } |
| 919 } | 920 } |
| OLD | NEW |