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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 251 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
252 const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", | 252 const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", |
253 dart2jsCode: "*ignored*", | 253 dart2jsCode: "*ignored*", |
254 message: | 254 message: |
255 r"""'catch' must be followed by '(identifier)' or '(identifier, identifi
er)'.""", | 255 r"""'catch' must be followed by '(identifier)' or '(identifier, identifi
er)'.""", |
256 tip: | 256 tip: |
257 r"""No types are needed, the first is given by 'on', the second is alway
s 'StackTrace'."""); | 257 r"""No types are needed, the first is given by 'on', the second is alway
s 'StackTrace'."""); |
258 | 258 |
259 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 259 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 260 const Template<Message Function(String name)> templateClassNotFound = |
| 261 const Template<Message Function(String name)>( |
| 262 messageTemplate: r"""Couldn't find a class named '#name'.""", |
| 263 withArguments: _withArgumentsClassNotFound); |
| 264 |
| 265 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 266 const Code<Message Function(String name)> codeClassNotFound = |
| 267 const Code<Message Function(String name)>( |
| 268 "ClassNotFound", |
| 269 templateClassNotFound, |
| 270 ); |
| 271 |
| 272 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 273 Message _withArgumentsClassNotFound(String name) { |
| 274 return new Message(codeClassNotFound, |
| 275 message: """Couldn't find a class named '$name'.""", |
| 276 arguments: {'name': name}); |
| 277 } |
| 278 |
| 279 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
260 const Template<Message Function(String name)> templateConflictsWithConstructor = | 280 const Template<Message Function(String name)> templateConflictsWithConstructor = |
261 const Template<Message Function(String name)>( | 281 const Template<Message Function(String name)>( |
262 messageTemplate: r"""Conflicts with constructor '#name'.""", | 282 messageTemplate: r"""Conflicts with constructor '#name'.""", |
263 withArguments: _withArgumentsConflictsWithConstructor); | 283 withArguments: _withArgumentsConflictsWithConstructor); |
264 | 284 |
265 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 285 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
266 const Code<Message Function(String name)> codeConflictsWithConstructor = | 286 const Code<Message Function(String name)> codeConflictsWithConstructor = |
267 const Code<Message Function(String name)>( | 287 const Code<Message Function(String name)>( |
268 "ConflictsWithConstructor", | 288 "ConflictsWithConstructor", |
269 templateConflictsWithConstructor, | 289 templateConflictsWithConstructor, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 417 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
398 const MessageCode messageConstFieldWithoutInitializer = const MessageCode( | 418 const MessageCode messageConstFieldWithoutInitializer = const MessageCode( |
399 "ConstFieldWithoutInitializer", | 419 "ConstFieldWithoutInitializer", |
400 dart2jsCode: "*ignored*", | 420 dart2jsCode: "*ignored*", |
401 message: r"""A 'const' field must be initialized.""", | 421 message: r"""A 'const' field must be initialized.""", |
402 tip: r"""Try adding '= <initializer>'."""); | 422 tip: r"""Try adding '= <initializer>'."""); |
403 | 423 |
404 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 424 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
405 const Template<Message Function(String name)> templateConstructorNotFound = | 425 const Template<Message Function(String name)> templateConstructorNotFound = |
406 const Template<Message Function(String name)>( | 426 const Template<Message Function(String name)>( |
407 messageTemplate: r"""Couldn't find constructor '#name'.""", | 427 messageTemplate: r"""Couldn't find a constructor named '#name'.""", |
408 withArguments: _withArgumentsConstructorNotFound); | 428 withArguments: _withArgumentsConstructorNotFound); |
409 | 429 |
410 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 430 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
411 const Code<Message Function(String name)> codeConstructorNotFound = | 431 const Code<Message Function(String name)> codeConstructorNotFound = |
412 const Code<Message Function(String name)>( | 432 const Code<Message Function(String name)>( |
413 "ConstructorNotFound", | 433 "ConstructorNotFound", |
414 templateConstructorNotFound, | 434 templateConstructorNotFound, |
415 ); | 435 ); |
416 | 436 |
417 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 437 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
418 Message _withArgumentsConstructorNotFound(String name) { | 438 Message _withArgumentsConstructorNotFound(String name) { |
419 return new Message(codeConstructorNotFound, | 439 return new Message(codeConstructorNotFound, |
420 message: """Couldn't find constructor '$name'.""", | 440 message: """Couldn't find a constructor named '$name'.""", |
421 arguments: {'name': name}); | 441 arguments: {'name': name}); |
422 } | 442 } |
423 | 443 |
424 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 444 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
425 const Template<Message Function(String name, String string)> | 445 const Template<Message Function(String name, String string)> |
426 templateCyclicClassHierarchy = | 446 templateCyclicClassHierarchy = |
427 const Template<Message Function(String name, String string)>( | 447 const Template<Message Function(String name, String string)>( |
428 messageTemplate: r"""'#name' is a supertype of itself via '#string'.""", | 448 messageTemplate: r"""'#name' is a supertype of itself via '#string'.""", |
429 withArguments: _withArgumentsCyclicClassHierarchy); | 449 withArguments: _withArgumentsCyclicClassHierarchy); |
430 | 450 |
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2017 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2037 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2018 const Code<Null> codeNonInstanceTypeVariableUse = | 2038 const Code<Null> codeNonInstanceTypeVariableUse = |
2019 messageNonInstanceTypeVariableUse; | 2039 messageNonInstanceTypeVariableUse; |
2020 | 2040 |
2021 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2041 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2022 const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( | 2042 const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( |
2023 "NonInstanceTypeVariableUse", | 2043 "NonInstanceTypeVariableUse", |
2024 message: r"""Can only use type variables in instance methods."""); | 2044 message: r"""Can only use type variables in instance methods."""); |
2025 | 2045 |
2026 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2046 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2047 const Template<Message Function(String name)> templateNotAConstructor = |
| 2048 const Template<Message Function(String name)>( |
| 2049 messageTemplate: r"""'#name' isn't a constructor.""", |
| 2050 withArguments: _withArgumentsNotAConstructor); |
| 2051 |
| 2052 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2053 const Code<Message Function(String name)> codeNotAConstructor = |
| 2054 const Code<Message Function(String name)>( |
| 2055 "NotAConstructor", |
| 2056 templateNotAConstructor, |
| 2057 ); |
| 2058 |
| 2059 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2060 Message _withArgumentsNotAConstructor(String name) { |
| 2061 return new Message(codeNotAConstructor, |
| 2062 message: """'$name' isn't a constructor.""", arguments: {'name': name}); |
| 2063 } |
| 2064 |
| 2065 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2027 const Template<Message Function(String name)> templateNotAType = | 2066 const Template<Message Function(String name)> templateNotAType = |
2028 const Template<Message Function(String name)>( | 2067 const Template<Message Function(String name)>( |
2029 messageTemplate: r"""'#name' isn't a type.""", | 2068 messageTemplate: r"""'#name' isn't a type.""", |
2030 withArguments: _withArgumentsNotAType); | 2069 withArguments: _withArgumentsNotAType); |
2031 | 2070 |
2032 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2071 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2033 const Code<Message Function(String name)> codeNotAType = | 2072 const Code<Message Function(String name)> codeNotAType = |
2034 const Code<Message Function(String name)>( | 2073 const Code<Message Function(String name)>( |
2035 "NotAType", | 2074 "NotAType", |
2036 templateNotAType, | 2075 templateNotAType, |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3098 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 3137 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
3099 | 3138 |
3100 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 3139 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
3101 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 3140 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
3102 | 3141 |
3103 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 3142 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
3104 const MessageCode messageYieldNotGenerator = const MessageCode( | 3143 const MessageCode messageYieldNotGenerator = const MessageCode( |
3105 "YieldNotGenerator", | 3144 "YieldNotGenerator", |
3106 dart2jsCode: "*ignored*", | 3145 dart2jsCode: "*ignored*", |
3107 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 3146 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |