OLD | NEW |
1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2017, 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 # Each entry in this map corresponds to a diagnostic message. Ideally, each | 5 # Each entry in this map corresponds to a diagnostic message. Ideally, each |
6 # entry contains three parts: | 6 # entry contains three parts: |
7 # | 7 # |
8 # 1. A message template (template). | 8 # 1. A message template (template). |
9 # | 9 # |
10 # 2. A suggestion for how to correct the problem (tip). | 10 # 2. A suggestion for how to correct the problem (tip). |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 dart2jsCode: FASTA_IGNORED | 442 dart2jsCode: FASTA_IGNORED |
443 | 443 |
444 FinalFieldWithoutInitializer: | 444 FinalFieldWithoutInitializer: |
445 template: "A 'final' field must be initialized." | 445 template: "A 'final' field must be initialized." |
446 tip: "Try adding '= <initializer>'." | 446 tip: "Try adding '= <initializer>'." |
447 dart2jsCode: FASTA_IGNORED | 447 dart2jsCode: FASTA_IGNORED |
448 | 448 |
449 MetadataTypeArguments: | 449 MetadataTypeArguments: |
450 template: "An annotation (metadata) can't use type arguments." | 450 template: "An annotation (metadata) can't use type arguments." |
451 dart2jsCode: FASTA_IGNORED | 451 dart2jsCode: FASTA_IGNORED |
| 452 |
| 453 ConstructorNotFound: |
| 454 template: "Couldn't find constructor '#name'." |
| 455 |
| 456 RedirectionTargetNotFound: |
| 457 template: "Redirection constructor target not found: '#name'" |
| 458 |
| 459 CyclicTypedef: |
| 460 template: "The typedef '#name' has a reference to itself." |
| 461 |
| 462 TypeNotFound: |
| 463 template: "Type '#name' not found." |
| 464 |
| 465 NonInstanceTypeVariableUse: |
| 466 template: "Can only use type variables in instance methods." |
| 467 |
| 468 GetterNotFound: |
| 469 template: "Getter not found: '#name'." |
| 470 |
| 471 SetterNotFound: |
| 472 template: "Setter not found: '#name'." |
| 473 |
| 474 MethodNotFound: |
| 475 template: "Method not found: '#name'." |
| 476 |
| 477 AbstractClassInstantiation: |
| 478 template: "The class '#name' is abstract and can't be instantiated." |
| 479 |
| 480 ListLiteralTooManyTypeArguments: |
| 481 template: "Too many type arguments on List literal." |
| 482 |
| 483 ListLiteralTypeArgumentMismatch: |
| 484 template: "Map literal requires two type arguments." |
| 485 |
| 486 NotAType: |
| 487 template: "'#name' isn't a type." |
| 488 |
| 489 FastaUsageShort: |
| 490 template: >- |
| 491 Frequently used options: |
| 492 |
| 493 -o <file> Generate the output into <file>. |
| 494 -h Display this message (add -v for information about all options). |
| 495 |
| 496 FastaUsageLong: |
| 497 template: >- |
| 498 Supported options: |
| 499 |
| 500 -o <file>, --output=<file> |
| 501 Generate the output into <file>. |
| 502 |
| 503 -h, /h, /?, --help |
| 504 Display this message (add -v for information about all options). |
| 505 |
| 506 -v, --verbose |
| 507 Display verbose information. |
| 508 |
| 509 -- |
| 510 Stop option parsing, the rest of the command line is assumed to be |
| 511 file names or arguments to the Dart program. |
| 512 |
| 513 --packages=<file> |
| 514 Use package resolution configuration <file>, which should contain a mapp
ing |
| 515 of package names to paths. |
| 516 |
| 517 --platform=<file> |
| 518 Read the SDK platform from <file>, which should be in Dill/Kernel IR for
mat |
| 519 and contain the Dart SDK. |
| 520 |
| 521 --target=none|vm|vmcc|vmreify|flutter |
| 522 Specify the target configuration. |
| 523 |
| 524 --verify |
| 525 Check that the generated output is free of various problems. This is mos
tly |
| 526 useful for developers of this compiler or Kernel transformations. |
| 527 |
| 528 --dump-ir |
| 529 Print compiled libraries in Kernel source notation. |
| 530 |
| 531 --exclude-source |
| 532 Do not include source code in the dill file. |
| 533 |
| 534 --compile-sdk=<patched_sdk> |
| 535 Compile the SDK from scratch instead of reading it from 'platform.dill'. |
| 536 |
| 537 --sdk=<patched_sdk> |
| 538 Location of the SDK sources for use when compiling additional platform |
| 539 libraries. |
| 540 |
| 541 --fatal=errors |
| 542 --fatal=warnings |
| 543 --fatal=nits |
| 544 Makes messages of the given kinds fatal, that is, immediately stop the |
| 545 compiler with a non-zero exit-code. In --verbose mode, also display an |
| 546 internal stack trace from the compiler. Multiple kinds can be separated
by |
| 547 commas, for example, --fatal=errors,warnings. |
| 548 |
| 549 FastaCLIArgumentRequired: |
| 550 template: "Expected value after '#name'." |
OLD | NEW |