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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 168 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
169 const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", | 169 const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", |
170 dart2jsCode: "*ignored*", | 170 dart2jsCode: "*ignored*", |
171 message: | 171 message: |
172 r"""'catch' must be followed by '(identifier)' or '(identifier, identifi
er)'.""", | 172 r"""'catch' must be followed by '(identifier)' or '(identifier, identifi
er)'.""", |
173 tip: | 173 tip: |
174 r"""No types are needed, the first is given by 'on', the second is alway
s 'StackTrace'."""); | 174 r"""No types are needed, the first is given by 'on', the second is alway
s 'StackTrace'."""); |
175 | 175 |
176 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 176 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 177 const Template<Message Function(String name)> templateConflictsWithConstructor = |
| 178 const Template<Message Function(String name)>( |
| 179 messageTemplate: r"""Conflicts with constructor '#name'.""", |
| 180 withArguments: _withArgumentsConflictsWithConstructor); |
| 181 |
| 182 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 183 const Code<Message Function(String name)> codeConflictsWithConstructor = |
| 184 const Code<Message Function(String name)>( |
| 185 "ConflictsWithConstructor", |
| 186 templateConflictsWithConstructor, |
| 187 ); |
| 188 |
| 189 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 190 Message _withArgumentsConflictsWithConstructor(String name) { |
| 191 return new Message(codeConflictsWithConstructor, |
| 192 message: """Conflicts with constructor '$name'.""", |
| 193 arguments: {'name': name}); |
| 194 } |
| 195 |
| 196 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 197 const Template<Message Function(String name)> templateConflictsWithFactory = |
| 198 const Template<Message Function(String name)>( |
| 199 messageTemplate: r"""Conflicts with factory '#name'.""", |
| 200 withArguments: _withArgumentsConflictsWithFactory); |
| 201 |
| 202 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 203 const Code<Message Function(String name)> codeConflictsWithFactory = |
| 204 const Code<Message Function(String name)>( |
| 205 "ConflictsWithFactory", |
| 206 templateConflictsWithFactory, |
| 207 ); |
| 208 |
| 209 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 210 Message _withArgumentsConflictsWithFactory(String name) { |
| 211 return new Message(codeConflictsWithFactory, |
| 212 message: """Conflicts with factory '$name'.""", |
| 213 arguments: {'name': name}); |
| 214 } |
| 215 |
| 216 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 217 const Template<Message Function(String name)> templateConflictsWithMember = |
| 218 const Template<Message Function(String name)>( |
| 219 messageTemplate: r"""Conflicts with member '#name'.""", |
| 220 withArguments: _withArgumentsConflictsWithMember); |
| 221 |
| 222 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 223 const Code<Message Function(String name)> codeConflictsWithMember = |
| 224 const Code<Message Function(String name)>( |
| 225 "ConflictsWithMember", |
| 226 templateConflictsWithMember, |
| 227 ); |
| 228 |
| 229 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 230 Message _withArgumentsConflictsWithMember(String name) { |
| 231 return new Message(codeConflictsWithMember, |
| 232 message: """Conflicts with member '$name'.""", arguments: {'name': name}); |
| 233 } |
| 234 |
| 235 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 236 const Template<Message Function(String name)> templateConflictsWithSetter = |
| 237 const Template<Message Function(String name)>( |
| 238 messageTemplate: r"""Conflicts with setter '#name'.""", |
| 239 withArguments: _withArgumentsConflictsWithSetter); |
| 240 |
| 241 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 242 const Code<Message Function(String name)> codeConflictsWithSetter = |
| 243 const Code<Message Function(String name)>( |
| 244 "ConflictsWithSetter", |
| 245 templateConflictsWithSetter, |
| 246 ); |
| 247 |
| 248 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 249 Message _withArgumentsConflictsWithSetter(String name) { |
| 250 return new Message(codeConflictsWithSetter, |
| 251 message: """Conflicts with setter '$name'.""", arguments: {'name': name}); |
| 252 } |
| 253 |
| 254 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 255 const Template<Message Function(String name)> |
| 256 templateConflictsWithTypeVariable = |
| 257 const Template<Message Function(String name)>( |
| 258 messageTemplate: r"""Conflicts with type variable '#name'.""", |
| 259 withArguments: _withArgumentsConflictsWithTypeVariable); |
| 260 |
| 261 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 262 const Code<Message Function(String name)> codeConflictsWithTypeVariable = |
| 263 const Code<Message Function(String name)>( |
| 264 "ConflictsWithTypeVariable", |
| 265 templateConflictsWithTypeVariable, |
| 266 ); |
| 267 |
| 268 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 269 Message _withArgumentsConflictsWithTypeVariable(String name) { |
| 270 return new Message(codeConflictsWithTypeVariable, |
| 271 message: """Conflicts with type variable '$name'.""", |
| 272 arguments: {'name': name}); |
| 273 } |
| 274 |
| 275 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 276 const Code<Null> codeConflictsWithTypeVariableCause = |
| 277 messageConflictsWithTypeVariableCause; |
| 278 |
| 279 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 280 const MessageCode messageConflictsWithTypeVariableCause = const MessageCode( |
| 281 "ConflictsWithTypeVariableCause", |
| 282 message: r"""This is the type variable."""); |
| 283 |
| 284 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
177 const Code<Null> codeConstFieldWithoutInitializer = | 285 const Code<Null> codeConstFieldWithoutInitializer = |
178 messageConstFieldWithoutInitializer; | 286 messageConstFieldWithoutInitializer; |
179 | 287 |
180 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 288 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
181 const MessageCode messageConstFieldWithoutInitializer = const MessageCode( | 289 const MessageCode messageConstFieldWithoutInitializer = const MessageCode( |
182 "ConstFieldWithoutInitializer", | 290 "ConstFieldWithoutInitializer", |
183 dart2jsCode: "*ignored*", | 291 dart2jsCode: "*ignored*", |
184 message: r"""A 'const' field must be initialized.""", | 292 message: r"""A 'const' field must be initialized.""", |
185 tip: r"""Try adding '= <initializer>'."""); | 293 tip: r"""Try adding '= <initializer>'."""); |
186 | 294 |
(...skipping 11 matching lines...) Expand all Loading... |
198 ); | 306 ); |
199 | 307 |
200 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 308 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
201 Message _withArgumentsConstructorNotFound(String name) { | 309 Message _withArgumentsConstructorNotFound(String name) { |
202 return new Message(codeConstructorNotFound, | 310 return new Message(codeConstructorNotFound, |
203 message: """Couldn't find constructor '$name'.""", | 311 message: """Couldn't find constructor '$name'.""", |
204 arguments: {'name': name}); | 312 arguments: {'name': name}); |
205 } | 313 } |
206 | 314 |
207 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 315 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 316 const Template<Message Function(String name, String string)> |
| 317 templateCyclicClassHierarchy = |
| 318 const Template<Message Function(String name, String string)>( |
| 319 messageTemplate: r"""'#name' is a supertype of itself via '#string'.""", |
| 320 withArguments: _withArgumentsCyclicClassHierarchy); |
| 321 |
| 322 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 323 const Code<Message Function(String name, String string)> |
| 324 codeCyclicClassHierarchy = |
| 325 const Code<Message Function(String name, String string)>( |
| 326 "CyclicClassHierarchy", |
| 327 templateCyclicClassHierarchy, |
| 328 ); |
| 329 |
| 330 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 331 Message _withArgumentsCyclicClassHierarchy(String name, String string) { |
| 332 return new Message(codeCyclicClassHierarchy, |
| 333 message: """'$name' is a supertype of itself via '$string'.""", |
| 334 arguments: {'name': name, 'string': string}); |
| 335 } |
| 336 |
| 337 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
208 const Template<Message Function(String name)> templateCyclicTypedef = | 338 const Template<Message Function(String name)> templateCyclicTypedef = |
209 const Template<Message Function(String name)>( | 339 const Template<Message Function(String name)>( |
210 messageTemplate: r"""The typedef '#name' has a reference to itself.""", | 340 messageTemplate: r"""The typedef '#name' has a reference to itself.""", |
211 withArguments: _withArgumentsCyclicTypedef); | 341 withArguments: _withArgumentsCyclicTypedef); |
212 | 342 |
213 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 343 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
214 const Code<Message Function(String name)> codeCyclicTypedef = | 344 const Code<Message Function(String name)> codeCyclicTypedef = |
215 const Code<Message Function(String name)>( | 345 const Code<Message Function(String name)>( |
216 "CyclicTypedef", | 346 "CyclicTypedef", |
217 templateCyclicTypedef, | 347 templateCyclicTypedef, |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 673 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
544 Message _withArgumentsExportHidesExport(String name, Uri uri_, Uri uri2_) { | 674 Message _withArgumentsExportHidesExport(String name, Uri uri_, Uri uri2_) { |
545 String uri = relativizeUri(uri_); | 675 String uri = relativizeUri(uri_); |
546 String uri2 = relativizeUri(uri2_); | 676 String uri2 = relativizeUri(uri2_); |
547 return new Message(codeExportHidesExport, | 677 return new Message(codeExportHidesExport, |
548 message: """Export of '$name' (from '$uri') hides export from '$uri2'.""", | 678 message: """Export of '$name' (from '$uri') hides export from '$uri2'.""", |
549 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); | 679 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
550 } | 680 } |
551 | 681 |
552 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 682 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 683 const Template<Message Function(String name)> templateExtendingEnum = |
| 684 const Template<Message Function(String name)>( |
| 685 messageTemplate: |
| 686 r"""'#name' is an enum and can't be extended or implemented.""", |
| 687 withArguments: _withArgumentsExtendingEnum); |
| 688 |
| 689 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 690 const Code<Message Function(String name)> codeExtendingEnum = |
| 691 const Code<Message Function(String name)>( |
| 692 "ExtendingEnum", |
| 693 templateExtendingEnum, |
| 694 ); |
| 695 |
| 696 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 697 Message _withArgumentsExtendingEnum(String name) { |
| 698 return new Message(codeExtendingEnum, |
| 699 message: """'$name' is an enum and can't be extended or implemented.""", |
| 700 arguments: {'name': name}); |
| 701 } |
| 702 |
| 703 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 704 const Template<Message Function(String name)> templateExtendingRestricted = |
| 705 const Template<Message Function(String name)>( |
| 706 messageTemplate: |
| 707 r"""'#name' is restricted and can't be extended or implemented.""", |
| 708 withArguments: _withArgumentsExtendingRestricted); |
| 709 |
| 710 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 711 const Code<Message Function(String name)> codeExtendingRestricted = |
| 712 const Code<Message Function(String name)>( |
| 713 "ExtendingRestricted", |
| 714 templateExtendingRestricted, |
| 715 ); |
| 716 |
| 717 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 718 Message _withArgumentsExtendingRestricted(String name) { |
| 719 return new Message(codeExtendingRestricted, |
| 720 message: |
| 721 """'$name' is restricted and can't be extended or implemented.""", |
| 722 arguments: {'name': name}); |
| 723 } |
| 724 |
| 725 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
553 const Template<Message Function(Token token)> templateExtraneousModifier = | 726 const Template<Message Function(Token token)> templateExtraneousModifier = |
554 const Template<Message Function(Token token)>( | 727 const Template<Message Function(Token token)>( |
555 messageTemplate: r"""Can't have modifier '#lexeme' here.""", | 728 messageTemplate: r"""Can't have modifier '#lexeme' here.""", |
556 tipTemplate: r"""Try removing '#lexeme'.""", | 729 tipTemplate: r"""Try removing '#lexeme'.""", |
557 withArguments: _withArgumentsExtraneousModifier); | 730 withArguments: _withArgumentsExtraneousModifier); |
558 | 731 |
559 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 732 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
560 const Code<Message Function(Token token)> codeExtraneousModifier = | 733 const Code<Message Function(Token token)> codeExtraneousModifier = |
561 const Code<Message Function(Token token)>( | 734 const Code<Message Function(Token token)>( |
562 "ExtraneousModifier", templateExtraneousModifier, | 735 "ExtraneousModifier", templateExtraneousModifier, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 const Code<Null> codeGetterWithFormals = messageGetterWithFormals; | 889 const Code<Null> codeGetterWithFormals = messageGetterWithFormals; |
717 | 890 |
718 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 891 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
719 const MessageCode messageGetterWithFormals = const MessageCode( | 892 const MessageCode messageGetterWithFormals = const MessageCode( |
720 "GetterWithFormals", | 893 "GetterWithFormals", |
721 dart2jsCode: "*ignored*", | 894 dart2jsCode: "*ignored*", |
722 message: r"""A getter can't have formal parameters.""", | 895 message: r"""A getter can't have formal parameters.""", |
723 tip: r"""Try removing '(...)'."""); | 896 tip: r"""Try removing '(...)'."""); |
724 | 897 |
725 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 898 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 899 const Template<Message Function(String name)> templateIllegalMixin = |
| 900 const Template<Message Function(String name)>( |
| 901 messageTemplate: r"""The type '#name' can't be mixed in.""", |
| 902 withArguments: _withArgumentsIllegalMixin); |
| 903 |
| 904 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 905 const Code<Message Function(String name)> codeIllegalMixin = |
| 906 const Code<Message Function(String name)>( |
| 907 "IllegalMixin", |
| 908 templateIllegalMixin, |
| 909 ); |
| 910 |
| 911 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 912 Message _withArgumentsIllegalMixin(String name) { |
| 913 return new Message(codeIllegalMixin, |
| 914 message: """The type '$name' can't be mixed in.""", |
| 915 arguments: {'name': name}); |
| 916 } |
| 917 |
| 918 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 919 const Template<Message Function(String name)> |
| 920 templateIllegalMixinDueToConstructors = |
| 921 const Template<Message Function(String name)>( |
| 922 messageTemplate: |
| 923 r"""Can't use '#name' as a mixin because it has constructors.""", |
| 924 withArguments: _withArgumentsIllegalMixinDueToConstructors); |
| 925 |
| 926 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 927 const Code<Message Function(String name)> codeIllegalMixinDueToConstructors = |
| 928 const Code<Message Function(String name)>( |
| 929 "IllegalMixinDueToConstructors", |
| 930 templateIllegalMixinDueToConstructors, |
| 931 ); |
| 932 |
| 933 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 934 Message _withArgumentsIllegalMixinDueToConstructors(String name) { |
| 935 return new Message(codeIllegalMixinDueToConstructors, |
| 936 message: """Can't use '$name' as a mixin because it has constructors.""", |
| 937 arguments: {'name': name}); |
| 938 } |
| 939 |
| 940 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 941 const Template<Message Function(String name)> |
| 942 templateIllegalMixinDueToConstructorsCause = |
| 943 const Template<Message Function(String name)>( |
| 944 messageTemplate: |
| 945 r"""This constructor prevents using '#name' as a mixin.""", |
| 946 withArguments: _withArgumentsIllegalMixinDueToConstructorsCause); |
| 947 |
| 948 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 949 const Code<Message Function(String name)> |
| 950 codeIllegalMixinDueToConstructorsCause = |
| 951 const Code<Message Function(String name)>( |
| 952 "IllegalMixinDueToConstructorsCause", |
| 953 templateIllegalMixinDueToConstructorsCause, |
| 954 ); |
| 955 |
| 956 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 957 Message _withArgumentsIllegalMixinDueToConstructorsCause(String name) { |
| 958 return new Message(codeIllegalMixinDueToConstructorsCause, |
| 959 message: """This constructor prevents using '$name' as a mixin.""", |
| 960 arguments: {'name': name}); |
| 961 } |
| 962 |
| 963 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
726 const Template<Message Function(String name, Uri uri_, Uri uri2_)> | 964 const Template<Message Function(String name, Uri uri_, Uri uri2_)> |
727 templateImportHidesImport = | 965 templateImportHidesImport = |
728 const Template<Message Function(String name, Uri uri_, Uri uri2_)>( | 966 const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
729 messageTemplate: | 967 messageTemplate: |
730 r"""Import of '#name' (from '#uri') hides import from '#uri2'.""", | 968 r"""Import of '#name' (from '#uri') hides import from '#uri2'.""", |
731 withArguments: _withArgumentsImportHidesImport); | 969 withArguments: _withArgumentsImportHidesImport); |
732 | 970 |
733 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 971 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
734 const Code<Message Function(String name, Uri uri_, Uri uri2_)> | 972 const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
735 codeImportHidesImport = | 973 codeImportHidesImport = |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 Message _withArgumentsNoFormals(Token token) { | 1413 Message _withArgumentsNoFormals(Token token) { |
1176 String lexeme = token.lexeme; | 1414 String lexeme = token.lexeme; |
1177 return new Message(codeNoFormals, | 1415 return new Message(codeNoFormals, |
1178 message: """A function should have formal parameters.""", | 1416 message: """A function should have formal parameters.""", |
1179 tip: | 1417 tip: |
1180 """Try adding '()' after '$lexeme', or add 'get' before '$lexeme' to d
eclare a getter.""", | 1418 """Try adding '()' after '$lexeme', or add 'get' before '$lexeme' to d
eclare a getter.""", |
1181 arguments: {'token': token}); | 1419 arguments: {'token': token}); |
1182 } | 1420 } |
1183 | 1421 |
1184 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1422 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1423 const Code<Null> codeNoUnnamedConstructorInObject = |
| 1424 messageNoUnnamedConstructorInObject; |
| 1425 |
| 1426 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1427 const MessageCode messageNoUnnamedConstructorInObject = const MessageCode( |
| 1428 "NoUnnamedConstructorInObject", |
| 1429 message: r"""'Object' has no unnamed constructor."""); |
| 1430 |
| 1431 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1185 const Template< | 1432 const Template< |
1186 Message Function( | 1433 Message Function( |
1187 String character, | 1434 String character, |
1188 int | 1435 int |
1189 codePoint)> templateNonAsciiIdentifier = const Template< | 1436 codePoint)> templateNonAsciiIdentifier = const Template< |
1190 Message Function(String character, int codePoint)>( | 1437 Message Function(String character, int codePoint)>( |
1191 messageTemplate: | 1438 messageTemplate: |
1192 r"""The non-ASCII character '#character' (#unicode) can't be used in ide
ntifiers, only in strings and comments.""", | 1439 r"""The non-ASCII character '#character' (#unicode) can't be used in ide
ntifiers, only in strings and comments.""", |
1193 tipTemplate: | 1440 tipTemplate: |
1194 r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (
a dollar sign).""", | 1441 r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (
a dollar sign).""", |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 const Code<Null> codeOnlyTry = messageOnlyTry; | 1515 const Code<Null> codeOnlyTry = messageOnlyTry; |
1269 | 1516 |
1270 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1517 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1271 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", | 1518 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", |
1272 dart2jsCode: "*ignored*", | 1519 dart2jsCode: "*ignored*", |
1273 message: | 1520 message: |
1274 r"""Try block should be followed by 'on', 'catch', or 'finally' block.""
", | 1521 r"""Try block should be followed by 'on', 'catch', or 'finally' block.""
", |
1275 tip: r"""Did you forget to add a 'finally' block?"""); | 1522 tip: r"""Did you forget to add a 'finally' block?"""); |
1276 | 1523 |
1277 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1524 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1525 const Template< |
| 1526 Message Function( |
| 1527 String name, |
| 1528 String |
| 1529 name2)> templateOverrideFewerNamedArguments = const Template< |
| 1530 Message Function(String name, String name2)>( |
| 1531 messageTemplate: |
| 1532 r"""The method '#name' has fewer named arguments than those of overridde
n method '#name2'.""", |
| 1533 withArguments: _withArgumentsOverrideFewerNamedArguments); |
| 1534 |
| 1535 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1536 const Code<Message Function(String name, String name2)> |
| 1537 codeOverrideFewerNamedArguments = |
| 1538 const Code<Message Function(String name, String name2)>( |
| 1539 "OverrideFewerNamedArguments", |
| 1540 templateOverrideFewerNamedArguments, |
| 1541 ); |
| 1542 |
| 1543 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1544 Message _withArgumentsOverrideFewerNamedArguments(String name, String name2) { |
| 1545 return new Message(codeOverrideFewerNamedArguments, |
| 1546 message: |
| 1547 """The method '$name' has fewer named arguments than those of overridd
en method '$name2'.""", |
| 1548 arguments: {'name': name, 'name2': name2}); |
| 1549 } |
| 1550 |
| 1551 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1552 const Template< |
| 1553 Message Function( |
| 1554 String name, |
| 1555 String |
| 1556 name2)> templateOverrideFewerPositionalArguments = const Template< |
| 1557 Message Function(String name, String name2)>( |
| 1558 messageTemplate: |
| 1559 r"""The method '#name' has fewer positional arguments than those of over
ridden method '#name2'.""", |
| 1560 withArguments: _withArgumentsOverrideFewerPositionalArguments); |
| 1561 |
| 1562 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1563 const Code<Message Function(String name, String name2)> |
| 1564 codeOverrideFewerPositionalArguments = |
| 1565 const Code<Message Function(String name, String name2)>( |
| 1566 "OverrideFewerPositionalArguments", |
| 1567 templateOverrideFewerPositionalArguments, |
| 1568 ); |
| 1569 |
| 1570 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1571 Message _withArgumentsOverrideFewerPositionalArguments( |
| 1572 String name, String name2) { |
| 1573 return new Message(codeOverrideFewerPositionalArguments, |
| 1574 message: |
| 1575 """The method '$name' has fewer positional arguments than those of ove
rridden method '$name2'.""", |
| 1576 arguments: {'name': name, 'name2': name2}); |
| 1577 } |
| 1578 |
| 1579 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1580 const Template< |
| 1581 Message Function( |
| 1582 String name, |
| 1583 String name2, |
| 1584 String |
| 1585 name3)> templateOverrideMismatchNamedParameter = const Template< |
| 1586 Message Function(String name, String name2, String name3)>( |
| 1587 messageTemplate: |
| 1588 r"""The method '#name' doesn't have the named parameter '#name2' of over
riden method '#name3'.""", |
| 1589 withArguments: _withArgumentsOverrideMismatchNamedParameter); |
| 1590 |
| 1591 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1592 const Code<Message Function(String name, String name2, String name3)> |
| 1593 codeOverrideMismatchNamedParameter = |
| 1594 const Code<Message Function(String name, String name2, String name3)>( |
| 1595 "OverrideMismatchNamedParameter", |
| 1596 templateOverrideMismatchNamedParameter, |
| 1597 ); |
| 1598 |
| 1599 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1600 Message _withArgumentsOverrideMismatchNamedParameter( |
| 1601 String name, String name2, String name3) { |
| 1602 return new Message(codeOverrideMismatchNamedParameter, |
| 1603 message: |
| 1604 """The method '$name' doesn't have the named parameter '$name2' of ove
rriden method '$name3'.""", |
| 1605 arguments: {'name': name, 'name2': name2, 'name3': name3}); |
| 1606 } |
| 1607 |
| 1608 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1609 const Template< |
| 1610 Message Function( |
| 1611 String name, |
| 1612 String |
| 1613 name2)> templateOverrideMoreRequiredArguments = const Template< |
| 1614 Message Function(String name, String name2)>( |
| 1615 messageTemplate: |
| 1616 r"""The method '#name' has more required arguments than those of overrid
den method '#name2'.""", |
| 1617 withArguments: _withArgumentsOverrideMoreRequiredArguments); |
| 1618 |
| 1619 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1620 const Code<Message Function(String name, String name2)> |
| 1621 codeOverrideMoreRequiredArguments = |
| 1622 const Code<Message Function(String name, String name2)>( |
| 1623 "OverrideMoreRequiredArguments", |
| 1624 templateOverrideMoreRequiredArguments, |
| 1625 ); |
| 1626 |
| 1627 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1628 Message _withArgumentsOverrideMoreRequiredArguments(String name, String name2) { |
| 1629 return new Message(codeOverrideMoreRequiredArguments, |
| 1630 message: |
| 1631 """The method '$name' has more required arguments than those of overri
dden method '$name2'.""", |
| 1632 arguments: {'name': name, 'name2': name2}); |
| 1633 } |
| 1634 |
| 1635 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1636 const Template< |
| 1637 Message Function( |
| 1638 String name, |
| 1639 String |
| 1640 name2)> templateOverrideTypeVariablesMismatch = const Template< |
| 1641 Message Function(String name, String name2)>( |
| 1642 messageTemplate: |
| 1643 r"""Declared type variables of '#name' doesn't match those on overridden
method '#name2'.""", |
| 1644 withArguments: _withArgumentsOverrideTypeVariablesMismatch); |
| 1645 |
| 1646 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1647 const Code<Message Function(String name, String name2)> |
| 1648 codeOverrideTypeVariablesMismatch = |
| 1649 const Code<Message Function(String name, String name2)>( |
| 1650 "OverrideTypeVariablesMismatch", |
| 1651 templateOverrideTypeVariablesMismatch, |
| 1652 ); |
| 1653 |
| 1654 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1655 Message _withArgumentsOverrideTypeVariablesMismatch(String name, String name2) { |
| 1656 return new Message(codeOverrideTypeVariablesMismatch, |
| 1657 message: |
| 1658 """Declared type variables of '$name' doesn't match those on overridde
n method '$name2'.""", |
| 1659 arguments: {'name': name, 'name2': name2}); |
| 1660 } |
| 1661 |
| 1662 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1278 const Code<Null> codePositionalParameterWithEquals = | 1663 const Code<Null> codePositionalParameterWithEquals = |
1279 messagePositionalParameterWithEquals; | 1664 messagePositionalParameterWithEquals; |
1280 | 1665 |
1281 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1666 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1282 const MessageCode messagePositionalParameterWithEquals = const MessageCode( | 1667 const MessageCode messagePositionalParameterWithEquals = const MessageCode( |
1283 "PositionalParameterWithEquals", | 1668 "PositionalParameterWithEquals", |
1284 dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", | 1669 dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", |
1285 message: | 1670 message: |
1286 r"""Positional optional parameters can't use ':' to specify a default va
lue.""", | 1671 r"""Positional optional parameters can't use ':' to specify a default va
lue.""", |
1287 tip: r"""Try replacing ':' with '='."""); | 1672 tip: r"""Try replacing ':' with '='."""); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 1932 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
1548 | 1933 |
1549 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1934 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1550 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 1935 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
1551 | 1936 |
1552 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1937 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1553 const MessageCode messageYieldNotGenerator = const MessageCode( | 1938 const MessageCode messageYieldNotGenerator = const MessageCode( |
1554 "YieldNotGenerator", | 1939 "YieldNotGenerator", |
1555 dart2jsCode: "*ignored*", | 1940 dart2jsCode: "*ignored*", |
1556 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 1941 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |