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 30 matching lines...) Expand all Loading... |
41 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 41 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
42 const Code<Null> codeNonInstanceTypeVariableUse = | 42 const Code<Null> codeNonInstanceTypeVariableUse = |
43 messageNonInstanceTypeVariableUse; | 43 messageNonInstanceTypeVariableUse; |
44 | 44 |
45 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 45 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
46 const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( | 46 const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( |
47 "NonInstanceTypeVariableUse", | 47 "NonInstanceTypeVariableUse", |
48 message: r"""Can only use type variables in instance methods."""); | 48 message: r"""Can only use type variables in instance methods."""); |
49 | 49 |
50 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 50 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 51 const Code<Null> codeInternalProblemPreviousTokenNotFound = |
| 52 messageInternalProblemPreviousTokenNotFound; |
| 53 |
| 54 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 55 const MessageCode messageInternalProblemPreviousTokenNotFound = |
| 56 const MessageCode("InternalProblemPreviousTokenNotFound", |
| 57 message: r"""Couldn't find previous token."""); |
| 58 |
| 59 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
51 const Code<Null> codeStackOverflow = messageStackOverflow; | 60 const Code<Null> codeStackOverflow = messageStackOverflow; |
52 | 61 |
53 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 62 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
54 const MessageCode messageStackOverflow = const MessageCode("StackOverflow", | 63 const MessageCode messageStackOverflow = const MessageCode("StackOverflow", |
55 dart2jsCode: "GENERIC", message: r"""Stack overflow."""); | 64 dart2jsCode: "GENERIC", message: r"""Stack overflow."""); |
56 | 65 |
57 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 66 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
58 const Template<Message Function(String name)> templateCyclicTypedef = | 67 const Template<Message Function(String name)> templateCyclicTypedef = |
59 const Template<Message Function(String name)>( | 68 const Template<Message Function(String name)>( |
60 messageTemplate: r"""The typedef '#name' has a reference to itself.""", | 69 messageTemplate: r"""The typedef '#name' has a reference to itself.""", |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ); | 145 ); |
137 | 146 |
138 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 147 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
139 Message _withArgumentsUnexpected(String string, String string2) { | 148 Message _withArgumentsUnexpected(String string, String string2) { |
140 return new Message(codeUnexpected, | 149 return new Message(codeUnexpected, |
141 message: """Internal error: Expected '$string', but got '$string2'.""", | 150 message: """Internal error: Expected '$string', but got '$string2'.""", |
142 arguments: {'string': string, 'string2': string2}); | 151 arguments: {'string': string, 'string2': string2}); |
143 } | 152 } |
144 | 153 |
145 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 154 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 155 const Template<Message Function(String name, Uri uri_)> |
| 156 templateInternalProblemConstructorNotFound = |
| 157 const Template<Message Function(String name, Uri uri_)>( |
| 158 messageTemplate: |
| 159 r"""Internal error: No constructor named '#name' in '#uri'.""", |
| 160 withArguments: _withArgumentsInternalProblemConstructorNotFound); |
| 161 |
| 162 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 163 const Code<Message Function(String name, Uri uri_)> |
| 164 codeInternalProblemConstructorNotFound = |
| 165 const Code<Message Function(String name, Uri uri_)>( |
| 166 "InternalProblemConstructorNotFound", |
| 167 templateInternalProblemConstructorNotFound, |
| 168 ); |
| 169 |
| 170 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 171 Message _withArgumentsInternalProblemConstructorNotFound( |
| 172 String name, Uri uri_) { |
| 173 String uri = relativizeUri(uri_); |
| 174 return new Message(codeInternalProblemConstructorNotFound, |
| 175 message: """Internal error: No constructor named '$name' in '$uri'.""", |
| 176 arguments: {'name': name, 'uri': uri_}); |
| 177 } |
| 178 |
| 179 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
146 const Code<Null> codeSuperNullAware = messageSuperNullAware; | 180 const Code<Null> codeSuperNullAware = messageSuperNullAware; |
147 | 181 |
148 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 182 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
149 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", | 183 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
150 dart2jsCode: "*ignored*", | 184 dart2jsCode: "*ignored*", |
151 message: r"""'super' can't be null.""", | 185 message: r"""'super' can't be null.""", |
152 tip: r"""Try replacing '?.' with '.'"""); | 186 tip: r"""Try replacing '?.' with '.'"""); |
153 | 187 |
154 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 188 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
155 const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; | 189 const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 messageEmptyOptionalParameterList; | 382 messageEmptyOptionalParameterList; |
349 | 383 |
350 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 384 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
351 const MessageCode messageEmptyOptionalParameterList = const MessageCode( | 385 const MessageCode messageEmptyOptionalParameterList = const MessageCode( |
352 "EmptyOptionalParameterList", | 386 "EmptyOptionalParameterList", |
353 dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", | 387 dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", |
354 message: r"""Optional parameter lists cannot be empty.""", | 388 message: r"""Optional parameter lists cannot be empty.""", |
355 tip: r"""Try adding an optional parameter to the list."""); | 389 tip: r"""Try adding an optional parameter to the list."""); |
356 | 390 |
357 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 391 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 392 const Template<Message Function(String name, String name2)> |
| 393 templateInternalProblemNotFoundIn = |
| 394 const Template<Message Function(String name, String name2)>( |
| 395 messageTemplate: |
| 396 r"""Internal error: Couldn't find '#name' in '#name2'.""", |
| 397 withArguments: _withArgumentsInternalProblemNotFoundIn); |
| 398 |
| 399 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 400 const Code<Message Function(String name, String name2)> |
| 401 codeInternalProblemNotFoundIn = |
| 402 const Code<Message Function(String name, String name2)>( |
| 403 "InternalProblemNotFoundIn", |
| 404 templateInternalProblemNotFoundIn, |
| 405 ); |
| 406 |
| 407 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 408 Message _withArgumentsInternalProblemNotFoundIn(String name, String name2) { |
| 409 return new Message(codeInternalProblemNotFoundIn, |
| 410 message: """Internal error: Couldn't find '$name' in '$name2'.""", |
| 411 arguments: {'name': name, 'name2': name2}); |
| 412 } |
| 413 |
| 414 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
358 const Template<Message Function(String name)> templateTypeNotFound = | 415 const Template<Message Function(String name)> templateTypeNotFound = |
359 const Template<Message Function(String name)>( | 416 const Template<Message Function(String name)>( |
360 messageTemplate: r"""Type '#name' not found.""", | 417 messageTemplate: r"""Type '#name' not found.""", |
361 withArguments: _withArgumentsTypeNotFound); | 418 withArguments: _withArgumentsTypeNotFound); |
362 | 419 |
363 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 420 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
364 const Code<Message Function(String name)> codeTypeNotFound = | 421 const Code<Message Function(String name)> codeTypeNotFound = |
365 const Code<Message Function(String name)>( | 422 const Code<Message Function(String name)>( |
366 "TypeNotFound", | 423 "TypeNotFound", |
367 templateTypeNotFound, | 424 templateTypeNotFound, |
368 ); | 425 ); |
369 | 426 |
370 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 427 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
371 Message _withArgumentsTypeNotFound(String name) { | 428 Message _withArgumentsTypeNotFound(String name) { |
372 return new Message(codeTypeNotFound, | 429 return new Message(codeTypeNotFound, |
373 message: """Type '$name' not found.""", arguments: {'name': name}); | 430 message: """Type '$name' not found.""", arguments: {'name': name}); |
374 } | 431 } |
375 | 432 |
376 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 433 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 434 const Template<Message Function(String name)> |
| 435 templateInternalProblemSuperclassNotFound = |
| 436 const Template<Message Function(String name)>( |
| 437 messageTemplate: r"""Internal error: Superclass not found '#name'.""", |
| 438 withArguments: _withArgumentsInternalProblemSuperclassNotFound); |
| 439 |
| 440 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 441 const Code<Message Function(String name)> |
| 442 codeInternalProblemSuperclassNotFound = |
| 443 const Code<Message Function(String name)>( |
| 444 "InternalProblemSuperclassNotFound", |
| 445 templateInternalProblemSuperclassNotFound, |
| 446 ); |
| 447 |
| 448 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 449 Message _withArgumentsInternalProblemSuperclassNotFound(String name) { |
| 450 return new Message(codeInternalProblemSuperclassNotFound, |
| 451 message: """Internal error: Superclass not found '$name'.""", |
| 452 arguments: {'name': name}); |
| 453 } |
| 454 |
| 455 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
377 const Template<Message Function(String string)> templateUnterminatedString = | 456 const Template<Message Function(String string)> templateUnterminatedString = |
378 const Template<Message Function(String string)>( | 457 const Template<Message Function(String string)>( |
379 messageTemplate: r"""String must end with #string.""", | 458 messageTemplate: r"""String must end with #string.""", |
380 withArguments: _withArgumentsUnterminatedString); | 459 withArguments: _withArgumentsUnterminatedString); |
381 | 460 |
382 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 461 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
383 const Code<Message Function(String string)> codeUnterminatedString = | 462 const Code<Message Function(String string)> codeUnterminatedString = |
384 const Code<Message Function(String string)>( | 463 const Code<Message Function(String string)>( |
385 "UnterminatedString", templateUnterminatedString, | 464 "UnterminatedString", templateUnterminatedString, |
386 analyzerCode: "UNTERMINATED_STRING_LITERAL", | 465 analyzerCode: "UNTERMINATED_STRING_LITERAL", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 ); | 515 ); |
437 | 516 |
438 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 517 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
439 Message _withArgumentsUnhandled(String string, String string2) { | 518 Message _withArgumentsUnhandled(String string, String string2) { |
440 return new Message(codeUnhandled, | 519 return new Message(codeUnhandled, |
441 message: """Internal error: Unhandled $string in $string2.""", | 520 message: """Internal error: Unhandled $string in $string2.""", |
442 arguments: {'string': string, 'string2': string2}); | 521 arguments: {'string': string, 'string2': string2}); |
443 } | 522 } |
444 | 523 |
445 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 524 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 525 const Code<Null> codeInternalProblemBodyOnAbstractMethod = |
| 526 messageInternalProblemBodyOnAbstractMethod; |
| 527 |
| 528 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 529 const MessageCode messageInternalProblemBodyOnAbstractMethod = |
| 530 const MessageCode("InternalProblemBodyOnAbstractMethod", |
| 531 message: |
| 532 r"""Internal error: Attempting to set body on abstract method."""); |
| 533 |
| 534 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
446 const Template<Message Function(Token token)> templateExpectedFunctionBody = | 535 const Template<Message Function(Token token)> templateExpectedFunctionBody = |
447 const Template<Message Function(Token token)>( | 536 const Template<Message Function(Token token)>( |
448 messageTemplate: r"""Expected a function body, but got '#lexeme'.""", | 537 messageTemplate: r"""Expected a function body, but got '#lexeme'.""", |
449 withArguments: _withArgumentsExpectedFunctionBody); | 538 withArguments: _withArgumentsExpectedFunctionBody); |
450 | 539 |
451 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 540 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
452 const Code<Message Function(Token token)> codeExpectedFunctionBody = | 541 const Code<Message Function(Token token)> codeExpectedFunctionBody = |
453 const Code<Message Function(Token token)>( | 542 const Code<Message Function(Token token)>( |
454 "ExpectedFunctionBody", templateExpectedFunctionBody, | 543 "ExpectedFunctionBody", templateExpectedFunctionBody, |
455 dart2jsCode: "NATIVE_OR_FATAL"); | 544 dart2jsCode: "NATIVE_OR_FATAL"); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 | 644 |
556 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 645 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
557 const Code<Null> codeAbstractNotSync = messageAbstractNotSync; | 646 const Code<Null> codeAbstractNotSync = messageAbstractNotSync; |
558 | 647 |
559 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 648 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
560 const MessageCode messageAbstractNotSync = const MessageCode("AbstractNotSync", | 649 const MessageCode messageAbstractNotSync = const MessageCode("AbstractNotSync", |
561 dart2jsCode: "*ignored*", | 650 dart2jsCode: "*ignored*", |
562 message: r"""Abstract methods can't use 'async', 'async*', or 'sync*'."""); | 651 message: r"""Abstract methods can't use 'async', 'async*', or 'sync*'."""); |
563 | 652 |
564 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 653 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 654 const Template<Message Function(String name, String string)> |
| 655 templateInternalProblemStackNotEmpty = |
| 656 const Template<Message Function(String name, String string)>( |
| 657 messageTemplate: r"""Internal error: #name.stack isn't empty: |
| 658 #string""", withArguments: _withArgumentsInternalProblemStackNotEmpty); |
| 659 |
| 660 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 661 const Code<Message Function(String name, String string)> |
| 662 codeInternalProblemStackNotEmpty = |
| 663 const Code<Message Function(String name, String string)>( |
| 664 "InternalProblemStackNotEmpty", |
| 665 templateInternalProblemStackNotEmpty, |
| 666 ); |
| 667 |
| 668 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 669 Message _withArgumentsInternalProblemStackNotEmpty(String name, String string) { |
| 670 return new Message(codeInternalProblemStackNotEmpty, |
| 671 message: """Internal error: $name.stack isn't empty: |
| 672 $string""", arguments: {'name': name, 'string': string}); |
| 673 } |
| 674 |
| 675 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
565 const Template<Message Function(String name)> templateGetterNotFound = | 676 const Template<Message Function(String name)> templateGetterNotFound = |
566 const Template<Message Function(String name)>( | 677 const Template<Message Function(String name)>( |
567 messageTemplate: r"""Getter not found: '#name'.""", | 678 messageTemplate: r"""Getter not found: '#name'.""", |
568 withArguments: _withArgumentsGetterNotFound); | 679 withArguments: _withArgumentsGetterNotFound); |
569 | 680 |
570 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 681 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
571 const Code<Message Function(String name)> codeGetterNotFound = | 682 const Code<Message Function(String name)> codeGetterNotFound = |
572 const Code<Message Function(String name)>( | 683 const Code<Message Function(String name)>( |
573 "GetterNotFound", | 684 "GetterNotFound", |
574 templateGetterNotFound, | 685 templateGetterNotFound, |
575 ); | 686 ); |
576 | 687 |
577 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 688 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
578 Message _withArgumentsGetterNotFound(String name) { | 689 Message _withArgumentsGetterNotFound(String name) { |
579 return new Message(codeGetterNotFound, | 690 return new Message(codeGetterNotFound, |
580 message: """Getter not found: '$name'.""", arguments: {'name': name}); | 691 message: """Getter not found: '$name'.""", arguments: {'name': name}); |
581 } | 692 } |
582 | 693 |
583 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 694 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 695 const Template<Message Function(String name)> |
| 696 templateInternalProblemPrivateConstructorAccess = |
| 697 const Template<Message Function(String name)>( |
| 698 messageTemplate: |
| 699 r"""Internal error: Can't access private constructor '#name'.""", |
| 700 withArguments: _withArgumentsInternalProblemPrivateConstructorAccess); |
| 701 |
| 702 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 703 const Code<Message Function(String name)> |
| 704 codeInternalProblemPrivateConstructorAccess = |
| 705 const Code<Message Function(String name)>( |
| 706 "InternalProblemPrivateConstructorAccess", |
| 707 templateInternalProblemPrivateConstructorAccess, |
| 708 ); |
| 709 |
| 710 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 711 Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) { |
| 712 return new Message(codeInternalProblemPrivateConstructorAccess, |
| 713 message: """Internal error: Can't access private constructor '$name'.""", |
| 714 arguments: {'name': name}); |
| 715 } |
| 716 |
| 717 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
584 const Code<Null> codeListLiteralTooManyTypeArguments = | 718 const Code<Null> codeListLiteralTooManyTypeArguments = |
585 messageListLiteralTooManyTypeArguments; | 719 messageListLiteralTooManyTypeArguments; |
586 | 720 |
587 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 721 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
588 const MessageCode messageListLiteralTooManyTypeArguments = const MessageCode( | 722 const MessageCode messageListLiteralTooManyTypeArguments = const MessageCode( |
589 "ListLiteralTooManyTypeArguments", | 723 "ListLiteralTooManyTypeArguments", |
590 message: r"""Too many type arguments on List literal."""); | 724 message: r"""Too many type arguments on List literal."""); |
591 | 725 |
592 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 726 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
593 const Template<Message Function(Token token)> templateExpectedDeclaration = | 727 const Template<Message Function(Token token)> templateExpectedDeclaration = |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 | 803 |
670 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 804 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
671 Message _withArgumentsUnmatchedToken(String string, Token token) { | 805 Message _withArgumentsUnmatchedToken(String string, Token token) { |
672 String lexeme = token.lexeme; | 806 String lexeme = token.lexeme; |
673 return new Message(codeUnmatchedToken, | 807 return new Message(codeUnmatchedToken, |
674 message: """Can't find '$string' to match '$lexeme'.""", | 808 message: """Can't find '$string' to match '$lexeme'.""", |
675 arguments: {'string': string, 'token': token}); | 809 arguments: {'string': string, 'token': token}); |
676 } | 810 } |
677 | 811 |
678 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 812 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 813 const Template<Message Function(String name)> templateInternalProblemNotFound = |
| 814 const Template<Message Function(String name)>( |
| 815 messageTemplate: r"""Internal error: Couldn't find '#name'.""", |
| 816 withArguments: _withArgumentsInternalProblemNotFound); |
| 817 |
| 818 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 819 const Code<Message Function(String name)> codeInternalProblemNotFound = |
| 820 const Code<Message Function(String name)>( |
| 821 "InternalProblemNotFound", |
| 822 templateInternalProblemNotFound, |
| 823 ); |
| 824 |
| 825 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 826 Message _withArgumentsInternalProblemNotFound(String name) { |
| 827 return new Message(codeInternalProblemNotFound, |
| 828 message: """Internal error: Couldn't find '$name'.""", |
| 829 arguments: {'name': name}); |
| 830 } |
| 831 |
| 832 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
679 const Code<Null> codeInvalidSyncModifier = messageInvalidSyncModifier; | 833 const Code<Null> codeInvalidSyncModifier = messageInvalidSyncModifier; |
680 | 834 |
681 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 835 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
682 const MessageCode messageInvalidSyncModifier = const MessageCode( | 836 const MessageCode messageInvalidSyncModifier = const MessageCode( |
683 "InvalidSyncModifier", | 837 "InvalidSyncModifier", |
684 dart2jsCode: "INVALID_SYNC_MODIFIER", | 838 dart2jsCode: "INVALID_SYNC_MODIFIER", |
685 message: r"""Invalid modifier 'sync'.""", | 839 message: r"""Invalid modifier 'sync'.""", |
686 tip: r"""Try replacing 'sync' with 'sync*'."""); | 840 tip: r"""Try replacing 'sync' with 'sync*'."""); |
687 | 841 |
688 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 842 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 | 1226 |
1073 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1227 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1074 const Code<Null> codeTypeRequired = messageTypeRequired; | 1228 const Code<Null> codeTypeRequired = messageTypeRequired; |
1075 | 1229 |
1076 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1230 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1077 const MessageCode messageTypeRequired = const MessageCode("TypeRequired", | 1231 const MessageCode messageTypeRequired = const MessageCode("TypeRequired", |
1078 message: r"""A type or modifier is required here.""", | 1232 message: r"""A type or modifier is required here.""", |
1079 tip: r"""Try adding a type, 'var', 'const', or 'final'."""); | 1233 tip: r"""Try adding a type, 'var', 'const', or 'final'."""); |
1080 | 1234 |
1081 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1235 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1236 const Code<Null> codeInternalProblemAlreadyInitialized = |
| 1237 messageInternalProblemAlreadyInitialized; |
| 1238 |
| 1239 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1240 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( |
| 1241 "InternalProblemAlreadyInitialized", |
| 1242 message: |
| 1243 r"""Internal error: Attempt to set initializer on field without initiali
zer."""); |
| 1244 |
| 1245 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1082 const Code<Null> codeInvalidVoid = messageInvalidVoid; | 1246 const Code<Null> codeInvalidVoid = messageInvalidVoid; |
1083 | 1247 |
1084 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1248 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1085 const MessageCode messageInvalidVoid = const MessageCode("InvalidVoid", | 1249 const MessageCode messageInvalidVoid = const MessageCode("InvalidVoid", |
1086 dart2jsCode: "VOID_NOT_ALLOWED", | 1250 dart2jsCode: "VOID_NOT_ALLOWED", |
1087 message: | 1251 message: |
1088 r"""Type 'void' can't be used here because it isn't a return type.""", | 1252 r"""Type 'void' can't be used here because it isn't a return type.""", |
1089 tip: | 1253 tip: |
1090 r"""Try removing 'void' keyword or replace it with 'var', 'final', or a
type."""); | 1254 r"""Try removing 'void' keyword or replace it with 'var', 'final', or a
type."""); |
1091 | 1255 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 ); | 1324 ); |
1161 | 1325 |
1162 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1326 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1163 Message _withArgumentsUnsupported(String name) { | 1327 Message _withArgumentsUnsupported(String name) { |
1164 return new Message(codeUnsupported, | 1328 return new Message(codeUnsupported, |
1165 message: """Internal error: Unsupported operation: '$name'.""", | 1329 message: """Internal error: Unsupported operation: '$name'.""", |
1166 arguments: {'name': name}); | 1330 arguments: {'name': name}); |
1167 } | 1331 } |
1168 | 1332 |
1169 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1333 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1334 const Code<Null> codeInternalProblemExtendingUnmodifiableScope = |
| 1335 messageInternalProblemExtendingUnmodifiableScope; |
| 1336 |
| 1337 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1338 const MessageCode messageInternalProblemExtendingUnmodifiableScope = |
| 1339 const MessageCode("InternalProblemExtendingUnmodifiableScope", |
| 1340 message: r"""Can't extend an unmodifiable scope."""); |
| 1341 |
| 1342 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1170 const Template<Message Function(Token token)> | 1343 const Template<Message Function(Token token)> |
1171 templateBuiltInIdentifierInDeclaration = | 1344 templateBuiltInIdentifierInDeclaration = |
1172 const Template<Message Function(Token token)>( | 1345 const Template<Message Function(Token token)>( |
1173 messageTemplate: r"""Can't use '#lexeme' as a name here.""", | 1346 messageTemplate: r"""Can't use '#lexeme' as a name here.""", |
1174 withArguments: _withArgumentsBuiltInIdentifierInDeclaration); | 1347 withArguments: _withArgumentsBuiltInIdentifierInDeclaration); |
1175 | 1348 |
1176 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1349 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1177 const Code<Message Function(Token token)> codeBuiltInIdentifierInDeclaration = | 1350 const Code<Message Function(Token token)> codeBuiltInIdentifierInDeclaration = |
1178 const Code<Message Function(Token token)>("BuiltInIdentifierInDeclaration", | 1351 const Code<Message Function(Token token)>("BuiltInIdentifierInDeclaration", |
1179 templateBuiltInIdentifierInDeclaration, | 1352 templateBuiltInIdentifierInDeclaration, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 | 1404 |
1232 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1405 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1233 Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { | 1406 Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { |
1234 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 1407 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
1235 return new Message(codeNonAsciiIdentifier, | 1408 return new Message(codeNonAsciiIdentifier, |
1236 message: | 1409 message: |
1237 """The non-ASCII character '$character' ($unicode) can't be used in id
entifiers, only in strings and comments.""", | 1410 """The non-ASCII character '$character' ($unicode) can't be used in id
entifiers, only in strings and comments.""", |
1238 tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$
' (a dollar sign).""", | 1411 tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$
' (a dollar sign).""", |
1239 arguments: {'character': character, 'codePoint': codePoint}); | 1412 arguments: {'character': character, 'codePoint': codePoint}); |
1240 } | 1413 } |
OLD | NEW |