OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; | 5 library dart2js; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection' show Queue, LinkedHashMap; | 8 import 'dart:collection' show Queue, LinkedHashMap; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 import 'dart:uri'; | 10 import 'dart:uri'; |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 code that is reachable from [main]. This option is useful for | 399 code that is reachable from [main]. This option is useful for |
400 finding errors in libraries, but using it can result in bigger and | 400 finding errors in libraries, but using it can result in bigger and |
401 slower output. | 401 slower output. |
402 | 402 |
403 --analyze-only | 403 --analyze-only |
404 Analyze but do not generate code. | 404 Analyze but do not generate code. |
405 | 405 |
406 --minify | 406 --minify |
407 Generate minified output. | 407 Generate minified output. |
408 | 408 |
| 409 --disallow-unsafe-eval |
| 410 Disable dynamic generation of code in the generated output. This is |
| 411 necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/). |
| 412 |
409 --suppress-warnings | 413 --suppress-warnings |
410 Do not display any warnings. | 414 Do not display any warnings. |
411 | 415 |
412 --enable-diagnostic-colors | 416 --enable-diagnostic-colors |
413 Add colors to diagnostic messages. | 417 Add colors to diagnostic messages. |
414 | 418 |
415 The following options are only used for compiler development and may | 419 The following options are only used for compiler development and may |
416 be removed in a future version: | 420 be removed in a future version: |
417 | 421 |
418 --output-type=dart | 422 --output-type=dart |
419 Output Dart code instead of JavaScript. | 423 Output Dart code instead of JavaScript. |
420 | 424 |
421 --throw-on-error | 425 --throw-on-error |
422 Throw an exception if a compile-time error is detected. | 426 Throw an exception if a compile-time error is detected. |
423 | 427 |
424 --library-root=<directory> | 428 --library-root=<directory> |
425 Where to find the Dart platform libraries. | 429 Where to find the Dart platform libraries. |
426 | 430 |
427 --allow-mock-compilation | 431 --allow-mock-compilation |
428 Do not generate a call to main if either of the following | 432 Do not generate a call to main if either of the following |
429 libraries are used: dart:dom, dart:html dart:io. | 433 libraries are used: dart:dom, dart:html dart:io. |
430 | 434 |
431 --enable-concrete-type-inference | 435 --enable-concrete-type-inference |
432 Enable experimental concrete type inference. | 436 Enable experimental concrete type inference. |
433 | 437 |
434 --disable-native-live-type-analysis | 438 --disable-native-live-type-analysis |
435 Disable the optimization that removes unused native types from dart:html | 439 Disable the optimization that removes unused native types from dart:html |
436 and related libraries. | 440 and related libraries. |
437 | 441 |
438 --disallow-unsafe-eval | |
439 Disable dynamic generation of code in the generated output. This is | |
440 necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/). | |
441 This flag is not continuously tested. Please report breakages and we | |
442 will fix them as soon as possible. | |
443 | |
444 --reject-deprecated-language-features | 442 --reject-deprecated-language-features |
445 Reject deprecated language features. Without this option, the | 443 Reject deprecated language features. Without this option, the |
446 compiler will accept language features that are no longer valid | 444 compiler will accept language features that are no longer valid |
447 according to The Dart Programming Language Specification, version | 445 according to The Dart Programming Language Specification, version |
448 0.12, M1. | 446 0.12, M1. |
449 | 447 |
450 --report-sdk-use-of-deprecated-language-features | 448 --report-sdk-use-of-deprecated-language-features |
451 Report use of deprecated features in Dart platform libraries. | 449 Report use of deprecated features in Dart platform libraries. |
452 Without this option, the compiler will silently accept use of | 450 Without this option, the compiler will silently accept use of |
453 deprecated language features from these libraries. The option | 451 deprecated language features from these libraries. The option |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 } catch (ignored) { | 486 } catch (ignored) { |
489 print('Internal error: error while printing exception'); | 487 print('Internal error: error while printing exception'); |
490 } | 488 } |
491 try { | 489 try { |
492 print(trace); | 490 print(trace); |
493 } finally { | 491 } finally { |
494 exit(253); // 253 is recognized as a crash by our test scripts. | 492 exit(253); // 253 is recognized as a crash by our test scripts. |
495 } | 493 } |
496 } | 494 } |
497 } | 495 } |
OLD | NEW |