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

Side by Side Diff: pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart

Issue 1750143005: Move more messages. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Undo change to analyze_test_test.dart Created 4 years, 9 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 DON'T EDIT. GENERATED. DON'T EDIT. 5 DON'T EDIT. GENERATED. DON'T EDIT.
6 This file has been generated by 'publish.dart' in the dart_messages package. 6 This file has been generated by 'publish.dart' in the dart_messages package.
7 7
8 Messages are maintained in `lib/shared_messages.dart` of that same package. 8 Messages are maintained in `lib/shared_messages.dart` of that same package.
9 After any change to that file, run `bin/publish.dart` to generate a new version 9 After any change to that file, run `bin/publish.dart` to generate a new version
10 of the json, dart2js and analyzer representations. 10 of the json, dart2js and analyzer representations.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 howToFix: "Try replacing modifier '#{modifier}' with 'var', 'final', or a ty pe.", 60 howToFix: "Try replacing modifier '#{modifier}' with 'var', 'final', or a ty pe.",
61 examples: const [ 61 examples: const [
62 "set foo; main(){}", 62 "set foo; main(){}",
63 "abstract foo; main(){}", 63 "abstract foo; main(){}",
64 "static foo; main(){}", 64 "static foo; main(){}",
65 "external foo; main(){}", 65 "external foo; main(){}",
66 ] 66 ]
67 ), // Generated. Don't edit. 67 ), // Generated. Don't edit.
68 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE: const MessageTemplate( 68 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE: const MessageTemplate(
69 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE, 69 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE,
70 "Constructors can't have a return type", 70 "Constructors can't have a return type.",
71 howToFix: "Try removing the return type.", 71 howToFix: "Try removing the return type.",
72 examples: const [ 72 examples: const [
73 "class A { int A() {} } main() { new A(); }", 73 "class A { int A() {} } main() { new A(); }",
74 ] 74 ]
75 ), // Generated. Don't edit. 75 ), // Generated. Don't edit.
76 MessageKind.MISSING_EXPRESSION_IN_THROW: const MessageTemplate( 76 MessageKind.MISSING_EXPRESSION_IN_THROW: const MessageTemplate(
77 MessageKind.MISSING_EXPRESSION_IN_THROW, 77 MessageKind.MISSING_EXPRESSION_IN_THROW,
78 "Missing expression after 'throw'.", 78 "Missing expression after 'throw'.",
79 howToFix: "Did you mean 'rethrow'?", 79 howToFix: "Did you mean 'rethrow'?",
80 examples: const [ 80 examples: const [
81 "main() { throw; }", 81 "main() { throw; }",
82 "main() { try { throw 0; } catch(e) { throw; } }", 82 "main() { try { throw 0; } catch(e) { throw; } }",
83 ] 83 ]
84 ), // Generated. Don't edit. 84 ), // Generated. Don't edit.
85 MessageKind.RETHROW_OUTSIDE_CATCH: const MessageTemplate( 85 MessageKind.RETHROW_OUTSIDE_CATCH: const MessageTemplate(
86 MessageKind.RETHROW_OUTSIDE_CATCH, 86 MessageKind.RETHROW_OUTSIDE_CATCH,
87 "Rethrow must be inside of catch clause", 87 "Rethrow must be inside of catch clause.",
88 howToFix: "Try moving the expression into a catch clause, or using a 'throw' expression.", 88 howToFix: "Try moving the expression into a catch clause, or using a 'throw' expression.",
89 examples: const [ 89 examples: const [
90 "main() { rethrow; }", 90 "main() { rethrow; }",
91 ] 91 ]
92 ), // Generated. Don't edit. 92 ), // Generated. Don't edit.
93 MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR: const MessageTemplate( 93 MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR: const MessageTemplate(
94 MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR, 94 MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR,
95 "Constructors can't return values.", 95 "Constructors can't return values.",
96 howToFix: "Try removing the return statement or using a factory constructor. ", 96 howToFix: "Try removing the return statement or using a factory constructor. ",
97 examples: const [ 97 examples: const [
98 r""" 98 r"""
99 class C { 99 class C {
100 C() { 100 C() {
101 return 1; 101 return 1;
102 } 102 }
103 } 103 }
104 104
105 main() => new C();""", 105 main() => new C();""",
106 ] 106 ]
107 ), // Generated. Don't edit. 107 ), // Generated. Don't edit.
108 MessageKind.RETURN_IN_GENERATOR: const MessageTemplate( 108 MessageKind.RETURN_IN_GENERATOR: const MessageTemplate(
109 MessageKind.RETURN_IN_GENERATOR, 109 MessageKind.RETURN_IN_GENERATOR,
110 "Can't return a value from a generator function (using the '#{modifier}' mod ifier).", 110 "Can't return a value from a generator function (using the '#{modifier}' mod ifier).",
111 howToFix: "Try removing the value, replacing 'return' with 'yield' or changi ng the method body modifier", 111 howToFix: "Try removing the value, replacing 'return' with 'yield' or changi ng the method body modifier.",
112 examples: const [ 112 examples: const [
113 r""" 113 r"""
114 foo() async* { return 0; } 114 foo() async* { return 0; }
115 main() => foo(); 115 main() => foo();
116 """, 116 """,
117 r""" 117 r"""
118 foo() sync* { return 0; } 118 foo() sync* { return 0; }
119 main() => foo(); 119 main() => foo();
120 """, 120 """,
121 ] 121 ]
122 ), // Generated. Don't edit. 122 ), // Generated. Don't edit.
123 MessageKind.NOT_ASSIGNABLE: const MessageTemplate( 123 MessageKind.NOT_ASSIGNABLE: const MessageTemplate(
124 MessageKind.NOT_ASSIGNABLE, 124 MessageKind.NOT_ASSIGNABLE,
125 "'#{fromType}' is not assignable to '#{toType}'." ), // Generated. Don't e dit. 125 "'#{fromType}' is not assignable to '#{toType}'." ), // Generated. Don't e dit.
126 MessageKind.FORIN_NOT_ASSIGNABLE: const MessageTemplate( 126 MessageKind.FORIN_NOT_ASSIGNABLE: const MessageTemplate(
127 MessageKind.FORIN_NOT_ASSIGNABLE, 127 MessageKind.FORIN_NOT_ASSIGNABLE,
128 "The element type '#{currentType}' of '#{expressionType}' is not assignable to '#{elementType}'.", 128 "The element type '#{currentType}' of '#{expressionType}' is not assignable to '#{elementType}'.",
129 examples: const [ 129 examples: const [
130 r""" 130 r"""
131 main() { 131 main() {
132 List<int> list = <int>[1, 2]; 132 List<int> list = <int>[1, 2];
133 for (String x in list) x; 133 for (String x in list) x;
134 } 134 }
135 """, 135 """,
136 ] 136 ]
137 ), // Generated. Don't edit. 137 ), // Generated. Don't edit.
138 MessageKind.CANNOT_RESOLVE: const MessageTemplate(
139 MessageKind.CANNOT_RESOLVE,
140 "Can't resolve '#{name}'." ), // Generated. Don't edit.
141 MessageKind.UNDEFINED_METHOD: const MessageTemplate(
142 MessageKind.UNDEFINED_METHOD,
143 "The method '#{memberName}' is not defined for the class '#{className}'.",
144 examples: const [
145 r"""
146 class A {
147 foo() { bar(); }
148 }
149 main() { new A().foo(); }
150 """,
151 ]
152 ), // Generated. Don't edit.
153 MessageKind.UNDEFINED_GETTER: const MessageTemplate(
154 MessageKind.UNDEFINED_GETTER,
155 "The getter '#{memberName}' is not defined for the class '#{className}'.",
156 examples: const [
157 "class A {} main() { new A().x; }",
158 "class A {} main() { A.x; }",
159 ]
160 ), // Generated. Don't edit.
161 MessageKind.UNDEFINED_INSTANCE_GETTER_BUT_SETTER: const MessageTemplate(
162 MessageKind.UNDEFINED_INSTANCE_GETTER_BUT_SETTER,
163 "The setter '#{memberName}' in class '#{className}' can not be used as a get ter.",
164 examples: const [
165 "class A { set x(y) {} } main() { new A().x; }",
166 ]
167 ), // Generated. Don't edit.
168 MessageKind.UNDEFINED_OPERATOR: const MessageTemplate(
169 MessageKind.UNDEFINED_OPERATOR,
170 "The operator '#{memberName}' is not defined for the class '#{className}'.",
171 examples: const [
172 "class A {} main() { new A() + 3; }",
173 ]
174 ), // Generated. Don't edit.
175 MessageKind.UNDEFINED_SETTER: const MessageTemplate(
176 MessageKind.UNDEFINED_SETTER,
177 "The setter '#{memberName}' is not defined for the class '#{className}'.",
178 examples: const [
179 "class A {} main() { new A().x = 499; }",
180 ]
181 ), // Generated. Don't edit.
182 MessageKind.NO_SUCH_SUPER_MEMBER: const MessageTemplate(
183 MessageKind.NO_SUCH_SUPER_MEMBER,
184 "Can't resolve '#{memberName}' in a superclass of '#{className}'." ), // G enerated. Don't edit.
185 MessageKind.UNDEFINED_SUPER_SETTER: const MessageTemplate(
186 MessageKind.UNDEFINED_SUPER_SETTER,
187 "The setter '#{memberName}' is not defined in a superclass of '#{className}' .",
188 examples: const [
189 r"""
190 class A {}
191 class B extends A {
192 foo() { super.x = 499; }
193 }
194 main() { new B().foo(); }
195 """,
196 r"""
197 main() => new B().m();
198 class A {
199 get x => 1;
200 }
201 class B extends A {
202 m() { super.x = 2; }
203 }
204 """,
205 ]
206 ), // Generated. Don't edit.
207 MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER: const MessageTemplate(
208 MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER,
209 "Cannot resolve getter '#{name}'.",
210 examples: const [
211 "set foo(x) {} main() { foo; }",
212 ]
213 ), // Generated. Don't edit.
214 MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER: const MessageTemplate(
215 MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER,
216 "Cannot resolve setter '#{name}'.",
217 examples: const [
218 r"""
219 main() {
220 final x = 1;
221 x = 2;
222 }""",
223 r"""
224 main() {
225 const x = 1;
226 x = 2;
227 }
228 """,
229 r"""
230 final x = 1;
231 main() { x = 3; }
232 """,
233 r"""
234 const x = 1;
235 main() { x = 3; }
236 """,
237 "get foo => null main() { foo = 5; }",
238 "const foo = 0 main() { foo = 5; }",
239 ]
240 ), // Generated. Don't edit.
138 }; 241 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698