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 typedef FastaMessage _YieldNotGenerator(Uri uri, int charOffset); | 167 typedef FastaMessage _YieldNotGenerator(Uri uri, int charOffset); |
168 | 168 |
169 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 169 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
170 FastaMessage _formatYieldNotGenerator(Uri uri, int charOffset) { | 170 FastaMessage _formatYieldNotGenerator(Uri uri, int charOffset) { |
171 return new FastaMessage(uri, charOffset, codeYieldNotGenerator, | 171 return new FastaMessage(uri, charOffset, codeYieldNotGenerator, |
172 message: "'yield' can only be used in 'sync*' or 'async*' methods.", | 172 message: "'yield' can only be used in 'sync*' or 'async*' methods.", |
173 arguments: {}); | 173 arguments: {}); |
174 } | 174 } |
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 FastaCode<_ReturnTypeFunctionExpression> |
| 178 codeReturnTypeFunctionExpression = |
| 179 const FastaCode<_ReturnTypeFunctionExpression>( |
| 180 "ReturnTypeFunctionExpression", |
| 181 template: r"A function expression can't have a return type.", |
| 182 dart2jsCode: "*ignored*", |
| 183 format: _formatReturnTypeFunctionExpression); |
| 184 |
| 185 typedef FastaMessage _ReturnTypeFunctionExpression(Uri uri, int charOffset); |
| 186 |
| 187 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 188 FastaMessage _formatReturnTypeFunctionExpression(Uri uri, int charOffset) { |
| 189 return new FastaMessage(uri, charOffset, codeReturnTypeFunctionExpression, |
| 190 message: "A function expression can't have a return type.", |
| 191 arguments: {}); |
| 192 } |
| 193 |
| 194 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
177 const FastaCode<_SetterNotSync> codeSetterNotSync = | 195 const FastaCode<_SetterNotSync> codeSetterNotSync = |
178 const FastaCode<_SetterNotSync>("SetterNotSync", | 196 const FastaCode<_SetterNotSync>("SetterNotSync", |
179 template: r"Setters can't use 'async', 'async*', or 'sync*'.", | 197 template: r"Setters can't use 'async', 'async*', or 'sync*'.", |
180 dart2jsCode: "*ignored*", | 198 dart2jsCode: "*ignored*", |
181 format: _formatSetterNotSync); | 199 format: _formatSetterNotSync); |
182 | 200 |
183 typedef FastaMessage _SetterNotSync(Uri uri, int charOffset); | 201 typedef FastaMessage _SetterNotSync(Uri uri, int charOffset); |
184 | 202 |
185 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 203 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
186 FastaMessage _formatSetterNotSync(Uri uri, int charOffset) { | 204 FastaMessage _formatSetterNotSync(Uri uri, int charOffset) { |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 846 |
829 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 847 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
830 FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) { | 848 FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) { |
831 return new FastaMessage(uri, charOffset, codeExpectedButGot, | 849 return new FastaMessage(uri, charOffset, codeExpectedButGot, |
832 message: "Expected '$string' before this.", | 850 message: "Expected '$string' before this.", |
833 tip: "DONT_KNOW_HOW_TO_FIX,", | 851 tip: "DONT_KNOW_HOW_TO_FIX,", |
834 arguments: {'string': string}); | 852 arguments: {'string': string}); |
835 } | 853 } |
836 | 854 |
837 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 855 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 856 const FastaCode<_NamedFunctionExpression> codeNamedFunctionExpression = |
| 857 const FastaCode<_NamedFunctionExpression>("NamedFunctionExpression", |
| 858 template: r"A function expression can't have a name.", |
| 859 dart2jsCode: "*ignored*", |
| 860 format: _formatNamedFunctionExpression); |
| 861 |
| 862 typedef FastaMessage _NamedFunctionExpression(Uri uri, int charOffset); |
| 863 |
| 864 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 865 FastaMessage _formatNamedFunctionExpression(Uri uri, int charOffset) { |
| 866 return new FastaMessage(uri, charOffset, codeNamedFunctionExpression, |
| 867 message: "A function expression can't have a name.", arguments: {}); |
| 868 } |
| 869 |
| 870 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
838 const FastaCode<_ConstFieldWithoutInitializer> | 871 const FastaCode<_ConstFieldWithoutInitializer> |
839 codeConstFieldWithoutInitializer = | 872 codeConstFieldWithoutInitializer = |
840 const FastaCode<_ConstFieldWithoutInitializer>( | 873 const FastaCode<_ConstFieldWithoutInitializer>( |
841 "ConstFieldWithoutInitializer", | 874 "ConstFieldWithoutInitializer", |
842 template: r"A 'const' field must be initialized.", | 875 template: r"A 'const' field must be initialized.", |
843 tip: r"Try adding '= <initializer>'.", | 876 tip: r"Try adding '= <initializer>'.", |
844 dart2jsCode: "*ignored*", | 877 dart2jsCode: "*ignored*", |
845 format: _formatConstFieldWithoutInitializer); | 878 format: _formatConstFieldWithoutInitializer); |
846 | 879 |
847 typedef FastaMessage _ConstFieldWithoutInitializer(Uri uri, int charOffset); | 880 typedef FastaMessage _ConstFieldWithoutInitializer(Uri uri, int charOffset); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1154 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1122 FastaMessage _formatNonAsciiIdentifier( | 1155 FastaMessage _formatNonAsciiIdentifier( |
1123 Uri uri, int charOffset, String character, int codePoint) { | 1156 Uri uri, int charOffset, String character, int codePoint) { |
1124 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 1157 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
1125 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, | 1158 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, |
1126 message: | 1159 message: |
1127 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", | 1160 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", |
1128 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", | 1161 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", |
1129 arguments: {'character': character, 'codePoint': codePoint}); | 1162 arguments: {'character': character, 'codePoint': codePoint}); |
1130 } | 1163 } |
OLD | NEW |