OLD | NEW |
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 MessageKind.UNDEFINED_SUPER_SETTER, | 186 MessageKind.UNDEFINED_SUPER_SETTER, |
187 "The setter '#{memberName}' is not defined in a superclass of '#{className}'
.", | 187 "The setter '#{memberName}' is not defined in a superclass of '#{className}'
.", |
188 examples: const [ | 188 examples: const [ |
189 r""" | 189 r""" |
190 class A {} | 190 class A {} |
191 class B extends A { | 191 class B extends A { |
192 foo() { super.x = 499; } | 192 foo() { super.x = 499; } |
193 } | 193 } |
194 main() { new B().foo(); } | 194 main() { new B().foo(); } |
195 """, | 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 ] | 196 ] |
206 ), // Generated. Don't edit. | 197 ), // Generated. Don't edit. |
207 MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER: const MessageTemplate( | 198 MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER: const MessageTemplate( |
208 MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER, | 199 MessageKind.UNDEFINED_STATIC_GETTER_BUT_SETTER, |
209 "Cannot resolve getter '#{name}'.", | 200 "Cannot resolve getter '#{name}'.", |
210 examples: const [ | 201 examples: const [ |
211 "set foo(x) {} main() { foo; }", | 202 "set foo(x) {} main() { foo; }", |
212 ] | 203 ] |
213 ), // Generated. Don't edit. | 204 ), // Generated. Don't edit. |
214 MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER: const MessageTemplate( | 205 MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER: const MessageTemplate( |
(...skipping 17 matching lines...) Expand all Loading... |
232 """, | 223 """, |
233 r""" | 224 r""" |
234 const x = 1; | 225 const x = 1; |
235 main() { x = 3; } | 226 main() { x = 3; } |
236 """, | 227 """, |
237 "get foo => null main() { foo = 5; }", | 228 "get foo => null main() { foo = 5; }", |
238 "const foo = 0 main() { foo = 5; }", | 229 "const foo = 0 main() { foo = 5; }", |
239 ] | 230 ] |
240 ), // Generated. Don't edit. | 231 ), // Generated. Don't edit. |
241 }; | 232 }; |
OLD | NEW |