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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 messageFinalFieldWithoutInitializer; | 1015 messageFinalFieldWithoutInitializer; |
1016 | 1016 |
1017 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1017 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1018 const MessageCode messageFinalFieldWithoutInitializer = const MessageCode( | 1018 const MessageCode messageFinalFieldWithoutInitializer = const MessageCode( |
1019 "FinalFieldWithoutInitializer", | 1019 "FinalFieldWithoutInitializer", |
1020 dart2jsCode: "*ignored*", | 1020 dart2jsCode: "*ignored*", |
1021 message: r"""A 'final' field must be initialized.""", | 1021 message: r"""A 'final' field must be initialized.""", |
1022 tip: r"""Try adding '= <initializer>'."""); | 1022 tip: r"""Try adding '= <initializer>'."""); |
1023 | 1023 |
1024 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1024 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1025 const Template<Message Function(String name)> |
| 1026 templateFinalInstanceVariableAlreadyInitialized = |
| 1027 const Template<Message Function(String name)>( |
| 1028 messageTemplate: |
| 1029 r"""'#name' is a final instance variable that has already been initi
alized.""", |
| 1030 withArguments: _withArgumentsFinalInstanceVariableAlreadyInitialized); |
| 1031 |
| 1032 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1033 const Code<Message Function(String name)> |
| 1034 codeFinalInstanceVariableAlreadyInitialized = |
| 1035 const Code<Message Function(String name)>( |
| 1036 "FinalInstanceVariableAlreadyInitialized", |
| 1037 templateFinalInstanceVariableAlreadyInitialized, |
| 1038 ); |
| 1039 |
| 1040 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1041 Message _withArgumentsFinalInstanceVariableAlreadyInitialized(String name) { |
| 1042 return new Message(codeFinalInstanceVariableAlreadyInitialized, |
| 1043 message: |
| 1044 """'$name' is a final instance variable that has already been initiali
zed.""", |
| 1045 arguments: {'name': name}); |
| 1046 } |
| 1047 |
| 1048 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1049 const Template<Message Function(String name)> |
| 1050 templateFinalInstanceVariableAlreadyInitializedCause = |
| 1051 const Template<Message Function(String name)>( |
| 1052 messageTemplate: r"""'#name' was initialized here.""", |
| 1053 withArguments: |
| 1054 _withArgumentsFinalInstanceVariableAlreadyInitializedCause); |
| 1055 |
| 1056 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1057 const Code<Message Function(String name)> |
| 1058 codeFinalInstanceVariableAlreadyInitializedCause = |
| 1059 const Code<Message Function(String name)>( |
| 1060 "FinalInstanceVariableAlreadyInitializedCause", |
| 1061 templateFinalInstanceVariableAlreadyInitializedCause, |
| 1062 ); |
| 1063 |
| 1064 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1065 Message _withArgumentsFinalInstanceVariableAlreadyInitializedCause( |
| 1066 String name) { |
| 1067 return new Message(codeFinalInstanceVariableAlreadyInitializedCause, |
| 1068 message: """'$name' was initialized here.""", arguments: {'name': name}); |
| 1069 } |
| 1070 |
| 1071 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1025 const Code<Null> codeFunctionTypeDefaultValue = messageFunctionTypeDefaultValue; | 1072 const Code<Null> codeFunctionTypeDefaultValue = messageFunctionTypeDefaultValue; |
1026 | 1073 |
1027 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1074 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1028 const MessageCode messageFunctionTypeDefaultValue = const MessageCode( | 1075 const MessageCode messageFunctionTypeDefaultValue = const MessageCode( |
1029 "FunctionTypeDefaultValue", | 1076 "FunctionTypeDefaultValue", |
1030 dart2jsCode: "*ignored*", | 1077 dart2jsCode: "*ignored*", |
1031 message: r"""Can't have a default value in a function type."""); | 1078 message: r"""Can't have a default value in a function type."""); |
1032 | 1079 |
1033 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1080 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1034 const Code<Null> codeGeneratorReturnsValue = messageGeneratorReturnsValue; | 1081 const Code<Null> codeGeneratorReturnsValue = messageGeneratorReturnsValue; |
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 ); | 2338 ); |
2292 | 2339 |
2293 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2340 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2294 Message _withArgumentsSupertypeIsTypeVariable(String name) { | 2341 Message _withArgumentsSupertypeIsTypeVariable(String name) { |
2295 return new Message(codeSupertypeIsTypeVariable, | 2342 return new Message(codeSupertypeIsTypeVariable, |
2296 message: """The type variable '$name' can't be used as supertype.""", | 2343 message: """The type variable '$name' can't be used as supertype.""", |
2297 arguments: {'name': name}); | 2344 arguments: {'name': name}); |
2298 } | 2345 } |
2299 | 2346 |
2300 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2347 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2348 const Code<Null> codeSwitchCaseFallThrough = messageSwitchCaseFallThrough; |
| 2349 |
| 2350 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2351 const MessageCode messageSwitchCaseFallThrough = const MessageCode( |
| 2352 "SwitchCaseFallThrough", |
| 2353 message: r"""Switch case may fall through to the next case."""); |
| 2354 |
| 2355 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2301 const Template<Message Function(String name)> | 2356 const Template<Message Function(String name)> |
2302 templateThisAccessInFieldInitializer = | 2357 templateThisAccessInFieldInitializer = |
2303 const Template<Message Function(String name)>( | 2358 const Template<Message Function(String name)>( |
2304 messageTemplate: | 2359 messageTemplate: |
2305 r"""Can't access 'this' in a field initializer to read '#name'.""", | 2360 r"""Can't access 'this' in a field initializer to read '#name'.""", |
2306 withArguments: _withArgumentsThisAccessInFieldInitializer); | 2361 withArguments: _withArgumentsThisAccessInFieldInitializer); |
2307 | 2362 |
2308 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2363 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2309 const Code<Message Function(String name)> codeThisAccessInFieldInitializer = | 2364 const Code<Message Function(String name)> codeThisAccessInFieldInitializer = |
2310 const Code<Message Function(String name)>( | 2365 const Code<Message Function(String name)>( |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 2618 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
2564 | 2619 |
2565 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2620 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2566 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 2621 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
2567 | 2622 |
2568 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2623 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2569 const MessageCode messageYieldNotGenerator = const MessageCode( | 2624 const MessageCode messageYieldNotGenerator = const MessageCode( |
2570 "YieldNotGenerator", | 2625 "YieldNotGenerator", |
2571 dart2jsCode: "*ignored*", | 2626 dart2jsCode: "*ignored*", |
2572 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 2627 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |