| 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; |
| 11 | 11 |
| 12 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 12 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 13 const FastaCode<_ExpectedClassBodyToSkip> codeExpectedClassBodyToSkip = | 13 const FastaCode<_ExpectedClassBodyToSkip> codeExpectedClassBodyToSkip = |
| 14 const FastaCode<_ExpectedClassBodyToSkip>( | 14 const FastaCode<_ExpectedClassBodyToSkip>("ExpectedClassBodyToSkip", |
| 15 template: r"Expected a class body, but got '#lexeme'.", | 15 template: r"Expected a class body, but got '#lexeme'.", |
| 16 dart2jsCode: "FASTA_FATAL", | 16 dart2jsCode: "FASTA_FATAL", |
| 17 format: _formatExpectedClassBodyToSkip); | 17 format: _formatExpectedClassBodyToSkip); |
| 18 | 18 |
| 19 typedef FastaMessage _ExpectedClassBodyToSkip( | 19 typedef FastaMessage _ExpectedClassBodyToSkip( |
| 20 Uri uri, int charOffset, Token token); | 20 Uri uri, int charOffset, Token token); |
| 21 | 21 |
| 22 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 22 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 23 FastaMessage _formatExpectedClassBodyToSkip( | 23 FastaMessage _formatExpectedClassBodyToSkip( |
| 24 Uri uri, int charOffset, Token token) { | 24 Uri uri, int charOffset, Token token) { |
| 25 String lexeme = token.lexeme; | 25 String lexeme = token.lexeme; |
| 26 return new FastaMessage(uri, charOffset, codeExpectedClassBodyToSkip, | 26 return new FastaMessage(uri, charOffset, codeExpectedClassBodyToSkip, |
| 27 message: "Expected a class body, but got '$lexeme'.", | 27 message: "Expected a class body, but got '$lexeme'.", |
| 28 arguments: {'token': token}); | 28 arguments: {'token': token}); |
| 29 } | 29 } |
| 30 | 30 |
| 31 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 31 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 32 const FastaCode<_StackOverflow> codeStackOverflow = | 32 const FastaCode<_StackOverflow> codeStackOverflow = |
| 33 const FastaCode<_StackOverflow>( | 33 const FastaCode<_StackOverflow>("StackOverflow", |
| 34 template: r"Stack overflow.", | 34 template: r"Stack overflow.", |
| 35 dart2jsCode: "GENERIC", | 35 dart2jsCode: "GENERIC", |
| 36 format: _formatStackOverflow); | 36 format: _formatStackOverflow); |
| 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<_UnexpectedToken> codeUnexpectedToken = | 47 const FastaCode<_UnexpectedToken> codeUnexpectedToken = |
| 48 const FastaCode<_UnexpectedToken>( | 48 const FastaCode<_UnexpectedToken>("UnexpectedToken", |
| 49 template: r"Unexpected token '#lexeme'.", | 49 template: r"Unexpected token '#lexeme'.", |
| 50 dart2jsCode: "FASTA_FATAL", | 50 dart2jsCode: "FASTA_FATAL", |
| 51 format: _formatUnexpectedToken); | 51 format: _formatUnexpectedToken); |
| 52 | 52 |
| 53 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); | 53 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); |
| 54 | 54 |
| 55 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 55 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 56 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { | 56 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { |
| 57 String lexeme = token.lexeme; | 57 String lexeme = token.lexeme; |
| 58 return new FastaMessage(uri, charOffset, codeUnexpectedToken, | 58 return new FastaMessage(uri, charOffset, codeUnexpectedToken, |
| 59 message: "Unexpected token '$lexeme'.", arguments: {'token': token}); | 59 message: "Unexpected token '$lexeme'.", arguments: {'token': token}); |
| 60 } | 60 } |
| 61 | 61 |
| 62 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 62 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 63 const FastaCode<_AwaitAsIdentifier> codeAwaitAsIdentifier = const FastaCode< | 63 const FastaCode<_AwaitAsIdentifier> codeAwaitAsIdentifier = const FastaCode< |
| 64 _AwaitAsIdentifier>( | 64 _AwaitAsIdentifier>("AwaitAsIdentifier", |
| 65 template: | 65 template: |
| 66 r"'await' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", | 66 r"'await' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", |
| 67 dart2jsCode: "FASTA_IGNORED", | 67 dart2jsCode: "FASTA_IGNORED", |
| 68 format: _formatAwaitAsIdentifier); | 68 format: _formatAwaitAsIdentifier); |
| 69 | 69 |
| 70 typedef FastaMessage _AwaitAsIdentifier(Uri uri, int charOffset); | 70 typedef FastaMessage _AwaitAsIdentifier(Uri uri, int charOffset); |
| 71 | 71 |
| 72 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 72 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 73 FastaMessage _formatAwaitAsIdentifier(Uri uri, int charOffset) { | 73 FastaMessage _formatAwaitAsIdentifier(Uri uri, int charOffset) { |
| 74 return new FastaMessage(uri, charOffset, codeAwaitAsIdentifier, | 74 return new FastaMessage(uri, charOffset, codeAwaitAsIdentifier, |
| 75 message: | 75 message: |
| 76 "'await' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 76 "'await' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
| 77 arguments: {}); | 77 arguments: {}); |
| 78 } | 78 } |
| 79 | 79 |
| 80 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 80 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 81 const FastaCode<_FactoryNotSync> codeFactoryNotSync = | 81 const FastaCode<_FactoryNotSync> codeFactoryNotSync = |
| 82 const FastaCode<_FactoryNotSync>( | 82 const FastaCode<_FactoryNotSync>("FactoryNotSync", |
| 83 template: r"Factories can't use 'async', 'async*', or 'sync*'.", | 83 template: r"Factories can't use 'async', 'async*', or 'sync*'.", |
| 84 dart2jsCode: "FASTA_IGNORED", | 84 dart2jsCode: "FASTA_IGNORED", |
| 85 format: _formatFactoryNotSync); | 85 format: _formatFactoryNotSync); |
| 86 | 86 |
| 87 typedef FastaMessage _FactoryNotSync(Uri uri, int charOffset); | 87 typedef FastaMessage _FactoryNotSync(Uri uri, int charOffset); |
| 88 | 88 |
| 89 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 89 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 90 FastaMessage _formatFactoryNotSync(Uri uri, int charOffset) { | 90 FastaMessage _formatFactoryNotSync(Uri uri, int charOffset) { |
| 91 return new FastaMessage(uri, charOffset, codeFactoryNotSync, | 91 return new FastaMessage(uri, charOffset, codeFactoryNotSync, |
| 92 message: "Factories can't use 'async', 'async*', or 'sync*'.", | 92 message: "Factories can't use 'async', 'async*', or 'sync*'.", |
| 93 arguments: {}); | 93 arguments: {}); |
| 94 } | 94 } |
| 95 | 95 |
| 96 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 96 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 97 const FastaCode<_YieldNotGenerator> codeYieldNotGenerator = | 97 const FastaCode<_YieldNotGenerator> codeYieldNotGenerator = |
| 98 const FastaCode<_YieldNotGenerator>( | 98 const FastaCode<_YieldNotGenerator>("YieldNotGenerator", |
| 99 template: r"'yield' can only be used in 'sync*' or 'async*' methods.", | 99 template: r"'yield' can only be used in 'sync*' or 'async*' methods.", |
| 100 dart2jsCode: "FASTA_IGNORED", | 100 dart2jsCode: "FASTA_IGNORED", |
| 101 format: _formatYieldNotGenerator); | 101 format: _formatYieldNotGenerator); |
| 102 | 102 |
| 103 typedef FastaMessage _YieldNotGenerator(Uri uri, int charOffset); | 103 typedef FastaMessage _YieldNotGenerator(Uri uri, int charOffset); |
| 104 | 104 |
| 105 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 105 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 106 FastaMessage _formatYieldNotGenerator(Uri uri, int charOffset) { | 106 FastaMessage _formatYieldNotGenerator(Uri uri, int charOffset) { |
| 107 return new FastaMessage(uri, charOffset, codeYieldNotGenerator, | 107 return new FastaMessage(uri, charOffset, codeYieldNotGenerator, |
| 108 message: "'yield' can only be used in 'sync*' or 'async*' methods.", | 108 message: "'yield' can only be used in 'sync*' or 'async*' methods.", |
| 109 arguments: {}); | 109 arguments: {}); |
| 110 } | 110 } |
| 111 | 111 |
| 112 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 112 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 113 const FastaCode<_SetterNotSync> codeSetterNotSync = | 113 const FastaCode<_SetterNotSync> codeSetterNotSync = |
| 114 const FastaCode<_SetterNotSync>( | 114 const FastaCode<_SetterNotSync>("SetterNotSync", |
| 115 template: r"Setters can't use 'async', 'async*', or 'sync*'.", | 115 template: r"Setters can't use 'async', 'async*', or 'sync*'.", |
| 116 dart2jsCode: "FASTA_IGNORED", | 116 dart2jsCode: "FASTA_IGNORED", |
| 117 format: _formatSetterNotSync); | 117 format: _formatSetterNotSync); |
| 118 | 118 |
| 119 typedef FastaMessage _SetterNotSync(Uri uri, int charOffset); | 119 typedef FastaMessage _SetterNotSync(Uri uri, int charOffset); |
| 120 | 120 |
| 121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 122 FastaMessage _formatSetterNotSync(Uri uri, int charOffset) { | 122 FastaMessage _formatSetterNotSync(Uri uri, int charOffset) { |
| 123 return new FastaMessage(uri, charOffset, codeSetterNotSync, | 123 return new FastaMessage(uri, charOffset, codeSetterNotSync, |
| 124 message: "Setters can't use 'async', 'async*', or 'sync*'.", | 124 message: "Setters can't use 'async', 'async*', or 'sync*'.", |
| 125 arguments: {}); | 125 arguments: {}); |
| 126 } | 126 } |
| 127 | 127 |
| 128 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 128 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 129 const FastaCode<_NonAsciiWhitespace> codeNonAsciiWhitespace = const FastaCode< | 129 const FastaCode<_NonAsciiWhitespace> codeNonAsciiWhitespace = const FastaCode< |
| 130 _NonAsciiWhitespace>( | 130 _NonAsciiWhitespace>("NonAsciiWhitespace", |
| 131 template: | 131 template: |
| 132 r"The non-ASCII space character #unicode can only be used in strings and
comments.", | 132 r"The non-ASCII space character #unicode can only be used in strings and
comments.", |
| 133 analyzerCode: "ILLEGAL_CHARACTER", | 133 analyzerCode: "ILLEGAL_CHARACTER", |
| 134 dart2jsCode: "BAD_INPUT_CHARACTER", | 134 dart2jsCode: "BAD_INPUT_CHARACTER", |
| 135 format: _formatNonAsciiWhitespace); | 135 format: _formatNonAsciiWhitespace); |
| 136 | 136 |
| 137 typedef FastaMessage _NonAsciiWhitespace( | 137 typedef FastaMessage _NonAsciiWhitespace( |
| 138 Uri uri, int charOffset, int codePoint); | 138 Uri uri, int charOffset, int codePoint); |
| 139 | 139 |
| 140 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 140 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 141 FastaMessage _formatNonAsciiWhitespace(Uri uri, int charOffset, int codePoint) { | 141 FastaMessage _formatNonAsciiWhitespace(Uri uri, int charOffset, int codePoint) { |
| 142 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 142 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 143 return new FastaMessage(uri, charOffset, codeNonAsciiWhitespace, | 143 return new FastaMessage(uri, charOffset, codeNonAsciiWhitespace, |
| 144 message: | 144 message: |
| 145 "The non-ASCII space character $unicode can only be used in strings an
d comments.", | 145 "The non-ASCII space character $unicode can only be used in strings an
d comments.", |
| 146 arguments: {'codePoint': codePoint}); | 146 arguments: {'codePoint': codePoint}); |
| 147 } | 147 } |
| 148 | 148 |
| 149 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 149 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 150 const FastaCode<_ExpectedIdentifier> codeExpectedIdentifier = | 150 const FastaCode<_ExpectedIdentifier> codeExpectedIdentifier = |
| 151 const FastaCode<_ExpectedIdentifier>( | 151 const FastaCode<_ExpectedIdentifier>("ExpectedIdentifier", |
| 152 template: r"'#lexeme' is a reserved word and can't be used here.", | 152 template: r"'#lexeme' is a reserved word and can't be used here.", |
| 153 tip: r"Try using a different name.", | 153 tip: r"Try using a different name.", |
| 154 dart2jsCode: "EXPECTED_IDENTIFIER", | 154 dart2jsCode: "EXPECTED_IDENTIFIER", |
| 155 format: _formatExpectedIdentifier); | 155 format: _formatExpectedIdentifier); |
| 156 | 156 |
| 157 typedef FastaMessage _ExpectedIdentifier(Uri uri, int charOffset, Token token); | 157 typedef FastaMessage _ExpectedIdentifier(Uri uri, int charOffset, Token token); |
| 158 | 158 |
| 159 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 159 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 160 FastaMessage _formatExpectedIdentifier(Uri uri, int charOffset, Token token) { | 160 FastaMessage _formatExpectedIdentifier(Uri uri, int charOffset, Token token) { |
| 161 String lexeme = token.lexeme; | 161 String lexeme = token.lexeme; |
| 162 return new FastaMessage(uri, charOffset, codeExpectedIdentifier, | 162 return new FastaMessage(uri, charOffset, codeExpectedIdentifier, |
| 163 message: "'$lexeme' is a reserved word and can't be used here.", | 163 message: "'$lexeme' is a reserved word and can't be used here.", |
| 164 tip: "Try using a different name.", | 164 tip: "Try using a different name.", |
| 165 arguments: {'token': token}); | 165 arguments: {'token': token}); |
| 166 } | 166 } |
| 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 FastaCode<_ExpectedBlockToSkip> codeExpectedBlockToSkip = | 169 const FastaCode<_ExpectedBlockToSkip> codeExpectedBlockToSkip = |
| 170 const FastaCode<_ExpectedBlockToSkip>( | 170 const FastaCode<_ExpectedBlockToSkip>("ExpectedBlockToSkip", |
| 171 template: r"Expected a function body or '=>'.", | 171 template: r"Expected a function body or '=>'.", |
| 172 tip: r"Try adding {}.", | 172 tip: r"Try adding {}.", |
| 173 dart2jsCode: "NATIVE_OR_BODY_EXPECTED", | 173 dart2jsCode: "NATIVE_OR_BODY_EXPECTED", |
| 174 format: _formatExpectedBlockToSkip); | 174 format: _formatExpectedBlockToSkip); |
| 175 | 175 |
| 176 typedef FastaMessage _ExpectedBlockToSkip(Uri uri, int charOffset); | 176 typedef FastaMessage _ExpectedBlockToSkip(Uri uri, int charOffset); |
| 177 | 177 |
| 178 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 178 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 179 FastaMessage _formatExpectedBlockToSkip(Uri uri, int charOffset) { | 179 FastaMessage _formatExpectedBlockToSkip(Uri uri, int charOffset) { |
| 180 return new FastaMessage(uri, charOffset, codeExpectedBlockToSkip, | 180 return new FastaMessage(uri, charOffset, codeExpectedBlockToSkip, |
| 181 message: "Expected a function body or '=>'.", | 181 message: "Expected a function body or '=>'.", |
| 182 tip: "Try adding {}.", | 182 tip: "Try adding {}.", |
| 183 arguments: {}); | 183 arguments: {}); |
| 184 } | 184 } |
| 185 | 185 |
| 186 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 186 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 187 const FastaCode< | 187 const FastaCode< |
| 188 _RequiredParameterWithDefault> codeRequiredParameterWithDefault = | 188 _RequiredParameterWithDefault> codeRequiredParameterWithDefault = |
| 189 const FastaCode<_RequiredParameterWithDefault>( | 189 const FastaCode<_RequiredParameterWithDefault>( |
| 190 "RequiredParameterWithDefault", |
| 190 template: r"Non-optional parameters can't have a default value.", | 191 template: r"Non-optional parameters can't have a default value.", |
| 191 tip: | 192 tip: |
| 192 r"Try removing the default value or making the parameter optional.", | 193 r"Try removing the default value or making the parameter optional.", |
| 193 dart2jsCode: "REQUIRED_PARAMETER_WITH_DEFAULT", | 194 dart2jsCode: "REQUIRED_PARAMETER_WITH_DEFAULT", |
| 194 format: _formatRequiredParameterWithDefault); | 195 format: _formatRequiredParameterWithDefault); |
| 195 | 196 |
| 196 typedef FastaMessage _RequiredParameterWithDefault(Uri uri, int charOffset); | 197 typedef FastaMessage _RequiredParameterWithDefault(Uri uri, int charOffset); |
| 197 | 198 |
| 198 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 199 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 199 FastaMessage _formatRequiredParameterWithDefault(Uri uri, int charOffset) { | 200 FastaMessage _formatRequiredParameterWithDefault(Uri uri, int charOffset) { |
| 200 return new FastaMessage(uri, charOffset, codeRequiredParameterWithDefault, | 201 return new FastaMessage(uri, charOffset, codeRequiredParameterWithDefault, |
| 201 message: "Non-optional parameters can't have a default value.", | 202 message: "Non-optional parameters can't have a default value.", |
| 202 tip: "Try removing the default value or making the parameter optional.", | 203 tip: "Try removing the default value or making the parameter optional.", |
| 203 arguments: {}); | 204 arguments: {}); |
| 204 } | 205 } |
| 205 | 206 |
| 206 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 207 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 207 const FastaCode<_Unspecified> codeUnspecified = const FastaCode<_Unspecified>( | 208 const FastaCode<_Unspecified> codeUnspecified = const FastaCode<_Unspecified>( |
| 208 template: r"#string", dart2jsCode: "GENERIC", format: _formatUnspecified); | 209 "Unspecified", |
| 210 template: r"#string", |
| 211 dart2jsCode: "GENERIC", |
| 212 format: _formatUnspecified); |
| 209 | 213 |
| 210 typedef FastaMessage _Unspecified(Uri uri, int charOffset, String string); | 214 typedef FastaMessage _Unspecified(Uri uri, int charOffset, String string); |
| 211 | 215 |
| 212 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 216 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 213 FastaMessage _formatUnspecified(Uri uri, int charOffset, String string) { | 217 FastaMessage _formatUnspecified(Uri uri, int charOffset, String string) { |
| 214 return new FastaMessage(uri, charOffset, codeUnspecified, | 218 return new FastaMessage(uri, charOffset, codeUnspecified, |
| 215 message: "$string", arguments: {'string': string}); | 219 message: "$string", arguments: {'string': string}); |
| 216 } | 220 } |
| 217 | 221 |
| 218 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 222 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 219 const FastaCode<_MissingExponent> codeMissingExponent = const FastaCode< | 223 const FastaCode<_MissingExponent> codeMissingExponent = const FastaCode< |
| 220 _MissingExponent>( | 224 _MissingExponent>("MissingExponent", |
| 221 template: | 225 template: |
| 222 r"Numbers in exponential notation should always contain an exponent (an
integer number with an optional sign).", | 226 r"Numbers in exponential notation should always contain an exponent (an
integer number with an optional sign).", |
| 223 tip: | 227 tip: |
| 224 r"Make sure there is an exponent, and remove any whitespace before it.", | 228 r"Make sure there is an exponent, and remove any whitespace before it.", |
| 225 analyzerCode: "MISSING_DIGIT", | 229 analyzerCode: "MISSING_DIGIT", |
| 226 dart2jsCode: "EXPONENT_MISSING", | 230 dart2jsCode: "EXPONENT_MISSING", |
| 227 format: _formatMissingExponent); | 231 format: _formatMissingExponent); |
| 228 | 232 |
| 229 typedef FastaMessage _MissingExponent(Uri uri, int charOffset); | 233 typedef FastaMessage _MissingExponent(Uri uri, int charOffset); |
| 230 | 234 |
| 231 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 235 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 232 FastaMessage _formatMissingExponent(Uri uri, int charOffset) { | 236 FastaMessage _formatMissingExponent(Uri uri, int charOffset) { |
| 233 return new FastaMessage(uri, charOffset, codeMissingExponent, | 237 return new FastaMessage(uri, charOffset, codeMissingExponent, |
| 234 message: | 238 message: |
| 235 "Numbers in exponential notation should always contain an exponent (an
integer number with an optional sign).", | 239 "Numbers in exponential notation should always contain an exponent (an
integer number with an optional sign).", |
| 236 tip: | 240 tip: |
| 237 "Make sure there is an exponent, and remove any whitespace before it."
, | 241 "Make sure there is an exponent, and remove any whitespace before it."
, |
| 238 arguments: {}); | 242 arguments: {}); |
| 239 } | 243 } |
| 240 | 244 |
| 241 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 245 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 242 const FastaCode<_PositionalParameterWithEquals> | 246 const FastaCode<_PositionalParameterWithEquals> |
| 243 codePositionalParameterWithEquals = | 247 codePositionalParameterWithEquals = |
| 244 const FastaCode<_PositionalParameterWithEquals>( | 248 const FastaCode<_PositionalParameterWithEquals>( |
| 249 "PositionalParameterWithEquals", |
| 245 template: | 250 template: |
| 246 r"Positional optional parameters can't use ':' to specify a default
value.", | 251 r"Positional optional parameters can't use ':' to specify a default
value.", |
| 247 tip: r"Try replacing ':' with '='.", | 252 tip: r"Try replacing ':' with '='.", |
| 248 dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", | 253 dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", |
| 249 format: _formatPositionalParameterWithEquals); | 254 format: _formatPositionalParameterWithEquals); |
| 250 | 255 |
| 251 typedef FastaMessage _PositionalParameterWithEquals(Uri uri, int charOffset); | 256 typedef FastaMessage _PositionalParameterWithEquals(Uri uri, int charOffset); |
| 252 | 257 |
| 253 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 258 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 254 FastaMessage _formatPositionalParameterWithEquals(Uri uri, int charOffset) { | 259 FastaMessage _formatPositionalParameterWithEquals(Uri uri, int charOffset) { |
| 255 return new FastaMessage(uri, charOffset, codePositionalParameterWithEquals, | 260 return new FastaMessage(uri, charOffset, codePositionalParameterWithEquals, |
| 256 message: | 261 message: |
| 257 "Positional optional parameters can't use ':' to specify a default val
ue.", | 262 "Positional optional parameters can't use ':' to specify a default val
ue.", |
| 258 tip: "Try replacing ':' with '='.", | 263 tip: "Try replacing ':' with '='.", |
| 259 arguments: {}); | 264 arguments: {}); |
| 260 } | 265 } |
| 261 | 266 |
| 262 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 267 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 263 const FastaCode< | 268 const FastaCode< |
| 264 _UnexpectedDollarInString> codeUnexpectedDollarInString = const FastaCode< | 269 _UnexpectedDollarInString> codeUnexpectedDollarInString = const FastaCode< |
| 265 _UnexpectedDollarInString>( | 270 _UnexpectedDollarInString>("UnexpectedDollarInString", |
| 266 template: | 271 template: |
| 267 r"A '$' has special meaning inside a string, and must be followed by an
identifier or an expression in curly braces ({}).", | 272 r"A '$' has special meaning inside a string, and must be followed by an
identifier or an expression in curly braces ({}).", |
| 268 tip: r"Try adding a backslash (\) to escape the '$'.", | 273 tip: r"Try adding a backslash (\) to escape the '$'.", |
| 269 dart2jsCode: "MALFORMED_STRING_LITERAL", | 274 dart2jsCode: "MALFORMED_STRING_LITERAL", |
| 270 format: _formatUnexpectedDollarInString); | 275 format: _formatUnexpectedDollarInString); |
| 271 | 276 |
| 272 typedef FastaMessage _UnexpectedDollarInString(Uri uri, int charOffset); | 277 typedef FastaMessage _UnexpectedDollarInString(Uri uri, int charOffset); |
| 273 | 278 |
| 274 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 279 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 275 FastaMessage _formatUnexpectedDollarInString(Uri uri, int charOffset) { | 280 FastaMessage _formatUnexpectedDollarInString(Uri uri, int charOffset) { |
| 276 return new FastaMessage(uri, charOffset, codeUnexpectedDollarInString, | 281 return new FastaMessage(uri, charOffset, codeUnexpectedDollarInString, |
| 277 message: | 282 message: |
| 278 "A '\$' has special meaning inside a string, and must be followed by a
n identifier or an expression in curly braces ({}).", | 283 "A '\$' has special meaning inside a string, and must be followed by a
n identifier or an expression in curly braces ({}).", |
| 279 tip: "Try adding a backslash (\) to escape the '\$'.", | 284 tip: "Try adding a backslash (\) to escape the '\$'.", |
| 280 arguments: {}); | 285 arguments: {}); |
| 281 } | 286 } |
| 282 | 287 |
| 283 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 288 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 284 const FastaCode<_ExtraneousModifier> codeExtraneousModifier = | 289 const FastaCode<_ExtraneousModifier> codeExtraneousModifier = |
| 285 const FastaCode<_ExtraneousModifier>( | 290 const FastaCode<_ExtraneousModifier>("ExtraneousModifier", |
| 286 template: r"Can't have modifier '#lexeme' here.", | 291 template: r"Can't have modifier '#lexeme' here.", |
| 287 tip: r"Try removing '#lexeme'.", | 292 tip: r"Try removing '#lexeme'.", |
| 288 dart2jsCode: "EXTRANEOUS_MODIFIER", | 293 dart2jsCode: "EXTRANEOUS_MODIFIER", |
| 289 format: _formatExtraneousModifier); | 294 format: _formatExtraneousModifier); |
| 290 | 295 |
| 291 typedef FastaMessage _ExtraneousModifier(Uri uri, int charOffset, Token token); | 296 typedef FastaMessage _ExtraneousModifier(Uri uri, int charOffset, Token token); |
| 292 | 297 |
| 293 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 298 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 294 FastaMessage _formatExtraneousModifier(Uri uri, int charOffset, Token token) { | 299 FastaMessage _formatExtraneousModifier(Uri uri, int charOffset, Token token) { |
| 295 String lexeme = token.lexeme; | 300 String lexeme = token.lexeme; |
| 296 return new FastaMessage(uri, charOffset, codeExtraneousModifier, | 301 return new FastaMessage(uri, charOffset, codeExtraneousModifier, |
| 297 message: "Can't have modifier '$lexeme' here.", | 302 message: "Can't have modifier '$lexeme' here.", |
| 298 tip: "Try removing '$lexeme'.", | 303 tip: "Try removing '$lexeme'.", |
| 299 arguments: {'token': token}); | 304 arguments: {'token': token}); |
| 300 } | 305 } |
| 301 | 306 |
| 302 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 307 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 303 const FastaCode<_EmptyOptionalParameterList> codeEmptyOptionalParameterList = | 308 const FastaCode<_EmptyOptionalParameterList> codeEmptyOptionalParameterList = |
| 304 const FastaCode<_EmptyOptionalParameterList>( | 309 const FastaCode<_EmptyOptionalParameterList>("EmptyOptionalParameterList", |
| 305 template: r"Optional parameter lists cannot be empty.", | 310 template: r"Optional parameter lists cannot be empty.", |
| 306 tip: r"Try adding an optional parameter to the list.", | 311 tip: r"Try adding an optional parameter to the list.", |
| 307 dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", | 312 dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", |
| 308 format: _formatEmptyOptionalParameterList); | 313 format: _formatEmptyOptionalParameterList); |
| 309 | 314 |
| 310 typedef FastaMessage _EmptyOptionalParameterList(Uri uri, int charOffset); | 315 typedef FastaMessage _EmptyOptionalParameterList(Uri uri, int charOffset); |
| 311 | 316 |
| 312 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 317 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 313 FastaMessage _formatEmptyOptionalParameterList(Uri uri, int charOffset) { | 318 FastaMessage _formatEmptyOptionalParameterList(Uri uri, int charOffset) { |
| 314 return new FastaMessage(uri, charOffset, codeEmptyOptionalParameterList, | 319 return new FastaMessage(uri, charOffset, codeEmptyOptionalParameterList, |
| 315 message: "Optional parameter lists cannot be empty.", | 320 message: "Optional parameter lists cannot be empty.", |
| 316 tip: "Try adding an optional parameter to the list.", | 321 tip: "Try adding an optional parameter to the list.", |
| 317 arguments: {}); | 322 arguments: {}); |
| 318 } | 323 } |
| 319 | 324 |
| 320 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 325 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 321 const FastaCode<_UnterminatedString> codeUnterminatedString = | 326 const FastaCode<_UnterminatedString> codeUnterminatedString = |
| 322 const FastaCode<_UnterminatedString>( | 327 const FastaCode<_UnterminatedString>("UnterminatedString", |
| 323 template: r"String must end with #string.", | 328 template: r"String must end with #string.", |
| 324 analyzerCode: "UNTERMINATED_STRING_LITERAL", | 329 analyzerCode: "UNTERMINATED_STRING_LITERAL", |
| 325 dart2jsCode: "UNTERMINATED_STRING", | 330 dart2jsCode: "UNTERMINATED_STRING", |
| 326 format: _formatUnterminatedString); | 331 format: _formatUnterminatedString); |
| 327 | 332 |
| 328 typedef FastaMessage _UnterminatedString( | 333 typedef FastaMessage _UnterminatedString( |
| 329 Uri uri, int charOffset, String string); | 334 Uri uri, int charOffset, String string); |
| 330 | 335 |
| 331 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 336 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 332 FastaMessage _formatUnterminatedString(Uri uri, int charOffset, String string) { | 337 FastaMessage _formatUnterminatedString(Uri uri, int charOffset, String string) { |
| 333 return new FastaMessage(uri, charOffset, codeUnterminatedString, | 338 return new FastaMessage(uri, charOffset, codeUnterminatedString, |
| 334 message: "String must end with $string.", arguments: {'string': string}); | 339 message: "String must end with $string.", arguments: {'string': string}); |
| 335 } | 340 } |
| 336 | 341 |
| 337 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 342 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 338 const FastaCode<_AwaitNotAsync> codeAwaitNotAsync = | 343 const FastaCode<_AwaitNotAsync> codeAwaitNotAsync = |
| 339 const FastaCode<_AwaitNotAsync>( | 344 const FastaCode<_AwaitNotAsync>("AwaitNotAsync", |
| 340 template: r"'await' can only be used in 'async' or 'async*' methods.", | 345 template: r"'await' can only be used in 'async' or 'async*' methods.", |
| 341 dart2jsCode: "FASTA_IGNORED", | 346 dart2jsCode: "FASTA_IGNORED", |
| 342 format: _formatAwaitNotAsync); | 347 format: _formatAwaitNotAsync); |
| 343 | 348 |
| 344 typedef FastaMessage _AwaitNotAsync(Uri uri, int charOffset); | 349 typedef FastaMessage _AwaitNotAsync(Uri uri, int charOffset); |
| 345 | 350 |
| 346 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 351 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 347 FastaMessage _formatAwaitNotAsync(Uri uri, int charOffset) { | 352 FastaMessage _formatAwaitNotAsync(Uri uri, int charOffset) { |
| 348 return new FastaMessage(uri, charOffset, codeAwaitNotAsync, | 353 return new FastaMessage(uri, charOffset, codeAwaitNotAsync, |
| 349 message: "'await' can only be used in 'async' or 'async*' methods.", | 354 message: "'await' can only be used in 'async' or 'async*' methods.", |
| 350 arguments: {}); | 355 arguments: {}); |
| 351 } | 356 } |
| 352 | 357 |
| 353 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 358 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 354 const FastaCode<_ExpectedFunctionBody> codeExpectedFunctionBody = | 359 const FastaCode<_ExpectedFunctionBody> codeExpectedFunctionBody = |
| 355 const FastaCode<_ExpectedFunctionBody>( | 360 const FastaCode<_ExpectedFunctionBody>("ExpectedFunctionBody", |
| 356 template: r"Expected a function body, but got '#lexeme'.", | 361 template: r"Expected a function body, but got '#lexeme'.", |
| 357 dart2jsCode: "NATIVE_OR_FATAL", | 362 dart2jsCode: "NATIVE_OR_FATAL", |
| 358 format: _formatExpectedFunctionBody); | 363 format: _formatExpectedFunctionBody); |
| 359 | 364 |
| 360 typedef FastaMessage _ExpectedFunctionBody( | 365 typedef FastaMessage _ExpectedFunctionBody( |
| 361 Uri uri, int charOffset, Token token); | 366 Uri uri, int charOffset, Token token); |
| 362 | 367 |
| 363 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 368 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 364 FastaMessage _formatExpectedFunctionBody(Uri uri, int charOffset, Token token) { | 369 FastaMessage _formatExpectedFunctionBody(Uri uri, int charOffset, Token token) { |
| 365 String lexeme = token.lexeme; | 370 String lexeme = token.lexeme; |
| 366 return new FastaMessage(uri, charOffset, codeExpectedFunctionBody, | 371 return new FastaMessage(uri, charOffset, codeExpectedFunctionBody, |
| 367 message: "Expected a function body, but got '$lexeme'.", | 372 message: "Expected a function body, but got '$lexeme'.", |
| 368 arguments: {'token': token}); | 373 arguments: {'token': token}); |
| 369 } | 374 } |
| 370 | 375 |
| 371 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 376 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 372 const FastaCode<_ExpectedHexDigit> codeExpectedHexDigit = | 377 const FastaCode<_ExpectedHexDigit> codeExpectedHexDigit = |
| 373 const FastaCode<_ExpectedHexDigit>( | 378 const FastaCode<_ExpectedHexDigit>("ExpectedHexDigit", |
| 374 template: r"A hex digit (0-9 or A-F) must follow '0x'.", | 379 template: r"A hex digit (0-9 or A-F) must follow '0x'.", |
| 375 analyzerCode: "MISSING_HEX_DIGIT", | 380 analyzerCode: "MISSING_HEX_DIGIT", |
| 376 dart2jsCode: "HEX_DIGIT_EXPECTED", | 381 dart2jsCode: "HEX_DIGIT_EXPECTED", |
| 377 format: _formatExpectedHexDigit); | 382 format: _formatExpectedHexDigit); |
| 378 | 383 |
| 379 typedef FastaMessage _ExpectedHexDigit(Uri uri, int charOffset); | 384 typedef FastaMessage _ExpectedHexDigit(Uri uri, int charOffset); |
| 380 | 385 |
| 381 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 386 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 382 FastaMessage _formatExpectedHexDigit(Uri uri, int charOffset) { | 387 FastaMessage _formatExpectedHexDigit(Uri uri, int charOffset) { |
| 383 return new FastaMessage(uri, charOffset, codeExpectedHexDigit, | 388 return new FastaMessage(uri, charOffset, codeExpectedHexDigit, |
| 384 message: "A hex digit (0-9 or A-F) must follow '0x'.", arguments: {}); | 389 message: "A hex digit (0-9 or A-F) must follow '0x'.", arguments: {}); |
| 385 } | 390 } |
| 386 | 391 |
| 387 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 392 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 388 const FastaCode<_EmptyNamedParameterList> codeEmptyNamedParameterList = | 393 const FastaCode<_EmptyNamedParameterList> codeEmptyNamedParameterList = |
| 389 const FastaCode<_EmptyNamedParameterList>( | 394 const FastaCode<_EmptyNamedParameterList>("EmptyNamedParameterList", |
| 390 template: r"Named parameter lists cannot be empty.", | 395 template: r"Named parameter lists cannot be empty.", |
| 391 tip: r"Try adding a named parameter to the list.", | 396 tip: r"Try adding a named parameter to the list.", |
| 392 dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST", | 397 dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST", |
| 393 format: _formatEmptyNamedParameterList); | 398 format: _formatEmptyNamedParameterList); |
| 394 | 399 |
| 395 typedef FastaMessage _EmptyNamedParameterList(Uri uri, int charOffset); | 400 typedef FastaMessage _EmptyNamedParameterList(Uri uri, int charOffset); |
| 396 | 401 |
| 397 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 402 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 398 FastaMessage _formatEmptyNamedParameterList(Uri uri, int charOffset) { | 403 FastaMessage _formatEmptyNamedParameterList(Uri uri, int charOffset) { |
| 399 return new FastaMessage(uri, charOffset, codeEmptyNamedParameterList, | 404 return new FastaMessage(uri, charOffset, codeEmptyNamedParameterList, |
| 400 message: "Named parameter lists cannot be empty.", | 405 message: "Named parameter lists cannot be empty.", |
| 401 tip: "Try adding a named parameter to the list.", | 406 tip: "Try adding a named parameter to the list.", |
| 402 arguments: {}); | 407 arguments: {}); |
| 403 } | 408 } |
| 404 | 409 |
| 405 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 410 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 406 const FastaCode<_UnsupportedPrefixPlus> codeUnsupportedPrefixPlus = | 411 const FastaCode<_UnsupportedPrefixPlus> codeUnsupportedPrefixPlus = |
| 407 const FastaCode<_UnsupportedPrefixPlus>( | 412 const FastaCode<_UnsupportedPrefixPlus>("UnsupportedPrefixPlus", |
| 408 template: r"'+' is not a prefix operator. ", | 413 template: r"'+' is not a prefix operator. ", |
| 409 tip: r"Try removing '+'.", | 414 tip: r"Try removing '+'.", |
| 410 dart2jsCode: "UNSUPPORTED_PREFIX_PLUS", | 415 dart2jsCode: "UNSUPPORTED_PREFIX_PLUS", |
| 411 format: _formatUnsupportedPrefixPlus); | 416 format: _formatUnsupportedPrefixPlus); |
| 412 | 417 |
| 413 typedef FastaMessage _UnsupportedPrefixPlus(Uri uri, int charOffset); | 418 typedef FastaMessage _UnsupportedPrefixPlus(Uri uri, int charOffset); |
| 414 | 419 |
| 415 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 420 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 416 FastaMessage _formatUnsupportedPrefixPlus(Uri uri, int charOffset) { | 421 FastaMessage _formatUnsupportedPrefixPlus(Uri uri, int charOffset) { |
| 417 return new FastaMessage(uri, charOffset, codeUnsupportedPrefixPlus, | 422 return new FastaMessage(uri, charOffset, codeUnsupportedPrefixPlus, |
| 418 message: "'+' is not a prefix operator. ", | 423 message: "'+' is not a prefix operator. ", |
| 419 tip: "Try removing '+'.", | 424 tip: "Try removing '+'.", |
| 420 arguments: {}); | 425 arguments: {}); |
| 421 } | 426 } |
| 422 | 427 |
| 423 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 428 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 424 const FastaCode<_ExpectedString> codeExpectedString = | 429 const FastaCode<_ExpectedString> codeExpectedString = |
| 425 const FastaCode<_ExpectedString>( | 430 const FastaCode<_ExpectedString>("ExpectedString", |
| 426 template: r"Expected a String, but got '#lexeme'.", | 431 template: r"Expected a String, but got '#lexeme'.", |
| 427 dart2jsCode: "FASTA_FATAL", | 432 dart2jsCode: "FASTA_FATAL", |
| 428 format: _formatExpectedString); | 433 format: _formatExpectedString); |
| 429 | 434 |
| 430 typedef FastaMessage _ExpectedString(Uri uri, int charOffset, Token token); | 435 typedef FastaMessage _ExpectedString(Uri uri, int charOffset, Token token); |
| 431 | 436 |
| 432 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 437 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 433 FastaMessage _formatExpectedString(Uri uri, int charOffset, Token token) { | 438 FastaMessage _formatExpectedString(Uri uri, int charOffset, Token token) { |
| 434 String lexeme = token.lexeme; | 439 String lexeme = token.lexeme; |
| 435 return new FastaMessage(uri, charOffset, codeExpectedString, | 440 return new FastaMessage(uri, charOffset, codeExpectedString, |
| 436 message: "Expected a String, but got '$lexeme'.", | 441 message: "Expected a String, but got '$lexeme'.", |
| 437 arguments: {'token': token}); | 442 arguments: {'token': token}); |
| 438 } | 443 } |
| 439 | 444 |
| 440 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 445 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 446 const FastaCode<_TypeAfterVar> codeTypeAfterVar = |
| 447 const FastaCode<_TypeAfterVar>("TypeAfterVar", |
| 448 template: r"Can't have both a type and 'var'.", |
| 449 tip: r"Try removing 'var.'", |
| 450 dart2jsCode: "EXTRANEOUS_MODIFIER", |
| 451 format: _formatTypeAfterVar); |
| 452 |
| 453 typedef FastaMessage _TypeAfterVar(Uri uri, int charOffset); |
| 454 |
| 455 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 456 FastaMessage _formatTypeAfterVar(Uri uri, int charOffset) { |
| 457 return new FastaMessage(uri, charOffset, codeTypeAfterVar, |
| 458 message: "Can't have both a type and 'var'.", |
| 459 tip: "Try removing 'var.'", |
| 460 arguments: {}); |
| 461 } |
| 462 |
| 463 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 441 const FastaCode<_AbstractNotSync> codeAbstractNotSync = | 464 const FastaCode<_AbstractNotSync> codeAbstractNotSync = |
| 442 const FastaCode<_AbstractNotSync>( | 465 const FastaCode<_AbstractNotSync>("AbstractNotSync", |
| 443 template: r"Abstract methods can't use 'async', 'async*', or 'sync*'.", | 466 template: r"Abstract methods can't use 'async', 'async*', or 'sync*'.", |
| 444 dart2jsCode: "FASTA_IGNORED", | 467 dart2jsCode: "FASTA_IGNORED", |
| 445 format: _formatAbstractNotSync); | 468 format: _formatAbstractNotSync); |
| 446 | 469 |
| 447 typedef FastaMessage _AbstractNotSync(Uri uri, int charOffset); | 470 typedef FastaMessage _AbstractNotSync(Uri uri, int charOffset); |
| 448 | 471 |
| 449 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 472 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 450 FastaMessage _formatAbstractNotSync(Uri uri, int charOffset) { | 473 FastaMessage _formatAbstractNotSync(Uri uri, int charOffset) { |
| 451 return new FastaMessage(uri, charOffset, codeAbstractNotSync, | 474 return new FastaMessage(uri, charOffset, codeAbstractNotSync, |
| 452 message: "Abstract methods can't use 'async', 'async*', or 'sync*'.", | 475 message: "Abstract methods can't use 'async', 'async*', or 'sync*'.", |
| 453 arguments: {}); | 476 arguments: {}); |
| 454 } | 477 } |
| 455 | 478 |
| 456 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 479 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 457 const FastaCode<_ExpectedDeclaration> codeExpectedDeclaration = | 480 const FastaCode<_ExpectedDeclaration> codeExpectedDeclaration = |
| 458 const FastaCode<_ExpectedDeclaration>( | 481 const FastaCode<_ExpectedDeclaration>("ExpectedDeclaration", |
| 459 template: r"Expected a declaration, but got '#lexeme'.", | 482 template: r"Expected a declaration, but got '#lexeme'.", |
| 460 dart2jsCode: "FASTA_FATAL", | 483 dart2jsCode: "FASTA_FATAL", |
| 461 format: _formatExpectedDeclaration); | 484 format: _formatExpectedDeclaration); |
| 462 | 485 |
| 463 typedef FastaMessage _ExpectedDeclaration(Uri uri, int charOffset, Token token); | 486 typedef FastaMessage _ExpectedDeclaration(Uri uri, int charOffset, Token token); |
| 464 | 487 |
| 465 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 488 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 466 FastaMessage _formatExpectedDeclaration(Uri uri, int charOffset, Token token) { | 489 FastaMessage _formatExpectedDeclaration(Uri uri, int charOffset, Token token) { |
| 467 String lexeme = token.lexeme; | 490 String lexeme = token.lexeme; |
| 468 return new FastaMessage(uri, charOffset, codeExpectedDeclaration, | 491 return new FastaMessage(uri, charOffset, codeExpectedDeclaration, |
| 469 message: "Expected a declaration, but got '$lexeme'.", | 492 message: "Expected a declaration, but got '$lexeme'.", |
| 470 arguments: {'token': token}); | 493 arguments: {'token': token}); |
| 471 } | 494 } |
| 472 | 495 |
| 473 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 496 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 474 const FastaCode< | 497 const FastaCode< |
| 475 _AsciiControlCharacter> codeAsciiControlCharacter = const FastaCode< | 498 _AsciiControlCharacter> codeAsciiControlCharacter = const FastaCode< |
| 476 _AsciiControlCharacter>( | 499 _AsciiControlCharacter>("AsciiControlCharacter", |
| 477 template: | 500 template: |
| 478 r"The control character #unicode can only be used in strings and comment
s.", | 501 r"The control character #unicode can only be used in strings and comment
s.", |
| 479 dart2jsCode: "BAD_INPUT_CHARACTER", | 502 dart2jsCode: "BAD_INPUT_CHARACTER", |
| 480 format: _formatAsciiControlCharacter); | 503 format: _formatAsciiControlCharacter); |
| 481 | 504 |
| 482 typedef FastaMessage _AsciiControlCharacter( | 505 typedef FastaMessage _AsciiControlCharacter( |
| 483 Uri uri, int charOffset, int codePoint); | 506 Uri uri, int charOffset, int codePoint); |
| 484 | 507 |
| 485 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 508 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 486 FastaMessage _formatAsciiControlCharacter( | 509 FastaMessage _formatAsciiControlCharacter( |
| 487 Uri uri, int charOffset, int codePoint) { | 510 Uri uri, int charOffset, int codePoint) { |
| 488 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 511 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 489 return new FastaMessage(uri, charOffset, codeAsciiControlCharacter, | 512 return new FastaMessage(uri, charOffset, codeAsciiControlCharacter, |
| 490 message: | 513 message: |
| 491 "The control character $unicode can only be used in strings and commen
ts.", | 514 "The control character $unicode can only be used in strings and commen
ts.", |
| 492 arguments: {'codePoint': codePoint}); | 515 arguments: {'codePoint': codePoint}); |
| 493 } | 516 } |
| 494 | 517 |
| 495 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 518 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 496 const FastaCode<_UnmatchedToken> codeUnmatchedToken = | 519 const FastaCode<_UnmatchedToken> codeUnmatchedToken = |
| 497 const FastaCode<_UnmatchedToken>( | 520 const FastaCode<_UnmatchedToken>("UnmatchedToken", |
| 498 template: r"Can't find '#string' to match '#lexeme'.", | 521 template: r"Can't find '#string' to match '#lexeme'.", |
| 499 dart2jsCode: "UNMATCHED_TOKEN", | 522 dart2jsCode: "UNMATCHED_TOKEN", |
| 500 format: _formatUnmatchedToken); | 523 format: _formatUnmatchedToken); |
| 501 | 524 |
| 502 typedef FastaMessage _UnmatchedToken( | 525 typedef FastaMessage _UnmatchedToken( |
| 503 Uri uri, int charOffset, String string, Token token); | 526 Uri uri, int charOffset, String string, Token token); |
| 504 | 527 |
| 505 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 528 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 506 FastaMessage _formatUnmatchedToken( | 529 FastaMessage _formatUnmatchedToken( |
| 507 Uri uri, int charOffset, String string, Token token) { | 530 Uri uri, int charOffset, String string, Token token) { |
| 508 String lexeme = token.lexeme; | 531 String lexeme = token.lexeme; |
| 509 return new FastaMessage(uri, charOffset, codeUnmatchedToken, | 532 return new FastaMessage(uri, charOffset, codeUnmatchedToken, |
| 510 message: "Can't find '$string' to match '$lexeme'.", | 533 message: "Can't find '$string' to match '$lexeme'.", |
| 511 arguments: {'string': string, 'token': token}); | 534 arguments: {'string': string, 'token': token}); |
| 512 } | 535 } |
| 513 | 536 |
| 514 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 537 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 515 const FastaCode<_InvalidSyncModifier> codeInvalidSyncModifier = | 538 const FastaCode<_InvalidSyncModifier> codeInvalidSyncModifier = |
| 516 const FastaCode<_InvalidSyncModifier>( | 539 const FastaCode<_InvalidSyncModifier>("InvalidSyncModifier", |
| 517 template: r"Invalid modifier 'sync'.", | 540 template: r"Invalid modifier 'sync'.", |
| 518 tip: r"Try replacing 'sync' with 'sync*'.", | 541 tip: r"Try replacing 'sync' with 'sync*'.", |
| 519 dart2jsCode: "INVALID_SYNC_MODIFIER", | 542 dart2jsCode: "INVALID_SYNC_MODIFIER", |
| 520 format: _formatInvalidSyncModifier); | 543 format: _formatInvalidSyncModifier); |
| 521 | 544 |
| 522 typedef FastaMessage _InvalidSyncModifier(Uri uri, int charOffset); | 545 typedef FastaMessage _InvalidSyncModifier(Uri uri, int charOffset); |
| 523 | 546 |
| 524 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 547 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 525 FastaMessage _formatInvalidSyncModifier(Uri uri, int charOffset) { | 548 FastaMessage _formatInvalidSyncModifier(Uri uri, int charOffset) { |
| 526 return new FastaMessage(uri, charOffset, codeInvalidSyncModifier, | 549 return new FastaMessage(uri, charOffset, codeInvalidSyncModifier, |
| 527 message: "Invalid modifier 'sync'.", | 550 message: "Invalid modifier 'sync'.", |
| 528 tip: "Try replacing 'sync' with 'sync*'.", | 551 tip: "Try replacing 'sync' with 'sync*'.", |
| 529 arguments: {}); | 552 arguments: {}); |
| 530 } | 553 } |
| 531 | 554 |
| 532 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 555 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 533 const FastaCode<_ExpectedOpenParens> codeExpectedOpenParens = | 556 const FastaCode<_ExpectedOpenParens> codeExpectedOpenParens = |
| 534 const FastaCode<_ExpectedOpenParens>( | 557 const FastaCode<_ExpectedOpenParens>("ExpectedOpenParens", |
| 535 template: r"Expected '('.", | 558 template: r"Expected '('.", |
| 536 dart2jsCode: "GENERIC", | 559 dart2jsCode: "GENERIC", |
| 537 format: _formatExpectedOpenParens); | 560 format: _formatExpectedOpenParens); |
| 538 | 561 |
| 539 typedef FastaMessage _ExpectedOpenParens(Uri uri, int charOffset); | 562 typedef FastaMessage _ExpectedOpenParens(Uri uri, int charOffset); |
| 540 | 563 |
| 541 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 564 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 542 FastaMessage _formatExpectedOpenParens(Uri uri, int charOffset) { | 565 FastaMessage _formatExpectedOpenParens(Uri uri, int charOffset) { |
| 543 return new FastaMessage(uri, charOffset, codeExpectedOpenParens, | 566 return new FastaMessage(uri, charOffset, codeExpectedOpenParens, |
| 544 message: "Expected '('.", arguments: {}); | 567 message: "Expected '('.", arguments: {}); |
| 545 } | 568 } |
| 546 | 569 |
| 547 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 570 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 548 const FastaCode<_UnterminatedComment> codeUnterminatedComment = | 571 const FastaCode<_UnterminatedComment> codeUnterminatedComment = |
| 549 const FastaCode<_UnterminatedComment>( | 572 const FastaCode<_UnterminatedComment>("UnterminatedComment", |
| 550 template: r"Comment starting with '/*' must end with '*/'.", | 573 template: r"Comment starting with '/*' must end with '*/'.", |
| 551 analyzerCode: "UNTERMINATED_MULTI_LINE_COMMENT", | 574 analyzerCode: "UNTERMINATED_MULTI_LINE_COMMENT", |
| 552 dart2jsCode: "UNTERMINATED_COMMENT", | 575 dart2jsCode: "UNTERMINATED_COMMENT", |
| 553 format: _formatUnterminatedComment); | 576 format: _formatUnterminatedComment); |
| 554 | 577 |
| 555 typedef FastaMessage _UnterminatedComment(Uri uri, int charOffset); | 578 typedef FastaMessage _UnterminatedComment(Uri uri, int charOffset); |
| 556 | 579 |
| 557 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 580 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 558 FastaMessage _formatUnterminatedComment(Uri uri, int charOffset) { | 581 FastaMessage _formatUnterminatedComment(Uri uri, int charOffset) { |
| 559 return new FastaMessage(uri, charOffset, codeUnterminatedComment, | 582 return new FastaMessage(uri, charOffset, codeUnterminatedComment, |
| 560 message: "Comment starting with '/*' must end with '*/'.", arguments: {}); | 583 message: "Comment starting with '/*' must end with '*/'.", arguments: {}); |
| 561 } | 584 } |
| 562 | 585 |
| 563 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 586 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 564 const FastaCode<_ExpectedClassBody> codeExpectedClassBody = | 587 const FastaCode<_ExpectedClassBody> codeExpectedClassBody = |
| 565 const FastaCode<_ExpectedClassBody>( | 588 const FastaCode<_ExpectedClassBody>("ExpectedClassBody", |
| 566 template: r"Expected a class body, but got '#lexeme'.", | 589 template: r"Expected a class body, but got '#lexeme'.", |
| 567 dart2jsCode: "FASTA_FATAL", | 590 dart2jsCode: "FASTA_FATAL", |
| 568 format: _formatExpectedClassBody); | 591 format: _formatExpectedClassBody); |
| 569 | 592 |
| 570 typedef FastaMessage _ExpectedClassBody(Uri uri, int charOffset, Token token); | 593 typedef FastaMessage _ExpectedClassBody(Uri uri, int charOffset, Token token); |
| 571 | 594 |
| 572 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 595 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 573 FastaMessage _formatExpectedClassBody(Uri uri, int charOffset, Token token) { | 596 FastaMessage _formatExpectedClassBody(Uri uri, int charOffset, Token token) { |
| 574 String lexeme = token.lexeme; | 597 String lexeme = token.lexeme; |
| 575 return new FastaMessage(uri, charOffset, codeExpectedClassBody, | 598 return new FastaMessage(uri, charOffset, codeExpectedClassBody, |
| 576 message: "Expected a class body, but got '$lexeme'.", | 599 message: "Expected a class body, but got '$lexeme'.", |
| 577 arguments: {'token': token}); | 600 arguments: {'token': token}); |
| 578 } | 601 } |
| 579 | 602 |
| 580 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 603 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 581 const FastaCode<_ExpectedExpression> codeExpectedExpression = | 604 const FastaCode<_ExpectedExpression> codeExpectedExpression = |
| 582 const FastaCode<_ExpectedExpression>( | 605 const FastaCode<_ExpectedExpression>("ExpectedExpression", |
| 583 template: r"Expected an expression, but got '#lexeme'.", | 606 template: r"Expected an expression, but got '#lexeme'.", |
| 584 dart2jsCode: "FASTA_FATAL", | 607 dart2jsCode: "FASTA_FATAL", |
| 585 format: _formatExpectedExpression); | 608 format: _formatExpectedExpression); |
| 586 | 609 |
| 587 typedef FastaMessage _ExpectedExpression(Uri uri, int charOffset, Token token); | 610 typedef FastaMessage _ExpectedExpression(Uri uri, int charOffset, Token token); |
| 588 | 611 |
| 589 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 612 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 590 FastaMessage _formatExpectedExpression(Uri uri, int charOffset, Token token) { | 613 FastaMessage _formatExpectedExpression(Uri uri, int charOffset, Token token) { |
| 591 String lexeme = token.lexeme; | 614 String lexeme = token.lexeme; |
| 592 return new FastaMessage(uri, charOffset, codeExpectedExpression, | 615 return new FastaMessage(uri, charOffset, codeExpectedExpression, |
| 593 message: "Expected an expression, but got '$lexeme'.", | 616 message: "Expected an expression, but got '$lexeme'.", |
| 594 arguments: {'token': token}); | 617 arguments: {'token': token}); |
| 595 } | 618 } |
| 596 | 619 |
| 597 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 620 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 598 const FastaCode<_InvalidAwaitFor> codeInvalidAwaitFor = const FastaCode< | 621 const FastaCode<_InvalidAwaitFor> codeInvalidAwaitFor = const FastaCode< |
| 599 _InvalidAwaitFor>( | 622 _InvalidAwaitFor>("InvalidAwaitFor", |
| 600 template: | 623 template: |
| 601 r"'await' is only supported in methods with an 'async' or 'async*' body
modifier.", | 624 r"'await' is only supported in methods with an 'async' or 'async*' body
modifier.", |
| 602 tip: | 625 tip: |
| 603 r"Try adding 'async' or 'async*' to the method body or removing the 'awa
it' keyword.", | 626 r"Try adding 'async' or 'async*' to the method body or removing the 'awa
it' keyword.", |
| 604 dart2jsCode: "INVALID_AWAIT_FOR", | 627 dart2jsCode: "INVALID_AWAIT_FOR", |
| 605 format: _formatInvalidAwaitFor); | 628 format: _formatInvalidAwaitFor); |
| 606 | 629 |
| 607 typedef FastaMessage _InvalidAwaitFor(Uri uri, int charOffset); | 630 typedef FastaMessage _InvalidAwaitFor(Uri uri, int charOffset); |
| 608 | 631 |
| 609 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 632 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 610 FastaMessage _formatInvalidAwaitFor(Uri uri, int charOffset) { | 633 FastaMessage _formatInvalidAwaitFor(Uri uri, int charOffset) { |
| 611 return new FastaMessage(uri, charOffset, codeInvalidAwaitFor, | 634 return new FastaMessage(uri, charOffset, codeInvalidAwaitFor, |
| 612 message: | 635 message: |
| 613 "'await' is only supported in methods with an 'async' or 'async*' body
modifier.", | 636 "'await' is only supported in methods with an 'async' or 'async*' body
modifier.", |
| 614 tip: | 637 tip: |
| 615 "Try adding 'async' or 'async*' to the method body or removing the 'aw
ait' keyword.", | 638 "Try adding 'async' or 'async*' to the method body or removing the 'aw
ait' keyword.", |
| 616 arguments: {}); | 639 arguments: {}); |
| 617 } | 640 } |
| 618 | 641 |
| 619 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 642 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 620 const FastaCode<_ExpectedType> codeExpectedType = | 643 const FastaCode<_ExpectedType> codeExpectedType = |
| 621 const FastaCode<_ExpectedType>( | 644 const FastaCode<_ExpectedType>("ExpectedType", |
| 622 template: r"Expected a type, but got '#lexeme'.", | 645 template: r"Expected a type, but got '#lexeme'.", |
| 623 dart2jsCode: "FASTA_FATAL", | 646 dart2jsCode: "FASTA_FATAL", |
| 624 format: _formatExpectedType); | 647 format: _formatExpectedType); |
| 625 | 648 |
| 626 typedef FastaMessage _ExpectedType(Uri uri, int charOffset, Token token); | 649 typedef FastaMessage _ExpectedType(Uri uri, int charOffset, Token token); |
| 627 | 650 |
| 628 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 651 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 629 FastaMessage _formatExpectedType(Uri uri, int charOffset, Token token) { | 652 FastaMessage _formatExpectedType(Uri uri, int charOffset, Token token) { |
| 630 String lexeme = token.lexeme; | 653 String lexeme = token.lexeme; |
| 631 return new FastaMessage(uri, charOffset, codeExpectedType, | 654 return new FastaMessage(uri, charOffset, codeExpectedType, |
| 632 message: "Expected a type, but got '$lexeme'.", | 655 message: "Expected a type, but got '$lexeme'.", |
| 633 arguments: {'token': token}); | 656 arguments: {'token': token}); |
| 634 } | 657 } |
| 635 | 658 |
| 636 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 659 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 637 const FastaCode<_UnterminatedToken> codeUnterminatedToken = | 660 const FastaCode<_UnterminatedToken> codeUnterminatedToken = |
| 638 const FastaCode<_UnterminatedToken>( | 661 const FastaCode<_UnterminatedToken>("UnterminatedToken", |
| 639 template: r"Incomplete token.", | 662 template: r"Incomplete token.", |
| 640 dart2jsCode: "UNTERMINATED_TOKEN", | 663 dart2jsCode: "UNTERMINATED_TOKEN", |
| 641 format: _formatUnterminatedToken); | 664 format: _formatUnterminatedToken); |
| 642 | 665 |
| 643 typedef FastaMessage _UnterminatedToken(Uri uri, int charOffset); | 666 typedef FastaMessage _UnterminatedToken(Uri uri, int charOffset); |
| 644 | 667 |
| 645 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 668 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 646 FastaMessage _formatUnterminatedToken(Uri uri, int charOffset) { | 669 FastaMessage _formatUnterminatedToken(Uri uri, int charOffset) { |
| 647 return new FastaMessage(uri, charOffset, codeUnterminatedToken, | 670 return new FastaMessage(uri, charOffset, codeUnterminatedToken, |
| 648 message: "Incomplete token.", arguments: {}); | 671 message: "Incomplete token.", arguments: {}); |
| 649 } | 672 } |
| 650 | 673 |
| 651 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 674 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 652 const FastaCode<_ExpectedButGot> codeExpectedButGot = | 675 const FastaCode<_ExpectedButGot> codeExpectedButGot = |
| 653 const FastaCode<_ExpectedButGot>( | 676 const FastaCode<_ExpectedButGot>("ExpectedButGot", |
| 654 template: r"Expected '#string' before this.", | 677 template: r"Expected '#string' before this.", |
| 655 tip: r"DONT_KNOW_HOW_TO_FIX,", | 678 tip: r"DONT_KNOW_HOW_TO_FIX,", |
| 656 dart2jsCode: "MISSING_TOKEN_BEFORE_THIS", | 679 dart2jsCode: "MISSING_TOKEN_BEFORE_THIS", |
| 657 format: _formatExpectedButGot); | 680 format: _formatExpectedButGot); |
| 658 | 681 |
| 659 typedef FastaMessage _ExpectedButGot(Uri uri, int charOffset, String string); | 682 typedef FastaMessage _ExpectedButGot(Uri uri, int charOffset, String string); |
| 660 | 683 |
| 661 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 684 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 662 FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) { | 685 FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) { |
| 663 return new FastaMessage(uri, charOffset, codeExpectedButGot, | 686 return new FastaMessage(uri, charOffset, codeExpectedButGot, |
| 664 message: "Expected '$string' before this.", | 687 message: "Expected '$string' before this.", |
| 665 tip: "DONT_KNOW_HOW_TO_FIX,", | 688 tip: "DONT_KNOW_HOW_TO_FIX,", |
| 666 arguments: {'string': string}); | 689 arguments: {'string': string}); |
| 667 } | 690 } |
| 668 | 691 |
| 669 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 692 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 670 const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode< | 693 const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode< |
| 671 _AwaitForNotAsync>( | 694 _AwaitForNotAsync>("AwaitForNotAsync", |
| 672 template: | 695 template: |
| 673 r"Asynchronous for-loop can only be used in 'async' or 'async*' methods.
", | 696 r"Asynchronous for-loop can only be used in 'async' or 'async*' methods.
", |
| 674 dart2jsCode: "FASTA_IGNORED", | 697 dart2jsCode: "FASTA_IGNORED", |
| 675 format: _formatAwaitForNotAsync); | 698 format: _formatAwaitForNotAsync); |
| 676 | 699 |
| 677 typedef FastaMessage _AwaitForNotAsync(Uri uri, int charOffset); | 700 typedef FastaMessage _AwaitForNotAsync(Uri uri, int charOffset); |
| 678 | 701 |
| 679 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 702 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 680 FastaMessage _formatAwaitForNotAsync(Uri uri, int charOffset) { | 703 FastaMessage _formatAwaitForNotAsync(Uri uri, int charOffset) { |
| 681 return new FastaMessage(uri, charOffset, codeAwaitForNotAsync, | 704 return new FastaMessage(uri, charOffset, codeAwaitForNotAsync, |
| 682 message: | 705 message: |
| 683 "Asynchronous for-loop can only be used in 'async' or 'async*' methods
.", | 706 "Asynchronous for-loop can only be used in 'async' or 'async*' methods
.", |
| 684 arguments: {}); | 707 arguments: {}); |
| 685 } | 708 } |
| 686 | 709 |
| 687 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 710 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 688 const FastaCode<_Encoding> codeEncoding = const FastaCode<_Encoding>( | 711 const FastaCode<_Encoding> codeEncoding = const FastaCode<_Encoding>("Encoding", |
| 689 template: r"Unable to decode bytes as UTF-8.", | 712 template: r"Unable to decode bytes as UTF-8.", |
| 690 dart2jsCode: "FASTA_FATAL", | 713 dart2jsCode: "FASTA_FATAL", |
| 691 format: _formatEncoding); | 714 format: _formatEncoding); |
| 692 | 715 |
| 693 typedef FastaMessage _Encoding(Uri uri, int charOffset); | 716 typedef FastaMessage _Encoding(Uri uri, int charOffset); |
| 694 | 717 |
| 695 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 718 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 696 FastaMessage _formatEncoding(Uri uri, int charOffset) { | 719 FastaMessage _formatEncoding(Uri uri, int charOffset) { |
| 697 return new FastaMessage(uri, charOffset, codeEncoding, | 720 return new FastaMessage(uri, charOffset, codeEncoding, |
| 698 message: "Unable to decode bytes as UTF-8.", arguments: {}); | 721 message: "Unable to decode bytes as UTF-8.", arguments: {}); |
| 699 } | 722 } |
| 700 | 723 |
| 701 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 724 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 702 const FastaCode<_AsyncAsIdentifier> codeAsyncAsIdentifier = const FastaCode< | 725 const FastaCode<_AsyncAsIdentifier> codeAsyncAsIdentifier = const FastaCode< |
| 703 _AsyncAsIdentifier>( | 726 _AsyncAsIdentifier>("AsyncAsIdentifier", |
| 704 template: | 727 template: |
| 705 r"'async' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", | 728 r"'async' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", |
| 706 analyzerCode: "ASYNC_KEYWORD_USED_AS_IDENTIFIER", | 729 analyzerCode: "ASYNC_KEYWORD_USED_AS_IDENTIFIER", |
| 707 dart2jsCode: "GENERIC", | 730 dart2jsCode: "GENERIC", |
| 708 format: _formatAsyncAsIdentifier); | 731 format: _formatAsyncAsIdentifier); |
| 709 | 732 |
| 710 typedef FastaMessage _AsyncAsIdentifier(Uri uri, int charOffset); | 733 typedef FastaMessage _AsyncAsIdentifier(Uri uri, int charOffset); |
| 711 | 734 |
| 712 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 735 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 713 FastaMessage _formatAsyncAsIdentifier(Uri uri, int charOffset) { | 736 FastaMessage _formatAsyncAsIdentifier(Uri uri, int charOffset) { |
| 714 return new FastaMessage(uri, charOffset, codeAsyncAsIdentifier, | 737 return new FastaMessage(uri, charOffset, codeAsyncAsIdentifier, |
| 715 message: | 738 message: |
| 716 "'async' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 739 "'async' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
| 717 arguments: {}); | 740 arguments: {}); |
| 718 } | 741 } |
| 719 | 742 |
| 720 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 743 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 721 const FastaCode<_YieldAsIdentifier> codeYieldAsIdentifier = const FastaCode< | 744 const FastaCode<_YieldAsIdentifier> codeYieldAsIdentifier = const FastaCode< |
| 722 _YieldAsIdentifier>( | 745 _YieldAsIdentifier>("YieldAsIdentifier", |
| 723 template: | 746 template: |
| 724 r"'yield' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", | 747 r"'yield' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", |
| 725 dart2jsCode: "FASTA_IGNORED", | 748 dart2jsCode: "FASTA_IGNORED", |
| 726 format: _formatYieldAsIdentifier); | 749 format: _formatYieldAsIdentifier); |
| 727 | 750 |
| 728 typedef FastaMessage _YieldAsIdentifier(Uri uri, int charOffset); | 751 typedef FastaMessage _YieldAsIdentifier(Uri uri, int charOffset); |
| 729 | 752 |
| 730 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 753 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 731 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { | 754 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { |
| 732 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, | 755 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, |
| 733 message: | 756 message: |
| 734 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 757 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
| 735 arguments: {}); | 758 arguments: {}); |
| 736 } | 759 } |
| 737 | 760 |
| 738 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 761 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 739 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>( | 762 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry", |
| 740 template: | 763 template: |
| 741 r"Try block should be followed by 'on', 'catch', or 'finally' block.", | 764 r"Try block should be followed by 'on', 'catch', or 'finally' block.", |
| 742 tip: r"Did you forget to add a 'finally' block?", | 765 tip: r"Did you forget to add a 'finally' block?", |
| 743 dart2jsCode: "FASTA_IGNORED", | 766 dart2jsCode: "FASTA_IGNORED", |
| 744 format: _formatOnlyTry); | 767 format: _formatOnlyTry); |
| 745 | 768 |
| 746 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); | 769 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); |
| 747 | 770 |
| 748 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 771 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 749 FastaMessage _formatOnlyTry(Uri uri, int charOffset) { | 772 FastaMessage _formatOnlyTry(Uri uri, int charOffset) { |
| 750 return new FastaMessage(uri, charOffset, codeOnlyTry, | 773 return new FastaMessage(uri, charOffset, codeOnlyTry, |
| 751 message: | 774 message: |
| 752 "Try block should be followed by 'on', 'catch', or 'finally' block.", | 775 "Try block should be followed by 'on', 'catch', or 'finally' block.", |
| 753 tip: "Did you forget to add a 'finally' block?", | 776 tip: "Did you forget to add a 'finally' block?", |
| 754 arguments: {}); | 777 arguments: {}); |
| 755 } | 778 } |
| 756 | 779 |
| 757 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 780 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 758 const FastaCode< | 781 const FastaCode< |
| 759 _InvalidInlineFunctionType> codeInvalidInlineFunctionType = const FastaCode< | 782 _InvalidInlineFunctionType> codeInvalidInlineFunctionType = const FastaCode< |
| 760 _InvalidInlineFunctionType>( | 783 _InvalidInlineFunctionType>("InvalidInlineFunctionType", |
| 761 template: r"Invalid inline function type.", | 784 template: r"Invalid inline function type.", |
| 762 tip: | 785 tip: |
| 763 r"Try changing the inline function type (as in 'int f()') to a prefixed
function type using the `Function` keyword (as in 'int Function() f').", | 786 r"Try changing the inline function type (as in 'int f()') to a prefixed
function type using the `Function` keyword (as in 'int Function() f').", |
| 764 dart2jsCode: "INVALID_INLINE_FUNCTION_TYPE", | 787 dart2jsCode: "INVALID_INLINE_FUNCTION_TYPE", |
| 765 format: _formatInvalidInlineFunctionType); | 788 format: _formatInvalidInlineFunctionType); |
| 766 | 789 |
| 767 typedef FastaMessage _InvalidInlineFunctionType(Uri uri, int charOffset); | 790 typedef FastaMessage _InvalidInlineFunctionType(Uri uri, int charOffset); |
| 768 | 791 |
| 769 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 792 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 770 FastaMessage _formatInvalidInlineFunctionType(Uri uri, int charOffset) { | 793 FastaMessage _formatInvalidInlineFunctionType(Uri uri, int charOffset) { |
| 771 return new FastaMessage(uri, charOffset, codeInvalidInlineFunctionType, | 794 return new FastaMessage(uri, charOffset, codeInvalidInlineFunctionType, |
| 772 message: "Invalid inline function type.", | 795 message: "Invalid inline function type.", |
| 773 tip: | 796 tip: |
| 774 "Try changing the inline function type (as in 'int f()') to a prefixed
function type using the `Function` keyword (as in 'int Function() f').", | 797 "Try changing the inline function type (as in 'int f()') to a prefixed
function type using the `Function` keyword (as in 'int Function() f').", |
| 775 arguments: {}); | 798 arguments: {}); |
| 776 } | 799 } |
| 777 | 800 |
| 778 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 801 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 779 const FastaCode<_ExpectedBody> codeExpectedBody = | 802 const FastaCode<_ExpectedBody> codeExpectedBody = |
| 780 const FastaCode<_ExpectedBody>( | 803 const FastaCode<_ExpectedBody>("ExpectedBody", |
| 781 template: r"Expected a function body or '=>'.", | 804 template: r"Expected a function body or '=>'.", |
| 782 tip: r"Try adding {}.", | 805 tip: r"Try adding {}.", |
| 783 dart2jsCode: "BODY_EXPECTED", | 806 dart2jsCode: "BODY_EXPECTED", |
| 784 format: _formatExpectedBody); | 807 format: _formatExpectedBody); |
| 785 | 808 |
| 786 typedef FastaMessage _ExpectedBody(Uri uri, int charOffset); | 809 typedef FastaMessage _ExpectedBody(Uri uri, int charOffset); |
| 787 | 810 |
| 788 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 811 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 789 FastaMessage _formatExpectedBody(Uri uri, int charOffset) { | 812 FastaMessage _formatExpectedBody(Uri uri, int charOffset) { |
| 790 return new FastaMessage(uri, charOffset, codeExpectedBody, | 813 return new FastaMessage(uri, charOffset, codeExpectedBody, |
| 791 message: "Expected a function body or '=>'.", | 814 message: "Expected a function body or '=>'.", |
| 792 tip: "Try adding {}.", | 815 tip: "Try adding {}.", |
| 793 arguments: {}); | 816 arguments: {}); |
| 794 } | 817 } |
| 795 | 818 |
| 796 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 819 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 820 const FastaCode<_TypeRequired> codeTypeRequired = |
| 821 const FastaCode<_TypeRequired>("TypeRequired", |
| 822 template: r"A type or modifier is required here.", |
| 823 tip: r"Try adding a type, 'var', 'const', or 'final'.", |
| 824 format: _formatTypeRequired); |
| 825 |
| 826 typedef FastaMessage _TypeRequired(Uri uri, int charOffset); |
| 827 |
| 828 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 829 FastaMessage _formatTypeRequired(Uri uri, int charOffset) { |
| 830 return new FastaMessage(uri, charOffset, codeTypeRequired, |
| 831 message: "A type or modifier is required here.", |
| 832 tip: "Try adding a type, 'var', 'const', or 'final'.", |
| 833 arguments: {}); |
| 834 } |
| 835 |
| 836 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 797 const FastaCode<_InvalidVoid> codeInvalidVoid = const FastaCode<_InvalidVoid>( | 837 const FastaCode<_InvalidVoid> codeInvalidVoid = const FastaCode<_InvalidVoid>( |
| 838 "InvalidVoid", |
| 798 template: r"Type 'void' can't be used here because it isn't a return type.", | 839 template: r"Type 'void' can't be used here because it isn't a return type.", |
| 799 tip: | 840 tip: |
| 800 r"Try removing 'void' keyword or replace it with 'var', 'final', or a ty
pe.", | 841 r"Try removing 'void' keyword or replace it with 'var', 'final', or a ty
pe.", |
| 801 dart2jsCode: "VOID_NOT_ALLOWED", | 842 dart2jsCode: "VOID_NOT_ALLOWED", |
| 802 format: _formatInvalidVoid); | 843 format: _formatInvalidVoid); |
| 803 | 844 |
| 804 typedef FastaMessage _InvalidVoid(Uri uri, int charOffset); | 845 typedef FastaMessage _InvalidVoid(Uri uri, int charOffset); |
| 805 | 846 |
| 806 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 847 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 807 FastaMessage _formatInvalidVoid(Uri uri, int charOffset) { | 848 FastaMessage _formatInvalidVoid(Uri uri, int charOffset) { |
| 808 return new FastaMessage(uri, charOffset, codeInvalidVoid, | 849 return new FastaMessage(uri, charOffset, codeInvalidVoid, |
| 809 message: "Type 'void' can't be used here because it isn't a return type.", | 850 message: "Type 'void' can't be used here because it isn't a return type.", |
| 810 tip: | 851 tip: |
| 811 "Try removing 'void' keyword or replace it with 'var', 'final', or a t
ype.", | 852 "Try removing 'void' keyword or replace it with 'var', 'final', or a t
ype.", |
| 812 arguments: {}); | 853 arguments: {}); |
| 813 } | 854 } |
| 814 | 855 |
| 815 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 856 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 816 const FastaCode<_BuiltInIdentifierAsType> codeBuiltInIdentifierAsType = | 857 const FastaCode<_BuiltInIdentifierAsType> codeBuiltInIdentifierAsType = |
| 817 const FastaCode<_BuiltInIdentifierAsType>( | 858 const FastaCode<_BuiltInIdentifierAsType>("BuiltInIdentifierAsType", |
| 818 template: r"Can't use '#lexeme' as a type.", | 859 template: r"Can't use '#lexeme' as a type.", |
| 819 dart2jsCode: "GENERIC", | 860 dart2jsCode: "EXTRANEOUS_MODIFIER", |
| 820 format: _formatBuiltInIdentifierAsType); | 861 format: _formatBuiltInIdentifierAsType); |
| 821 | 862 |
| 822 typedef FastaMessage _BuiltInIdentifierAsType( | 863 typedef FastaMessage _BuiltInIdentifierAsType( |
| 823 Uri uri, int charOffset, Token token); | 864 Uri uri, int charOffset, Token token); |
| 824 | 865 |
| 825 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 866 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 826 FastaMessage _formatBuiltInIdentifierAsType( | 867 FastaMessage _formatBuiltInIdentifierAsType( |
| 827 Uri uri, int charOffset, Token token) { | 868 Uri uri, int charOffset, Token token) { |
| 828 String lexeme = token.lexeme; | 869 String lexeme = token.lexeme; |
| 829 return new FastaMessage(uri, charOffset, codeBuiltInIdentifierAsType, | 870 return new FastaMessage(uri, charOffset, codeBuiltInIdentifierAsType, |
| 830 message: "Can't use '$lexeme' as a type.", arguments: {'token': token}); | 871 message: "Can't use '$lexeme' as a type.", arguments: {'token': token}); |
| 831 } | 872 } |
| 832 | 873 |
| 833 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 874 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 834 const FastaCode<_GeneratorReturnsValue> codeGeneratorReturnsValue = | 875 const FastaCode<_GeneratorReturnsValue> codeGeneratorReturnsValue = |
| 835 const FastaCode<_GeneratorReturnsValue>( | 876 const FastaCode<_GeneratorReturnsValue>("GeneratorReturnsValue", |
| 836 template: r"'sync*' and 'async*' can't return a value.", | 877 template: r"'sync*' and 'async*' can't return a value.", |
| 837 dart2jsCode: "FASTA_IGNORED", | 878 dart2jsCode: "FASTA_IGNORED", |
| 838 format: _formatGeneratorReturnsValue); | 879 format: _formatGeneratorReturnsValue); |
| 839 | 880 |
| 840 typedef FastaMessage _GeneratorReturnsValue(Uri uri, int charOffset); | 881 typedef FastaMessage _GeneratorReturnsValue(Uri uri, int charOffset); |
| 841 | 882 |
| 842 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 883 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 843 FastaMessage _formatGeneratorReturnsValue(Uri uri, int charOffset) { | 884 FastaMessage _formatGeneratorReturnsValue(Uri uri, int charOffset) { |
| 844 return new FastaMessage(uri, charOffset, codeGeneratorReturnsValue, | 885 return new FastaMessage(uri, charOffset, codeGeneratorReturnsValue, |
| 845 message: "'sync*' and 'async*' can't return a value.", arguments: {}); | 886 message: "'sync*' and 'async*' can't return a value.", arguments: {}); |
| 846 } | 887 } |
| 847 | 888 |
| 848 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 889 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 849 const FastaCode<_BuiltInIdentifierInDeclaration> | 890 const FastaCode<_BuiltInIdentifierInDeclaration> |
| 850 codeBuiltInIdentifierInDeclaration = | 891 codeBuiltInIdentifierInDeclaration = |
| 851 const FastaCode<_BuiltInIdentifierInDeclaration>( | 892 const FastaCode<_BuiltInIdentifierInDeclaration>( |
| 893 "BuiltInIdentifierInDeclaration", |
| 852 template: r"Can't use '#lexeme' as a name here.", | 894 template: r"Can't use '#lexeme' as a name here.", |
| 853 dart2jsCode: "GENERIC", | 895 dart2jsCode: "GENERIC", |
| 854 format: _formatBuiltInIdentifierInDeclaration); | 896 format: _formatBuiltInIdentifierInDeclaration); |
| 855 | 897 |
| 856 typedef FastaMessage _BuiltInIdentifierInDeclaration( | 898 typedef FastaMessage _BuiltInIdentifierInDeclaration( |
| 857 Uri uri, int charOffset, Token token); | 899 Uri uri, int charOffset, Token token); |
| 858 | 900 |
| 859 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 901 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 860 FastaMessage _formatBuiltInIdentifierInDeclaration( | 902 FastaMessage _formatBuiltInIdentifierInDeclaration( |
| 861 Uri uri, int charOffset, Token token) { | 903 Uri uri, int charOffset, Token token) { |
| 862 String lexeme = token.lexeme; | 904 String lexeme = token.lexeme; |
| 863 return new FastaMessage(uri, charOffset, codeBuiltInIdentifierInDeclaration, | 905 return new FastaMessage(uri, charOffset, codeBuiltInIdentifierInDeclaration, |
| 864 message: "Can't use '$lexeme' as a name here.", | 906 message: "Can't use '$lexeme' as a name here.", |
| 865 arguments: {'token': token}); | 907 arguments: {'token': token}); |
| 866 } | 908 } |
| 867 | 909 |
| 868 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 910 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 869 const FastaCode<_NonAsciiIdentifier> codeNonAsciiIdentifier = const FastaCode< | 911 const FastaCode<_NonAsciiIdentifier> codeNonAsciiIdentifier = const FastaCode< |
| 870 _NonAsciiIdentifier>( | 912 _NonAsciiIdentifier>("NonAsciiIdentifier", |
| 871 template: | 913 template: |
| 872 r"The non-ASCII character '#character' (#unicode) can't be used in ident
ifiers, only in strings and comments.", | 914 r"The non-ASCII character '#character' (#unicode) can't be used in ident
ifiers, only in strings and comments.", |
| 873 tip: | 915 tip: |
| 874 r"Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a
dollar sign).", | 916 r"Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a
dollar sign).", |
| 875 analyzerCode: "ILLEGAL_CHARACTER", | 917 analyzerCode: "ILLEGAL_CHARACTER", |
| 876 dart2jsCode: "BAD_INPUT_CHARACTER", | 918 dart2jsCode: "BAD_INPUT_CHARACTER", |
| 877 format: _formatNonAsciiIdentifier); | 919 format: _formatNonAsciiIdentifier); |
| 878 | 920 |
| 879 typedef FastaMessage _NonAsciiIdentifier( | 921 typedef FastaMessage _NonAsciiIdentifier( |
| 880 Uri uri, int charOffset, String character, int codePoint); | 922 Uri uri, int charOffset, String character, int codePoint); |
| 881 | 923 |
| 882 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 924 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 883 FastaMessage _formatNonAsciiIdentifier( | 925 FastaMessage _formatNonAsciiIdentifier( |
| 884 Uri uri, int charOffset, String character, int codePoint) { | 926 Uri uri, int charOffset, String character, int codePoint) { |
| 885 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 927 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 886 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, | 928 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, |
| 887 message: | 929 message: |
| 888 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", | 930 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", |
| 889 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", | 931 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", |
| 890 arguments: {'character': character, 'codePoint': codePoint}); | 932 arguments: {'character': character, 'codePoint': codePoint}); |
| 891 } | 933 } |
| 892 | |
| 893 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
| 894 const FastaCode<_ExtraneousModifierReplace> codeExtraneousModifierReplace = | |
| 895 const FastaCode<_ExtraneousModifierReplace>( | |
| 896 template: r"Can't have modifier '#lexeme' here.", | |
| 897 tip: | |
| 898 r"Try replacing modifier '#lexeme' with 'var', 'final', or a type.", | |
| 899 dart2jsCode: "EXTRANEOUS_MODIFIER_REPLACE", | |
| 900 format: _formatExtraneousModifierReplace); | |
| 901 | |
| 902 typedef FastaMessage _ExtraneousModifierReplace( | |
| 903 Uri uri, int charOffset, Token token); | |
| 904 | |
| 905 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
| 906 FastaMessage _formatExtraneousModifierReplace( | |
| 907 Uri uri, int charOffset, Token token) { | |
| 908 String lexeme = token.lexeme; | |
| 909 return new FastaMessage(uri, charOffset, codeExtraneousModifierReplace, | |
| 910 message: "Can't have modifier '$lexeme' here.", | |
| 911 tip: "Try replacing modifier '$lexeme' with 'var', 'final', or a type.", | |
| 912 arguments: {'token': token}); | |
| 913 } | |
| OLD | NEW |