| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 115 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 116 const Code<Null> codeFactoryNotSync = messageFactoryNotSync; | 116 const Code<Null> codeFactoryNotSync = messageFactoryNotSync; |
| 117 | 117 |
| 118 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 118 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 119 const MessageCode messageFactoryNotSync = const MessageCode("FactoryNotSync", | 119 const MessageCode messageFactoryNotSync = const MessageCode("FactoryNotSync", |
| 120 dart2jsCode: "FASTA_IGNORED", | 120 dart2jsCode: "FASTA_IGNORED", |
| 121 message: r"""Factories can't use 'async', 'async*', or 'sync*'."""); | 121 message: r"""Factories can't use 'async', 'async*', or 'sync*'."""); |
| 122 | 122 |
| 123 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 123 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 124 const Template<Message Function(String string, String name)> |
| 125 templateUnexpected = |
| 126 const Template<Message Function(String string, String name)>( |
| 127 messageTemplate: r"""Expected '#string', but got '#name'.""", |
| 128 withArguments: _withArgumentsUnexpected); |
| 129 |
| 130 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 131 const Code<Message Function(String string, String name)> codeUnexpected = |
| 132 const Code<Message Function(String string, String name)>( |
| 133 "Unexpected", |
| 134 templateUnexpected, |
| 135 ); |
| 136 |
| 137 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 138 Message _withArgumentsUnexpected(String string, String name) { |
| 139 return new Message(codeUnexpected, |
| 140 message: """Expected '$string', but got '$name'.""", |
| 141 arguments: {'string': string, 'name': name}); |
| 142 } |
| 143 |
| 144 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 124 const Code<Null> codeSuperNullAware = messageSuperNullAware; | 145 const Code<Null> codeSuperNullAware = messageSuperNullAware; |
| 125 | 146 |
| 126 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 147 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 127 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", | 148 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
| 128 dart2jsCode: "FASTA_IGNORED", | 149 dart2jsCode: "FASTA_IGNORED", |
| 129 message: r"""'super' can't be null.""", | 150 message: r"""'super' can't be null.""", |
| 130 tip: r"""Try replacing '?.' with '.'"""); | 151 tip: r"""Try replacing '?.' with '.'"""); |
| 131 | 152 |
| 132 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 153 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 133 const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; | 154 const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 384 |
| 364 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 385 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 365 const Code<Null> codeAwaitNotAsync = messageAwaitNotAsync; | 386 const Code<Null> codeAwaitNotAsync = messageAwaitNotAsync; |
| 366 | 387 |
| 367 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 388 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 368 const MessageCode messageAwaitNotAsync = const MessageCode("AwaitNotAsync", | 389 const MessageCode messageAwaitNotAsync = const MessageCode("AwaitNotAsync", |
| 369 dart2jsCode: "FASTA_IGNORED", | 390 dart2jsCode: "FASTA_IGNORED", |
| 370 message: r"""'await' can only be used in 'async' or 'async*' methods."""); | 391 message: r"""'await' can only be used in 'async' or 'async*' methods."""); |
| 371 | 392 |
| 372 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 393 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 394 const Template<Message Function(String string)> templateUnimplemented = |
| 395 const Template<Message Function(String string)>( |
| 396 messageTemplate: r"""Unimplemented: #string.""", |
| 397 withArguments: _withArgumentsUnimplemented); |
| 398 |
| 399 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 400 const Code<Message Function(String string)> codeUnimplemented = |
| 401 const Code<Message Function(String string)>( |
| 402 "Unimplemented", |
| 403 templateUnimplemented, |
| 404 ); |
| 405 |
| 406 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 407 Message _withArgumentsUnimplemented(String string) { |
| 408 return new Message(codeUnimplemented, |
| 409 message: """Unimplemented: $string.""", arguments: {'string': string}); |
| 410 } |
| 411 |
| 412 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 413 const Template<Message Function(String string, String name)> templateUnhandled = |
| 414 const Template<Message Function(String string, String name)>( |
| 415 messageTemplate: r"""Unhandled: #string in #name.""", |
| 416 withArguments: _withArgumentsUnhandled); |
| 417 |
| 418 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 419 const Code<Message Function(String string, String name)> codeUnhandled = |
| 420 const Code<Message Function(String string, String name)>( |
| 421 "Unhandled", |
| 422 templateUnhandled, |
| 423 ); |
| 424 |
| 425 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 426 Message _withArgumentsUnhandled(String string, String name) { |
| 427 return new Message(codeUnhandled, |
| 428 message: """Unhandled: $string in $name.""", |
| 429 arguments: {'string': string, 'name': name}); |
| 430 } |
| 431 |
| 432 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 373 const Template<Message Function(Token token)> templateExpectedFunctionBody = | 433 const Template<Message Function(Token token)> templateExpectedFunctionBody = |
| 374 const Template<Message Function(Token token)>( | 434 const Template<Message Function(Token token)>( |
| 375 messageTemplate: r"""Expected a function body, but got '#lexeme'.""", | 435 messageTemplate: r"""Expected a function body, but got '#lexeme'.""", |
| 376 withArguments: _withArgumentsExpectedFunctionBody); | 436 withArguments: _withArgumentsExpectedFunctionBody); |
| 377 | 437 |
| 378 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 438 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 379 const Code<Message Function(Token token)> codeExpectedFunctionBody = | 439 const Code<Message Function(Token token)> codeExpectedFunctionBody = |
| 380 const Code<Message Function(Token token)>( | 440 const Code<Message Function(Token token)>( |
| 381 "ExpectedFunctionBody", templateExpectedFunctionBody, | 441 "ExpectedFunctionBody", templateExpectedFunctionBody, |
| 382 dart2jsCode: "NATIVE_OR_FATAL"); | 442 dart2jsCode: "NATIVE_OR_FATAL"); |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 templateMethodNotFound, | 1119 templateMethodNotFound, |
| 1060 ); | 1120 ); |
| 1061 | 1121 |
| 1062 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1122 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1063 Message _withArgumentsMethodNotFound(String name) { | 1123 Message _withArgumentsMethodNotFound(String name) { |
| 1064 return new Message(codeMethodNotFound, | 1124 return new Message(codeMethodNotFound, |
| 1065 message: """Method not found: '$name'.""", arguments: {'name': name}); | 1125 message: """Method not found: '$name'.""", arguments: {'name': name}); |
| 1066 } | 1126 } |
| 1067 | 1127 |
| 1068 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1128 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1129 const Template<Message Function(String name)> templateUnsupported = |
| 1130 const Template<Message Function(String name)>( |
| 1131 messageTemplate: r"""Unsupported operation: '#name'.""", |
| 1132 withArguments: _withArgumentsUnsupported); |
| 1133 |
| 1134 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1135 const Code<Message Function(String name)> codeUnsupported = |
| 1136 const Code<Message Function(String name)>( |
| 1137 "Unsupported", |
| 1138 templateUnsupported, |
| 1139 ); |
| 1140 |
| 1141 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1142 Message _withArgumentsUnsupported(String name) { |
| 1143 return new Message(codeUnsupported, |
| 1144 message: """Unsupported operation: '$name'.""", |
| 1145 arguments: {'name': name}); |
| 1146 } |
| 1147 |
| 1148 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1069 const Template<Message Function(Token token)> | 1149 const Template<Message Function(Token token)> |
| 1070 templateBuiltInIdentifierInDeclaration = | 1150 templateBuiltInIdentifierInDeclaration = |
| 1071 const Template<Message Function(Token token)>( | 1151 const Template<Message Function(Token token)>( |
| 1072 messageTemplate: r"""Can't use '#lexeme' as a name here.""", | 1152 messageTemplate: r"""Can't use '#lexeme' as a name here.""", |
| 1073 withArguments: _withArgumentsBuiltInIdentifierInDeclaration); | 1153 withArguments: _withArgumentsBuiltInIdentifierInDeclaration); |
| 1074 | 1154 |
| 1075 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1155 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1076 const Code<Message Function(Token token)> codeBuiltInIdentifierInDeclaration = | 1156 const Code<Message Function(Token token)> codeBuiltInIdentifierInDeclaration = |
| 1077 const Code<Message Function(Token token)>("BuiltInIdentifierInDeclaration", | 1157 const Code<Message Function(Token token)>("BuiltInIdentifierInDeclaration", |
| 1078 templateBuiltInIdentifierInDeclaration, | 1158 templateBuiltInIdentifierInDeclaration, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 | 1210 |
| 1131 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1211 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1132 Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { | 1212 Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { |
| 1133 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 1213 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 1134 return new Message(codeNonAsciiIdentifier, | 1214 return new Message(codeNonAsciiIdentifier, |
| 1135 message: | 1215 message: |
| 1136 """The non-ASCII character '$character' ($unicode) can't be used in id
entifiers, only in strings and comments.""", | 1216 """The non-ASCII character '$character' ($unicode) can't be used in id
entifiers, only in strings and comments.""", |
| 1137 tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$
' (a dollar sign).""", | 1217 tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$
' (a dollar sign).""", |
| 1138 arguments: {'character': character, 'codePoint': codePoint}); | 1218 arguments: {'character': character, 'codePoint': codePoint}); |
| 1139 } | 1219 } |
| OLD | NEW |