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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 typedef FastaMessage _StackOverflow(Uri uri, int charOffset); | 38 typedef FastaMessage _StackOverflow(Uri uri, int charOffset); |
39 | 39 |
40 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 40 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
41 FastaMessage _formatStackOverflow(Uri uri, int charOffset) { | 41 FastaMessage _formatStackOverflow(Uri uri, int charOffset) { |
42 return new FastaMessage(uri, charOffset, codeStackOverflow, | 42 return new FastaMessage(uri, charOffset, codeStackOverflow, |
43 message: "Stack overflow.", arguments: {}); | 43 message: "Stack overflow.", arguments: {}); |
44 } | 44 } |
45 | 45 |
46 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 46 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 47 const FastaCode<_AssertExtraneousArgument> codeAssertExtraneousArgument = |
| 48 const FastaCode<_AssertExtraneousArgument>("AssertExtraneousArgument", |
| 49 template: r"`assert` can't have more than two arguments.", |
| 50 dart2jsCode: "FASTA_FATAL", |
| 51 format: _formatAssertExtraneousArgument); |
| 52 |
| 53 typedef FastaMessage _AssertExtraneousArgument(Uri uri, int charOffset); |
| 54 |
| 55 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 56 FastaMessage _formatAssertExtraneousArgument(Uri uri, int charOffset) { |
| 57 return new FastaMessage(uri, charOffset, codeAssertExtraneousArgument, |
| 58 message: "`assert` can't have more than two arguments.", arguments: {}); |
| 59 } |
| 60 |
| 61 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
47 const FastaCode<_UnexpectedToken> codeUnexpectedToken = | 62 const FastaCode<_UnexpectedToken> codeUnexpectedToken = |
48 const FastaCode<_UnexpectedToken>("UnexpectedToken", | 63 const FastaCode<_UnexpectedToken>("UnexpectedToken", |
49 template: r"Unexpected token '#lexeme'.", | 64 template: r"Unexpected token '#lexeme'.", |
50 dart2jsCode: "FASTA_FATAL", | 65 dart2jsCode: "FASTA_FATAL", |
51 format: _formatUnexpectedToken); | 66 format: _formatUnexpectedToken); |
52 | 67 |
53 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); | 68 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); |
54 | 69 |
55 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 70 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
56 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { | 71 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 767 |
753 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 768 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
754 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { | 769 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { |
755 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, | 770 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, |
756 message: | 771 message: |
757 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 772 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
758 arguments: {}); | 773 arguments: {}); |
759 } | 774 } |
760 | 775 |
761 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 776 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 777 const FastaCode<_AssertAsExpression> codeAssertAsExpression = |
| 778 const FastaCode<_AssertAsExpression>("AssertAsExpression", |
| 779 template: r"`assert` can't be used as an expression.", |
| 780 dart2jsCode: "FASTA_FATAL", |
| 781 format: _formatAssertAsExpression); |
| 782 |
| 783 typedef FastaMessage _AssertAsExpression(Uri uri, int charOffset); |
| 784 |
| 785 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 786 FastaMessage _formatAssertAsExpression(Uri uri, int charOffset) { |
| 787 return new FastaMessage(uri, charOffset, codeAssertAsExpression, |
| 788 message: "`assert` can't be used as an expression.", arguments: {}); |
| 789 } |
| 790 |
| 791 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
762 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry", | 792 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry", |
763 template: | 793 template: |
764 r"Try block should be followed by 'on', 'catch', or 'finally' block.", | 794 r"Try block should be followed by 'on', 'catch', or 'finally' block.", |
765 tip: r"Did you forget to add a 'finally' block?", | 795 tip: r"Did you forget to add a 'finally' block?", |
766 dart2jsCode: "FASTA_IGNORED", | 796 dart2jsCode: "FASTA_IGNORED", |
767 format: _formatOnlyTry); | 797 format: _formatOnlyTry); |
768 | 798 |
769 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); | 799 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); |
770 | 800 |
771 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 801 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 954 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
925 FastaMessage _formatNonAsciiIdentifier( | 955 FastaMessage _formatNonAsciiIdentifier( |
926 Uri uri, int charOffset, String character, int codePoint) { | 956 Uri uri, int charOffset, String character, int codePoint) { |
927 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 957 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
928 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, | 958 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, |
929 message: | 959 message: |
930 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", | 960 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", |
931 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", | 961 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", |
932 arguments: {'character': character, 'codePoint': codePoint}); | 962 arguments: {'character': character, 'codePoint': codePoint}); |
933 } | 963 } |
OLD | NEW |