| 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 28 matching lines...) Expand all Loading... |
| 39 # | 39 # |
| 40 # `#character` a Unicode character. | 40 # `#character` a Unicode character. |
| 41 # | 41 # |
| 42 # `#unicode` a Unicode short identifier (U+xxxx). We use this to represent code | 42 # `#unicode` a Unicode short identifier (U+xxxx). We use this to represent code |
| 43 # units or code points. | 43 # units or code points. |
| 44 # | 44 # |
| 45 # `#name` a name (a string). | 45 # `#name` a name (a string). |
| 46 # | 46 # |
| 47 # `#name2` another name (a string). | 47 # `#name2` another name (a string). |
| 48 # | 48 # |
| 49 # `#number` a number (an integer). | |
| 50 # | |
| 51 # `#lexeme` a token. The token's `lexeme` property is used. | 49 # `#lexeme` a token. The token's `lexeme` property is used. |
| 52 # | 50 # |
| 53 # `#string` a string. | 51 # `#string` a string. |
| 54 # | 52 # |
| 55 # `#string2` another string. | 53 # `#string2` another string. |
| 56 # | 54 # |
| 57 # `#uri` a Uri. | 55 # `#uri` a Uri. |
| 58 | 56 |
| 59 AsciiControlCharacter: | 57 AsciiControlCharacter: |
| 60 template: "The control character #unicode can only be used in strings and comm
ents." | 58 template: "The control character #unicode can only be used in strings and comm
ents." |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 | 765 |
| 768 DuplicatedParameterName: | 766 DuplicatedParameterName: |
| 769 template: "Duplicated parameter name '#name'." | 767 template: "Duplicated parameter name '#name'." |
| 770 | 768 |
| 771 DuplicatedParameterNameCause: | 769 DuplicatedParameterNameCause: |
| 772 template: "Other parameter named '#name'." | 770 template: "Other parameter named '#name'." |
| 773 | 771 |
| 774 EnumConstantSameNameAsEnclosing: | 772 EnumConstantSameNameAsEnclosing: |
| 775 template: "Name of enum constant '#name' can't be the same as the enum's own n
ame." | 773 template: "Name of enum constant '#name' can't be the same as the enum's own n
ame." |
| 776 | 774 |
| 777 OperatorParameterMismatch: | 775 OperatorParameterMismatch0: |
| 778 template: "Operator '#name' must have exactly #number parameters." | 776 template: "Operator '#name' shouldn't have any parameters." |
| 777 |
| 778 OperatorParameterMismatch1: |
| 779 template: "Operator '#name' should have exactly one parameter." |
| 780 |
| 781 OperatorParameterMismatch2: |
| 782 template: "Operator '#name' should have exactly two parameters." |
| 783 |
| 784 OperatorMinusParameterMismatch: |
| 785 template: "Operator '#name' should have zero or one parameter." |
| 786 tip: >- |
| 787 With zero parameters, it has the syntactic form '-a', formally known as 'una
ry-'. |
| 788 With one parameter, it has the syntactic form 'a - b', formally known as '-'
. |
| 779 | 789 |
| 780 SupertypeIsIllegal: | 790 SupertypeIsIllegal: |
| 781 template: "The type '#name' can't be used as supertype." | 791 template: "The type '#name' can't be used as supertype." |
| 782 | 792 |
| 783 SupertypeIsTypeVariable: | 793 SupertypeIsTypeVariable: |
| 784 template: "The type variable '#name' can't be used as supertype." | 794 template: "The type variable '#name' can't be used as supertype." |
| 785 | 795 |
| 786 PartOfLibraryNameMismatch: | 796 PartOfLibraryNameMismatch: |
| 787 template: "Using '#uri' as part of '#name' but its 'part of' declaration says
'#name2'." | 797 template: "Using '#uri' as part of '#name' but its 'part of' declaration says
'#name2'." |
| 788 | 798 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 | 882 |
| 873 CantInferPackagesFromManyInputs: | 883 CantInferPackagesFromManyInputs: |
| 874 template: "Cannot infer a .packages file when compiling multiple inputs." | 884 template: "Cannot infer a .packages file when compiling multiple inputs." |
| 875 tip: "Try specifying the file explicitly with the --packages option." | 885 tip: "Try specifying the file explicitly with the --packages option." |
| 876 | 886 |
| 877 PackageNotFound: | 887 PackageNotFound: |
| 878 template: "Could not resolve the package '#name' in '#uri'." | 888 template: "Could not resolve the package '#name' in '#uri'." |
| 879 | 889 |
| 880 InvalidPackageUri: | 890 InvalidPackageUri: |
| 881 template: "Invalid package Uri '#uri':\n #string." | 891 template: "Invalid package Uri '#uri':\n #string." |
| OLD | NEW |