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 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. | 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. |
6 // | 6 // |
7 // Instead modify 'pkg/front_end/messages.yaml' and run | 7 // Instead modify 'pkg/front_end/messages.yaml' and run |
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. | 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. |
9 | 9 |
10 part of fasta.codes; | 10 part of fasta.codes; |
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2289 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2289 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2290 const Code<Null> codeSuperNullAware = messageSuperNullAware; | 2290 const Code<Null> codeSuperNullAware = messageSuperNullAware; |
2291 | 2291 |
2292 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2292 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2293 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", | 2293 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
2294 dart2jsCode: "*ignored*", | 2294 dart2jsCode: "*ignored*", |
2295 message: r"""'super' can't be null.""", | 2295 message: r"""'super' can't be null.""", |
2296 tip: r"""Try replacing '?.' with '.'"""); | 2296 tip: r"""Try replacing '?.' with '.'"""); |
2297 | 2297 |
2298 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2298 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2299 const Template<Message Function(String name)> templateSuperclassHasNoGetter = |
| 2300 const Template<Message Function(String name)>( |
| 2301 messageTemplate: r"""Superclass has no getter named '#name'.""", |
| 2302 withArguments: _withArgumentsSuperclassHasNoGetter); |
| 2303 |
| 2304 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2305 const Code<Message Function(String name)> codeSuperclassHasNoGetter = |
| 2306 const Code<Message Function(String name)>( |
| 2307 "SuperclassHasNoGetter", |
| 2308 templateSuperclassHasNoGetter, |
| 2309 ); |
| 2310 |
| 2311 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2312 Message _withArgumentsSuperclassHasNoGetter(String name) { |
| 2313 return new Message(codeSuperclassHasNoGetter, |
| 2314 message: """Superclass has no getter named '$name'.""", |
| 2315 arguments: {'name': name}); |
| 2316 } |
| 2317 |
| 2318 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2319 const Template<Message Function(String name)> templateSuperclassHasNoMethod = |
| 2320 const Template<Message Function(String name)>( |
| 2321 messageTemplate: r"""Superclass has no method named '#name'.""", |
| 2322 withArguments: _withArgumentsSuperclassHasNoMethod); |
| 2323 |
| 2324 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2325 const Code<Message Function(String name)> codeSuperclassHasNoMethod = |
| 2326 const Code<Message Function(String name)>( |
| 2327 "SuperclassHasNoMethod", |
| 2328 templateSuperclassHasNoMethod, |
| 2329 ); |
| 2330 |
| 2331 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2332 Message _withArgumentsSuperclassHasNoMethod(String name) { |
| 2333 return new Message(codeSuperclassHasNoMethod, |
| 2334 message: """Superclass has no method named '$name'.""", |
| 2335 arguments: {'name': name}); |
| 2336 } |
| 2337 |
| 2338 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2339 const Template<Message Function(String name)> templateSuperclassHasNoSetter = |
| 2340 const Template<Message Function(String name)>( |
| 2341 messageTemplate: r"""Superclass has no setter named '#name'.""", |
| 2342 withArguments: _withArgumentsSuperclassHasNoSetter); |
| 2343 |
| 2344 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2345 const Code<Message Function(String name)> codeSuperclassHasNoSetter = |
| 2346 const Code<Message Function(String name)>( |
| 2347 "SuperclassHasNoSetter", |
| 2348 templateSuperclassHasNoSetter, |
| 2349 ); |
| 2350 |
| 2351 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2352 Message _withArgumentsSuperclassHasNoSetter(String name) { |
| 2353 return new Message(codeSuperclassHasNoSetter, |
| 2354 message: """Superclass has no setter named '$name'.""", |
| 2355 arguments: {'name': name}); |
| 2356 } |
| 2357 |
| 2358 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2359 const Template< |
| 2360 Message Function( |
| 2361 String |
| 2362 name)> templateSuperclassMethodArgumentMismatch = const Template< |
| 2363 Message Function(String name)>( |
| 2364 messageTemplate: |
| 2365 r"""Superclass doesn't have a method named '#name' with matching argumen
ts.""", |
| 2366 withArguments: _withArgumentsSuperclassMethodArgumentMismatch); |
| 2367 |
| 2368 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2369 const Code<Message Function(String name)> codeSuperclassMethodArgumentMismatch = |
| 2370 const Code<Message Function(String name)>( |
| 2371 "SuperclassMethodArgumentMismatch", |
| 2372 templateSuperclassMethodArgumentMismatch, |
| 2373 ); |
| 2374 |
| 2375 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2376 Message _withArgumentsSuperclassMethodArgumentMismatch(String name) { |
| 2377 return new Message(codeSuperclassMethodArgumentMismatch, |
| 2378 message: |
| 2379 """Superclass doesn't have a method named '$name' with matching argume
nts.""", |
| 2380 arguments: {'name': name}); |
| 2381 } |
| 2382 |
| 2383 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2299 const Code<Null> codeSupertypeIsFunction = messageSupertypeIsFunction; | 2384 const Code<Null> codeSupertypeIsFunction = messageSupertypeIsFunction; |
2300 | 2385 |
2301 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2386 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2302 const MessageCode messageSupertypeIsFunction = const MessageCode( | 2387 const MessageCode messageSupertypeIsFunction = const MessageCode( |
2303 "SupertypeIsFunction", | 2388 "SupertypeIsFunction", |
2304 message: r"""Can't use a function type as supertype."""); | 2389 message: r"""Can't use a function type as supertype."""); |
2305 | 2390 |
2306 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2391 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2307 const Template<Message Function(String name)> templateSupertypeIsIllegal = | 2392 const Template<Message Function(String name)> templateSupertypeIsIllegal = |
2308 const Template<Message Function(String name)>( | 2393 const Template<Message Function(String name)>( |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 ); | 2550 ); |
2466 | 2551 |
2467 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2552 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2468 Message _withArgumentsTypeVariableDuplicatedNameCause(String name) { | 2553 Message _withArgumentsTypeVariableDuplicatedNameCause(String name) { |
2469 return new Message(codeTypeVariableDuplicatedNameCause, | 2554 return new Message(codeTypeVariableDuplicatedNameCause, |
2470 message: """The other type variable named '$name'.""", | 2555 message: """The other type variable named '$name'.""", |
2471 arguments: {'name': name}); | 2556 arguments: {'name': name}); |
2472 } | 2557 } |
2473 | 2558 |
2474 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2559 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2560 const Code<Null> codeTypeVariableInStaticContext = |
| 2561 messageTypeVariableInStaticContext; |
| 2562 |
| 2563 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2564 const MessageCode messageTypeVariableInStaticContext = const MessageCode( |
| 2565 "TypeVariableInStaticContext", |
| 2566 message: r"""Type variables can't be used in static members."""); |
| 2567 |
| 2568 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2475 const Code<Null> codeTypeVariableSameNameAsEnclosing = | 2569 const Code<Null> codeTypeVariableSameNameAsEnclosing = |
2476 messageTypeVariableSameNameAsEnclosing; | 2570 messageTypeVariableSameNameAsEnclosing; |
2477 | 2571 |
2478 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2572 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2479 const MessageCode messageTypeVariableSameNameAsEnclosing = const MessageCode( | 2573 const MessageCode messageTypeVariableSameNameAsEnclosing = const MessageCode( |
2480 "TypeVariableSameNameAsEnclosing", | 2574 "TypeVariableSameNameAsEnclosing", |
2481 message: | 2575 message: |
2482 r"""A type variable can't have the same name as its enclosing declaratio
n."""); | 2576 r"""A type variable can't have the same name as its enclosing declaratio
n."""); |
2483 | 2577 |
2484 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2578 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 2712 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
2619 | 2713 |
2620 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2714 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2621 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 2715 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
2622 | 2716 |
2623 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2717 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2624 const MessageCode messageYieldNotGenerator = const MessageCode( | 2718 const MessageCode messageYieldNotGenerator = const MessageCode( |
2625 "YieldNotGenerator", | 2719 "YieldNotGenerator", |
2626 dart2jsCode: "*ignored*", | 2720 dart2jsCode: "*ignored*", |
2627 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 2721 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |