| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 343 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 344 FastaMessage _formatUnexpectedDollarInString(Uri uri, int charOffset) { | 344 FastaMessage _formatUnexpectedDollarInString(Uri uri, int charOffset) { |
| 345 return new FastaMessage(uri, charOffset, codeUnexpectedDollarInString, | 345 return new FastaMessage(uri, charOffset, codeUnexpectedDollarInString, |
| 346 message: | 346 message: |
| 347 "A '\$' has special meaning inside a string, and must be followed by a
n identifier or an expression in curly braces ({}).", | 347 "A '\$' has special meaning inside a string, and must be followed by a
n identifier or an expression in curly braces ({}).", |
| 348 tip: "Try adding a backslash (\) to escape the '\$'.", | 348 tip: "Try adding a backslash (\) to escape the '\$'.", |
| 349 arguments: {}); | 349 arguments: {}); |
| 350 } | 350 } |
| 351 | 351 |
| 352 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 352 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 353 const FastaCode<_FinalFieldWithoutInitializer> |
| 354 codeFinalFieldWithoutInitializer = |
| 355 const FastaCode<_FinalFieldWithoutInitializer>( |
| 356 "FinalFieldWithoutInitializer", |
| 357 template: r"A 'final' field must be initialized.", |
| 358 tip: r"Try adding '= <initializer>'.", |
| 359 dart2jsCode: "FASTA_IGNORED", |
| 360 format: _formatFinalFieldWithoutInitializer); |
| 361 |
| 362 typedef FastaMessage _FinalFieldWithoutInitializer(Uri uri, int charOffset); |
| 363 |
| 364 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 365 FastaMessage _formatFinalFieldWithoutInitializer(Uri uri, int charOffset) { |
| 366 return new FastaMessage(uri, charOffset, codeFinalFieldWithoutInitializer, |
| 367 message: "A 'final' field must be initialized.", |
| 368 tip: "Try adding '= <initializer>'.", |
| 369 arguments: {}); |
| 370 } |
| 371 |
| 372 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 353 const FastaCode<_ExtraneousModifier> codeExtraneousModifier = | 373 const FastaCode<_ExtraneousModifier> codeExtraneousModifier = |
| 354 const FastaCode<_ExtraneousModifier>("ExtraneousModifier", | 374 const FastaCode<_ExtraneousModifier>("ExtraneousModifier", |
| 355 template: r"Can't have modifier '#lexeme' here.", | 375 template: r"Can't have modifier '#lexeme' here.", |
| 356 tip: r"Try removing '#lexeme'.", | 376 tip: r"Try removing '#lexeme'.", |
| 357 dart2jsCode: "EXTRANEOUS_MODIFIER", | 377 dart2jsCode: "EXTRANEOUS_MODIFIER", |
| 358 format: _formatExtraneousModifier); | 378 format: _formatExtraneousModifier); |
| 359 | 379 |
| 360 typedef FastaMessage _ExtraneousModifier(Uri uri, int charOffset, Token token); | 380 typedef FastaMessage _ExtraneousModifier(Uri uri, int charOffset, Token token); |
| 361 | 381 |
| 362 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 382 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 | 828 |
| 809 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 829 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 810 FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) { | 830 FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) { |
| 811 return new FastaMessage(uri, charOffset, codeExpectedButGot, | 831 return new FastaMessage(uri, charOffset, codeExpectedButGot, |
| 812 message: "Expected '$string' before this.", | 832 message: "Expected '$string' before this.", |
| 813 tip: "DONT_KNOW_HOW_TO_FIX,", | 833 tip: "DONT_KNOW_HOW_TO_FIX,", |
| 814 arguments: {'string': string}); | 834 arguments: {'string': string}); |
| 815 } | 835 } |
| 816 | 836 |
| 817 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 837 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 838 const FastaCode<_ConstFieldWithoutInitializer> |
| 839 codeConstFieldWithoutInitializer = |
| 840 const FastaCode<_ConstFieldWithoutInitializer>( |
| 841 "ConstFieldWithoutInitializer", |
| 842 template: r"A 'const' field must be initialized.", |
| 843 tip: r"Try adding '= <initializer>'.", |
| 844 dart2jsCode: "FASTA_IGNORED", |
| 845 format: _formatConstFieldWithoutInitializer); |
| 846 |
| 847 typedef FastaMessage _ConstFieldWithoutInitializer(Uri uri, int charOffset); |
| 848 |
| 849 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 850 FastaMessage _formatConstFieldWithoutInitializer(Uri uri, int charOffset) { |
| 851 return new FastaMessage(uri, charOffset, codeConstFieldWithoutInitializer, |
| 852 message: "A 'const' field must be initialized.", |
| 853 tip: "Try adding '= <initializer>'.", |
| 854 arguments: {}); |
| 855 } |
| 856 |
| 857 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 818 const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode< | 858 const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode< |
| 819 _AwaitForNotAsync>("AwaitForNotAsync", | 859 _AwaitForNotAsync>("AwaitForNotAsync", |
| 820 template: | 860 template: |
| 821 r"Asynchronous for-loop can only be used in 'async' or 'async*' methods.
", | 861 r"Asynchronous for-loop can only be used in 'async' or 'async*' methods.
", |
| 822 dart2jsCode: "FASTA_IGNORED", | 862 dart2jsCode: "FASTA_IGNORED", |
| 823 format: _formatAwaitForNotAsync); | 863 format: _formatAwaitForNotAsync); |
| 824 | 864 |
| 825 typedef FastaMessage _AwaitForNotAsync(Uri uri, int charOffset); | 865 typedef FastaMessage _AwaitForNotAsync(Uri uri, int charOffset); |
| 826 | 866 |
| 827 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 867 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1104 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1065 FastaMessage _formatNonAsciiIdentifier( | 1105 FastaMessage _formatNonAsciiIdentifier( |
| 1066 Uri uri, int charOffset, String character, int codePoint) { | 1106 Uri uri, int charOffset, String character, int codePoint) { |
| 1067 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 1107 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 1068 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, | 1108 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, |
| 1069 message: | 1109 message: |
| 1070 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", | 1110 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", |
| 1071 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", | 1111 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", |
| 1072 arguments: {'character': character, 'codePoint': codePoint}); | 1112 arguments: {'character': character, 'codePoint': codePoint}); |
| 1073 } | 1113 } |
| OLD | NEW |