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 # | |
49 # `#lexeme` a token. The token's `lexeme` property is used. | 51 # `#lexeme` a token. The token's `lexeme` property is used. |
50 # | 52 # |
51 # `#string` a string. | 53 # `#string` a string. |
52 # | 54 # |
53 # `#string2` another string. | 55 # `#string2` another string. |
54 # | 56 # |
55 # `#uri` a Uri. | 57 # `#uri` a Uri. |
56 | 58 |
57 AsciiControlCharacter: | 59 AsciiControlCharacter: |
58 template: "The control character #unicode can only be used in strings and comm ents." | 60 template: "The control character #unicode can only be used in strings and comm ents." |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
686 template: "The method '#name' doesn't have the named parameter '#name2' of ove rriden method '#name3'." | 688 template: "The method '#name' doesn't have the named parameter '#name2' of ove rriden method '#name3'." |
687 | 689 |
688 OverrideFewerNamedArguments: | 690 OverrideFewerNamedArguments: |
689 template: "The method '#name' has fewer named arguments than those of overridd en method '#name2'." | 691 template: "The method '#name' has fewer named arguments than those of overridd en method '#name2'." |
690 | 692 |
691 OverrideFewerPositionalArguments: | 693 OverrideFewerPositionalArguments: |
692 template: "The method '#name' has fewer positional arguments than those of ove rridden method '#name2'." | 694 template: "The method '#name' has fewer positional arguments than those of ove rridden method '#name2'." |
693 | 695 |
694 OverrideMoreRequiredArguments: | 696 OverrideMoreRequiredArguments: |
695 template: "The method '#name' has more required arguments than those of overri dden method '#name2'." | 697 template: "The method '#name' has more required arguments than those of overri dden method '#name2'." |
698 | |
699 IllegalMethodName: | |
700 template: "'#name' isn't a legal method name." | |
701 tip: "Did you mean '#name2'?" | |
702 | |
703 ConstConstructorWithBody: | |
704 template: "A const constructor can't have a body." | |
705 | |
706 PartOfSelf: | |
707 template: "A file can't be a part of itself." | |
708 | |
709 TypeVariableDuplicatedName: | |
710 template: "A type variable can't have the same name as another." | |
711 | |
712 TypeVariableDuplicatedNameCause: | |
713 template: "The other type variable named '#name'." | |
714 | |
715 TypeVariableSameNameAsEnclosing: | |
716 template: "A type variable can't have the same name as its enclosing declarati on." | |
717 | |
718 EnumDeclartionEmpty: | |
719 template: "An enum declaration can't be empty." | |
720 | |
721 ExternalMethodWithBody: | |
722 template: "An external method can't have a body." | |
723 | |
724 OperatorWithOptionalFormals: | |
725 template: "An operator can't have optional parameters." | |
726 | |
727 PlatformPrivateLibraryAccess: | |
728 template: "Can't access platform private library." | |
729 | |
730 TypedefNotFunction: | |
731 template: "Can't create typedef from non-function type." | |
732 | |
733 PartTwice: | |
734 template: "Can't use '#uri' as a part more than once." | |
735 | |
736 MissingPartOf: | |
737 template: "Can't use '#uri' as a part, because it has no 'part of' declaration ." | |
738 | |
739 SupertypeIsFunction: | |
740 template: "Can't use a function type as supertype." | |
741 | |
742 DeferredPrefixDuplicated: | |
743 template: "Can't use the name '#name' for a deferred library, as the name is u sed elsewhere." | |
744 | |
745 DeferredPrefixDuplicatedCause: | |
746 template: "'#name' is used here." | |
747 | |
748 TypeArgumentsOnTypeVariable: | |
749 template: "Can't use type arguments with type variable '#name'." | |
750 | |
751 DuplicatedDefinition: | |
752 template: "Duplicated definition of '#name'." | |
753 | |
754 DuplicatedName: | |
755 template: "Duplicated name: '#name'." | |
756 | |
757 DuplicatedParameterName: | |
758 template: "Duplicated parameter name '#name'." | |
759 | |
760 DuplicatedParameterNameCause: | |
761 template: "Other parameter named '#name'." | |
762 | |
763 EnumConstantSameNameAsEnclosing: | |
764 template: "Name of enum constant '#name' can't be the same as the enum's own n ame." | |
765 | |
766 OperatorParameterMismatch: | |
767 template: "Operator '#name' must have exactly #number parameters." | |
Johnni Winther
2017/07/12 08:10:37
This doesn't work with i8n. You need to split by n
ahe
2017/07/12 20:07:58
Good point, and in this case we only have a few nu
| |
768 | |
769 SupertypeIsIllegal: | |
770 template: "The type '#name' can't be used as supertype." | |
771 | |
772 SupertypeIsTypeVariable: | |
773 template: "The type variable '#name' can't be used as supertype." | |
774 | |
775 PartOfLibraryNameMismatch: | |
776 template: "Using '#uri' as part of '#name' but its 'part of' declaration says '#name2'." | |
777 | |
778 PartOfUseUri: | |
779 template: "Using '#uri' as part of '#uri2' but its 'part of' declaration says '#name'." | |
780 tip: "Try changing the 'part of' declaration to use a relative file name." | |
781 | |
782 PartOfUriMismatch: | |
783 template: "Using '#uri' as part of '#uri2' but its 'part of' declaration says '#string'." | |
OLD | NEW |