Chromium Code Reviews| 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' | 7 import 'dart:async' |
| 8 show Future, EventSink; | 8 show Future, EventSink; |
| 9 import 'dart:io' | 9 import 'dart:io' |
| 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException; | 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 new OptionHandler('--analyze-all', passThrough), | 272 new OptionHandler('--analyze-all', passThrough), |
| 273 new OptionHandler('--analyze-only', setAnalyzeOnly), | 273 new OptionHandler('--analyze-only', setAnalyzeOnly), |
| 274 new OptionHandler('--analyze-signatures-only', passThrough), | 274 new OptionHandler('--analyze-signatures-only', passThrough), |
| 275 new OptionHandler('--disable-native-live-type-analysis', passThrough), | 275 new OptionHandler('--disable-native-live-type-analysis', passThrough), |
| 276 new OptionHandler('--categories=.*', setCategories), | 276 new OptionHandler('--categories=.*', setCategories), |
| 277 new OptionHandler('--disable-type-inference', passThrough), | 277 new OptionHandler('--disable-type-inference', passThrough), |
| 278 new OptionHandler('--terse', passThrough), | 278 new OptionHandler('--terse', passThrough), |
| 279 new OptionHandler('--dump-info', passThrough), | 279 new OptionHandler('--dump-info', passThrough), |
| 280 new OptionHandler('--disallow-unsafe-eval', | 280 new OptionHandler('--disallow-unsafe-eval', |
| 281 (_) => hasDisallowUnsafeEval = true), | 281 (_) => hasDisallowUnsafeEval = true), |
| 282 new OptionHandler('--hide-package-warnings', passThrough), | 282 new OptionHandler('--show-package-warnings', passThrough), |
| 283 new OptionHandler('-D.+=.*', addInEnvironment), | 283 new OptionHandler('-D.+=.*', addInEnvironment), |
| 284 | 284 |
| 285 // The following two options must come last. | 285 // The following two options must come last. |
| 286 new OptionHandler('-.*', (String argument) { | 286 new OptionHandler('-.*', (String argument) { |
| 287 helpAndFail('Error: Unknown option "$argument".'); | 287 helpAndFail('Error: Unknown option "$argument".'); |
| 288 }), | 288 }), |
| 289 new OptionHandler('.*', (String argument) { | 289 new OptionHandler('.*', (String argument) { |
| 290 arguments.add(nativeToUriPath(argument)); | 290 arguments.add(nativeToUriPath(argument)); |
| 291 }) | 291 }) |
| 292 ]; | 292 ]; |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 551 --suppress-hints | 551 --suppress-hints |
| 552 Do not display any hints. | 552 Do not display any hints. |
| 553 | 553 |
| 554 --enable-diagnostic-colors | 554 --enable-diagnostic-colors |
| 555 Add colors to diagnostic messages. | 555 Add colors to diagnostic messages. |
| 556 | 556 |
| 557 --terse | 557 --terse |
| 558 Emit diagnostics without suggestions for how to get rid of the diagnosed | 558 Emit diagnostics without suggestions for how to get rid of the diagnosed |
| 559 problems. | 559 problems. |
| 560 | 560 |
| 561 --hide-package-warnings | 561 --show-package-warnings |
| 562 Hide warnings and hints generated from packages. | 562 Show warnings and hints generated from packages that are not directly |
|
floitsch
2014/03/03 13:30:23
What does "directly analyzed" mean?
I would keep
Johnni Winther
2014/03/03 13:40:26
"directly analyzed" means given as entry point. If
| |
| 563 analyzed by dart2js. | |
| 563 | 564 |
| 564 The following options are only used for compiler development and may | 565 The following options are only used for compiler development and may |
| 565 be removed in a future version: | 566 be removed in a future version: |
| 566 | 567 |
| 567 --output-type=dart | 568 --output-type=dart |
| 568 Output Dart code instead of JavaScript. | 569 Output Dart code instead of JavaScript. |
| 569 | 570 |
| 570 --throw-on-error | 571 --throw-on-error |
| 571 Throw an exception if a compile-time error is detected. | 572 Throw an exception if a compile-time error is detected. |
| 572 | 573 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 642 } | 643 } |
| 643 } | 644 } |
| 644 | 645 |
| 645 try { | 646 try { |
| 646 return compilerMain(arguments).catchError(onError); | 647 return compilerMain(arguments).catchError(onError); |
| 647 } catch (exception, trace) { | 648 } catch (exception, trace) { |
| 648 onError(exception, trace); | 649 onError(exception, trace); |
| 649 return new Future.value(); | 650 return new Future.value(); |
| 650 } | 651 } |
| 651 } | 652 } |
| OLD | NEW |