Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: pkg/front_end/messages.yaml

Issue 2978903002: Remove number from operator mismatch message. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 757
760 DuplicatedParameterName: 758 DuplicatedParameterName:
761 template: "Duplicated parameter name '#name'." 759 template: "Duplicated parameter name '#name'."
762 760
763 DuplicatedParameterNameCause: 761 DuplicatedParameterNameCause:
764 template: "Other parameter named '#name'." 762 template: "Other parameter named '#name'."
765 763
766 EnumConstantSameNameAsEnclosing: 764 EnumConstantSameNameAsEnclosing:
767 template: "Name of enum constant '#name' can't be the same as the enum's own n ame." 765 template: "Name of enum constant '#name' can't be the same as the enum's own n ame."
768 766
769 OperatorParameterMismatch: 767 OperatorParameterMismatch0:
770 template: "Operator '#name' must have exactly #number parameters." 768 template: "Operator '#name' shouldn't have any parameters."
769
770 OperatorParameterMismatch1:
771 template: "Operator '#name' should have exactly one parameter."
772
773 OperatorParameterMismatch2:
774 template: "Operator '#name' should have exactly two parameters."
771 775
772 SupertypeIsIllegal: 776 SupertypeIsIllegal:
773 template: "The type '#name' can't be used as supertype." 777 template: "The type '#name' can't be used as supertype."
774 778
775 SupertypeIsTypeVariable: 779 SupertypeIsTypeVariable:
776 template: "The type variable '#name' can't be used as supertype." 780 template: "The type variable '#name' can't be used as supertype."
777 781
778 PartOfLibraryNameMismatch: 782 PartOfLibraryNameMismatch:
779 template: "Using '#uri' as part of '#name' but its 'part of' declaration says '#name2'." 783 template: "Using '#uri' as part of '#name' but its 'part of' declaration says '#name2'."
780 784
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 template: "Previous use of '#name'." 852 template: "Previous use of '#name'."
849 853
850 ExpressionNotMetadata: 854 ExpressionNotMetadata:
851 template: "This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor." 855 template: "This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor."
852 856
853 ExpectedAnInitializer: 857 ExpectedAnInitializer:
854 template: "Expected an initializer." 858 template: "Expected an initializer."
855 859
856 NotAnLvalue: 860 NotAnLvalue:
857 template: "Can't assign to this." 861 template: "Can't assign to this."
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698