| 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>("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: "*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<_FunctionTypeDefaultValue> codeFunctionTypeDefaultValue = | 32 const FastaCode<_FunctionTypeDefaultValue> codeFunctionTypeDefaultValue = |
| 33 const FastaCode<_FunctionTypeDefaultValue>("FunctionTypeDefaultValue", | 33 const FastaCode<_FunctionTypeDefaultValue>("FunctionTypeDefaultValue", |
| 34 template: r"Can't have a default value in a function type.", | 34 template: r"Can't have a default value in a function type.", |
| 35 dart2jsCode: "FASTA_IGNORED", | 35 dart2jsCode: "*ignored*", |
| 36 format: _formatFunctionTypeDefaultValue); | 36 format: _formatFunctionTypeDefaultValue); |
| 37 | 37 |
| 38 typedef FastaMessage _FunctionTypeDefaultValue(Uri uri, int charOffset); | 38 typedef FastaMessage _FunctionTypeDefaultValue(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 _formatFunctionTypeDefaultValue(Uri uri, int charOffset) { | 41 FastaMessage _formatFunctionTypeDefaultValue(Uri uri, int charOffset) { |
| 42 return new FastaMessage(uri, charOffset, codeFunctionTypeDefaultValue, | 42 return new FastaMessage(uri, charOffset, codeFunctionTypeDefaultValue, |
| 43 message: "Can't have a default value in a function type.", arguments: {}); | 43 message: "Can't have a default value in a function type.", 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<_StackOverflow> codeStackOverflow = | 47 const FastaCode<_StackOverflow> codeStackOverflow = |
| 48 const FastaCode<_StackOverflow>("StackOverflow", | 48 const FastaCode<_StackOverflow>("StackOverflow", |
| 49 template: r"Stack overflow.", | 49 template: r"Stack overflow.", |
| 50 dart2jsCode: "GENERIC", | 50 dart2jsCode: "GENERIC", |
| 51 format: _formatStackOverflow); | 51 format: _formatStackOverflow); |
| 52 | 52 |
| 53 typedef FastaMessage _StackOverflow(Uri uri, int charOffset); | 53 typedef FastaMessage _StackOverflow(Uri uri, int charOffset); |
| 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 _formatStackOverflow(Uri uri, int charOffset) { | 56 FastaMessage _formatStackOverflow(Uri uri, int charOffset) { |
| 57 return new FastaMessage(uri, charOffset, codeStackOverflow, | 57 return new FastaMessage(uri, charOffset, codeStackOverflow, |
| 58 message: "Stack overflow.", arguments: {}); | 58 message: "Stack overflow.", arguments: {}); |
| 59 } | 59 } |
| 60 | 60 |
| 61 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 61 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 62 const FastaCode<_AssertExtraneousArgument> codeAssertExtraneousArgument = | 62 const FastaCode<_AssertExtraneousArgument> codeAssertExtraneousArgument = |
| 63 const FastaCode<_AssertExtraneousArgument>("AssertExtraneousArgument", | 63 const FastaCode<_AssertExtraneousArgument>("AssertExtraneousArgument", |
| 64 template: r"`assert` can't have more than two arguments.", | 64 template: r"`assert` can't have more than two arguments.", |
| 65 dart2jsCode: "FASTA_FATAL", | 65 dart2jsCode: "*fatal*", |
| 66 format: _formatAssertExtraneousArgument); | 66 format: _formatAssertExtraneousArgument); |
| 67 | 67 |
| 68 typedef FastaMessage _AssertExtraneousArgument(Uri uri, int charOffset); | 68 typedef FastaMessage _AssertExtraneousArgument(Uri uri, int charOffset); |
| 69 | 69 |
| 70 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 70 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 71 FastaMessage _formatAssertExtraneousArgument(Uri uri, int charOffset) { | 71 FastaMessage _formatAssertExtraneousArgument(Uri uri, int charOffset) { |
| 72 return new FastaMessage(uri, charOffset, codeAssertExtraneousArgument, | 72 return new FastaMessage(uri, charOffset, codeAssertExtraneousArgument, |
| 73 message: "`assert` can't have more than two arguments.", arguments: {}); | 73 message: "`assert` can't have more than two arguments.", arguments: {}); |
| 74 } | 74 } |
| 75 | 75 |
| 76 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 76 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 77 const FastaCode<_UnexpectedToken> codeUnexpectedToken = | 77 const FastaCode<_UnexpectedToken> codeUnexpectedToken = |
| 78 const FastaCode<_UnexpectedToken>("UnexpectedToken", | 78 const FastaCode<_UnexpectedToken>("UnexpectedToken", |
| 79 template: r"Unexpected token '#lexeme'.", | 79 template: r"Unexpected token '#lexeme'.", |
| 80 dart2jsCode: "FASTA_FATAL", | 80 dart2jsCode: "*fatal*", |
| 81 format: _formatUnexpectedToken); | 81 format: _formatUnexpectedToken); |
| 82 | 82 |
| 83 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); | 83 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); |
| 84 | 84 |
| 85 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 85 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 86 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { | 86 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { |
| 87 String lexeme = token.lexeme; | 87 String lexeme = token.lexeme; |
| 88 return new FastaMessage(uri, charOffset, codeUnexpectedToken, | 88 return new FastaMessage(uri, charOffset, codeUnexpectedToken, |
| 89 message: "Unexpected token '$lexeme'.", arguments: {'token': token}); | 89 message: "Unexpected token '$lexeme'.", arguments: {'token': token}); |
| 90 } | 90 } |
| 91 | 91 |
| 92 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 92 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 93 const FastaCode<_AwaitAsIdentifier> codeAwaitAsIdentifier = const FastaCode< | 93 const FastaCode<_AwaitAsIdentifier> codeAwaitAsIdentifier = const FastaCode< |
| 94 _AwaitAsIdentifier>("AwaitAsIdentifier", | 94 _AwaitAsIdentifier>("AwaitAsIdentifier", |
| 95 template: | 95 template: |
| 96 r"'await' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", | 96 r"'await' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", |
| 97 dart2jsCode: "FASTA_IGNORED", | 97 dart2jsCode: "*ignored*", |
| 98 format: _formatAwaitAsIdentifier); | 98 format: _formatAwaitAsIdentifier); |
| 99 | 99 |
| 100 typedef FastaMessage _AwaitAsIdentifier(Uri uri, int charOffset); | 100 typedef FastaMessage _AwaitAsIdentifier(Uri uri, int charOffset); |
| 101 | 101 |
| 102 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 102 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 103 FastaMessage _formatAwaitAsIdentifier(Uri uri, int charOffset) { | 103 FastaMessage _formatAwaitAsIdentifier(Uri uri, int charOffset) { |
| 104 return new FastaMessage(uri, charOffset, codeAwaitAsIdentifier, | 104 return new FastaMessage(uri, charOffset, codeAwaitAsIdentifier, |
| 105 message: | 105 message: |
| 106 "'await' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 106 "'await' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
| 107 arguments: {}); | 107 arguments: {}); |
| 108 } | 108 } |
| 109 | 109 |
| 110 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 110 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 111 const FastaCode<_FactoryNotSync> codeFactoryNotSync = | 111 const FastaCode<_FactoryNotSync> codeFactoryNotSync = |
| 112 const FastaCode<_FactoryNotSync>("FactoryNotSync", | 112 const FastaCode<_FactoryNotSync>("FactoryNotSync", |
| 113 template: r"Factories can't use 'async', 'async*', or 'sync*'.", | 113 template: r"Factories can't use 'async', 'async*', or 'sync*'.", |
| 114 dart2jsCode: "FASTA_IGNORED", | 114 dart2jsCode: "*ignored*", |
| 115 format: _formatFactoryNotSync); | 115 format: _formatFactoryNotSync); |
| 116 | 116 |
| 117 typedef FastaMessage _FactoryNotSync(Uri uri, int charOffset); | 117 typedef FastaMessage _FactoryNotSync(Uri uri, int charOffset); |
| 118 | 118 |
| 119 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 119 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 120 FastaMessage _formatFactoryNotSync(Uri uri, int charOffset) { | 120 FastaMessage _formatFactoryNotSync(Uri uri, int charOffset) { |
| 121 return new FastaMessage(uri, charOffset, codeFactoryNotSync, | 121 return new FastaMessage(uri, charOffset, codeFactoryNotSync, |
| 122 message: "Factories can't use 'async', 'async*', or 'sync*'.", | 122 message: "Factories can't use 'async', 'async*', or 'sync*'.", |
| 123 arguments: {}); | 123 arguments: {}); |
| 124 } | 124 } |
| 125 | 125 |
| 126 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 126 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 127 const FastaCode<_SuperNullAware> codeSuperNullAware = | 127 const FastaCode<_SuperNullAware> codeSuperNullAware = |
| 128 const FastaCode<_SuperNullAware>("SuperNullAware", | 128 const FastaCode<_SuperNullAware>("SuperNullAware", |
| 129 template: r"'super' can't be null.", | 129 template: r"'super' can't be null.", |
| 130 tip: r"Try replacing '?.' with '.'", | 130 tip: r"Try replacing '?.' with '.'", |
| 131 dart2jsCode: "FASTA_IGNORED", | 131 dart2jsCode: "*ignored*", |
| 132 format: _formatSuperNullAware); | 132 format: _formatSuperNullAware); |
| 133 | 133 |
| 134 typedef FastaMessage _SuperNullAware(Uri uri, int charOffset); | 134 typedef FastaMessage _SuperNullAware(Uri uri, int charOffset); |
| 135 | 135 |
| 136 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 136 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 137 FastaMessage _formatSuperNullAware(Uri uri, int charOffset) { | 137 FastaMessage _formatSuperNullAware(Uri uri, int charOffset) { |
| 138 return new FastaMessage(uri, charOffset, codeSuperNullAware, | 138 return new FastaMessage(uri, charOffset, codeSuperNullAware, |
| 139 message: "'super' can't be null.", | 139 message: "'super' can't be null.", |
| 140 tip: "Try replacing '?.' with '.'", | 140 tip: "Try replacing '?.' with '.'", |
| 141 arguments: {}); | 141 arguments: {}); |
| 142 } | 142 } |
| 143 | 143 |
| 144 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 144 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 145 const FastaCode<_PrivateNamedParameter> codePrivateNamedParameter = | 145 const FastaCode<_PrivateNamedParameter> codePrivateNamedParameter = |
| 146 const FastaCode<_PrivateNamedParameter>("PrivateNamedParameter", | 146 const FastaCode<_PrivateNamedParameter>("PrivateNamedParameter", |
| 147 template: r"An optional named parameter can't start with '_'.", | 147 template: r"An optional named parameter can't start with '_'.", |
| 148 dart2jsCode: "FASTA_IGNORED", | 148 dart2jsCode: "*ignored*", |
| 149 format: _formatPrivateNamedParameter); | 149 format: _formatPrivateNamedParameter); |
| 150 | 150 |
| 151 typedef FastaMessage _PrivateNamedParameter(Uri uri, int charOffset); | 151 typedef FastaMessage _PrivateNamedParameter(Uri uri, int charOffset); |
| 152 | 152 |
| 153 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 153 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 154 FastaMessage _formatPrivateNamedParameter(Uri uri, int charOffset) { | 154 FastaMessage _formatPrivateNamedParameter(Uri uri, int charOffset) { |
| 155 return new FastaMessage(uri, charOffset, codePrivateNamedParameter, | 155 return new FastaMessage(uri, charOffset, codePrivateNamedParameter, |
| 156 message: "An optional named parameter can't start with '_'.", | 156 message: "An optional named parameter can't start with '_'.", |
| 157 arguments: {}); | 157 arguments: {}); |
| 158 } | 158 } |
| 159 | 159 |
| 160 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 160 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 161 const FastaCode<_YieldNotGenerator> codeYieldNotGenerator = | 161 const FastaCode<_YieldNotGenerator> codeYieldNotGenerator = |
| 162 const FastaCode<_YieldNotGenerator>("YieldNotGenerator", | 162 const FastaCode<_YieldNotGenerator>("YieldNotGenerator", |
| 163 template: r"'yield' can only be used in 'sync*' or 'async*' methods.", | 163 template: r"'yield' can only be used in 'sync*' or 'async*' methods.", |
| 164 dart2jsCode: "FASTA_IGNORED", | 164 dart2jsCode: "*ignored*", |
| 165 format: _formatYieldNotGenerator); | 165 format: _formatYieldNotGenerator); |
| 166 | 166 |
| 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<_SetterNotSync> codeSetterNotSync = | 177 const FastaCode<_SetterNotSync> codeSetterNotSync = |
| 178 const FastaCode<_SetterNotSync>("SetterNotSync", | 178 const FastaCode<_SetterNotSync>("SetterNotSync", |
| 179 template: r"Setters can't use 'async', 'async*', or 'sync*'.", | 179 template: r"Setters can't use 'async', 'async*', or 'sync*'.", |
| 180 dart2jsCode: "FASTA_IGNORED", | 180 dart2jsCode: "*ignored*", |
| 181 format: _formatSetterNotSync); | 181 format: _formatSetterNotSync); |
| 182 | 182 |
| 183 typedef FastaMessage _SetterNotSync(Uri uri, int charOffset); | 183 typedef FastaMessage _SetterNotSync(Uri uri, int charOffset); |
| 184 | 184 |
| 185 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 185 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 186 FastaMessage _formatSetterNotSync(Uri uri, int charOffset) { | 186 FastaMessage _formatSetterNotSync(Uri uri, int charOffset) { |
| 187 return new FastaMessage(uri, charOffset, codeSetterNotSync, | 187 return new FastaMessage(uri, charOffset, codeSetterNotSync, |
| 188 message: "Setters can't use 'async', 'async*', or 'sync*'.", | 188 message: "Setters can't use 'async', 'async*', or 'sync*'.", |
| 189 arguments: {}); | 189 arguments: {}); |
| 190 } | 190 } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 arguments: {}); | 349 arguments: {}); |
| 350 } | 350 } |
| 351 | 351 |
| 352 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 352 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 353 const FastaCode<_FinalFieldWithoutInitializer> | 353 const FastaCode<_FinalFieldWithoutInitializer> |
| 354 codeFinalFieldWithoutInitializer = | 354 codeFinalFieldWithoutInitializer = |
| 355 const FastaCode<_FinalFieldWithoutInitializer>( | 355 const FastaCode<_FinalFieldWithoutInitializer>( |
| 356 "FinalFieldWithoutInitializer", | 356 "FinalFieldWithoutInitializer", |
| 357 template: r"A 'final' field must be initialized.", | 357 template: r"A 'final' field must be initialized.", |
| 358 tip: r"Try adding '= <initializer>'.", | 358 tip: r"Try adding '= <initializer>'.", |
| 359 dart2jsCode: "FASTA_IGNORED", | 359 dart2jsCode: "*ignored*", |
| 360 format: _formatFinalFieldWithoutInitializer); | 360 format: _formatFinalFieldWithoutInitializer); |
| 361 | 361 |
| 362 typedef FastaMessage _FinalFieldWithoutInitializer(Uri uri, int charOffset); | 362 typedef FastaMessage _FinalFieldWithoutInitializer(Uri uri, int charOffset); |
| 363 | 363 |
| 364 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 364 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 365 FastaMessage _formatFinalFieldWithoutInitializer(Uri uri, int charOffset) { | 365 FastaMessage _formatFinalFieldWithoutInitializer(Uri uri, int charOffset) { |
| 366 return new FastaMessage(uri, charOffset, codeFinalFieldWithoutInitializer, | 366 return new FastaMessage(uri, charOffset, codeFinalFieldWithoutInitializer, |
| 367 message: "A 'final' field must be initialized.", | 367 message: "A 'final' field must be initialized.", |
| 368 tip: "Try adding '= <initializer>'.", | 368 tip: "Try adding '= <initializer>'.", |
| 369 arguments: {}); | 369 arguments: {}); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 420 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 421 FastaMessage _formatUnterminatedString(Uri uri, int charOffset, String string) { | 421 FastaMessage _formatUnterminatedString(Uri uri, int charOffset, String string) { |
| 422 return new FastaMessage(uri, charOffset, codeUnterminatedString, | 422 return new FastaMessage(uri, charOffset, codeUnterminatedString, |
| 423 message: "String must end with $string.", arguments: {'string': string}); | 423 message: "String must end with $string.", arguments: {'string': string}); |
| 424 } | 424 } |
| 425 | 425 |
| 426 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 426 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 427 const FastaCode<_AwaitNotAsync> codeAwaitNotAsync = | 427 const FastaCode<_AwaitNotAsync> codeAwaitNotAsync = |
| 428 const FastaCode<_AwaitNotAsync>("AwaitNotAsync", | 428 const FastaCode<_AwaitNotAsync>("AwaitNotAsync", |
| 429 template: r"'await' can only be used in 'async' or 'async*' methods.", | 429 template: r"'await' can only be used in 'async' or 'async*' methods.", |
| 430 dart2jsCode: "FASTA_IGNORED", | 430 dart2jsCode: "*ignored*", |
| 431 format: _formatAwaitNotAsync); | 431 format: _formatAwaitNotAsync); |
| 432 | 432 |
| 433 typedef FastaMessage _AwaitNotAsync(Uri uri, int charOffset); | 433 typedef FastaMessage _AwaitNotAsync(Uri uri, int charOffset); |
| 434 | 434 |
| 435 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 435 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 436 FastaMessage _formatAwaitNotAsync(Uri uri, int charOffset) { | 436 FastaMessage _formatAwaitNotAsync(Uri uri, int charOffset) { |
| 437 return new FastaMessage(uri, charOffset, codeAwaitNotAsync, | 437 return new FastaMessage(uri, charOffset, codeAwaitNotAsync, |
| 438 message: "'await' can only be used in 'async' or 'async*' methods.", | 438 message: "'await' can only be used in 'async' or 'async*' methods.", |
| 439 arguments: {}); | 439 arguments: {}); |
| 440 } | 440 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 return new FastaMessage(uri, charOffset, codeUnsupportedPrefixPlus, | 506 return new FastaMessage(uri, charOffset, codeUnsupportedPrefixPlus, |
| 507 message: "'+' is not a prefix operator. ", | 507 message: "'+' is not a prefix operator. ", |
| 508 tip: "Try removing '+'.", | 508 tip: "Try removing '+'.", |
| 509 arguments: {}); | 509 arguments: {}); |
| 510 } | 510 } |
| 511 | 511 |
| 512 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 512 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 513 const FastaCode<_ExpectedString> codeExpectedString = | 513 const FastaCode<_ExpectedString> codeExpectedString = |
| 514 const FastaCode<_ExpectedString>("ExpectedString", | 514 const FastaCode<_ExpectedString>("ExpectedString", |
| 515 template: r"Expected a String, but got '#lexeme'.", | 515 template: r"Expected a String, but got '#lexeme'.", |
| 516 dart2jsCode: "FASTA_FATAL", | 516 dart2jsCode: "*fatal*", |
| 517 format: _formatExpectedString); | 517 format: _formatExpectedString); |
| 518 | 518 |
| 519 typedef FastaMessage _ExpectedString(Uri uri, int charOffset, Token token); | 519 typedef FastaMessage _ExpectedString(Uri uri, int charOffset, Token token); |
| 520 | 520 |
| 521 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 521 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 522 FastaMessage _formatExpectedString(Uri uri, int charOffset, Token token) { | 522 FastaMessage _formatExpectedString(Uri uri, int charOffset, Token token) { |
| 523 String lexeme = token.lexeme; | 523 String lexeme = token.lexeme; |
| 524 return new FastaMessage(uri, charOffset, codeExpectedString, | 524 return new FastaMessage(uri, charOffset, codeExpectedString, |
| 525 message: "Expected a String, but got '$lexeme'.", | 525 message: "Expected a String, but got '$lexeme'.", |
| 526 arguments: {'token': token}); | 526 arguments: {'token': token}); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 541 return new FastaMessage(uri, charOffset, codeTypeAfterVar, | 541 return new FastaMessage(uri, charOffset, codeTypeAfterVar, |
| 542 message: "Can't have both a type and 'var'.", | 542 message: "Can't have both a type and 'var'.", |
| 543 tip: "Try removing 'var.'", | 543 tip: "Try removing 'var.'", |
| 544 arguments: {}); | 544 arguments: {}); |
| 545 } | 545 } |
| 546 | 546 |
| 547 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 547 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 548 const FastaCode<_AbstractNotSync> codeAbstractNotSync = | 548 const FastaCode<_AbstractNotSync> codeAbstractNotSync = |
| 549 const FastaCode<_AbstractNotSync>("AbstractNotSync", | 549 const FastaCode<_AbstractNotSync>("AbstractNotSync", |
| 550 template: r"Abstract methods can't use 'async', 'async*', or 'sync*'.", | 550 template: r"Abstract methods can't use 'async', 'async*', or 'sync*'.", |
| 551 dart2jsCode: "FASTA_IGNORED", | 551 dart2jsCode: "*ignored*", |
| 552 format: _formatAbstractNotSync); | 552 format: _formatAbstractNotSync); |
| 553 | 553 |
| 554 typedef FastaMessage _AbstractNotSync(Uri uri, int charOffset); | 554 typedef FastaMessage _AbstractNotSync(Uri uri, int charOffset); |
| 555 | 555 |
| 556 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 556 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 557 FastaMessage _formatAbstractNotSync(Uri uri, int charOffset) { | 557 FastaMessage _formatAbstractNotSync(Uri uri, int charOffset) { |
| 558 return new FastaMessage(uri, charOffset, codeAbstractNotSync, | 558 return new FastaMessage(uri, charOffset, codeAbstractNotSync, |
| 559 message: "Abstract methods can't use 'async', 'async*', or 'sync*'.", | 559 message: "Abstract methods can't use 'async', 'async*', or 'sync*'.", |
| 560 arguments: {}); | 560 arguments: {}); |
| 561 } | 561 } |
| 562 | 562 |
| 563 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 563 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 564 const FastaCode<_ExpectedDeclaration> codeExpectedDeclaration = | 564 const FastaCode<_ExpectedDeclaration> codeExpectedDeclaration = |
| 565 const FastaCode<_ExpectedDeclaration>("ExpectedDeclaration", | 565 const FastaCode<_ExpectedDeclaration>("ExpectedDeclaration", |
| 566 template: r"Expected a declaration, but got '#lexeme'.", | 566 template: r"Expected a declaration, but got '#lexeme'.", |
| 567 dart2jsCode: "FASTA_FATAL", | 567 dart2jsCode: "*fatal*", |
| 568 format: _formatExpectedDeclaration); | 568 format: _formatExpectedDeclaration); |
| 569 | 569 |
| 570 typedef FastaMessage _ExpectedDeclaration(Uri uri, int charOffset, Token token); | 570 typedef FastaMessage _ExpectedDeclaration(Uri uri, int charOffset, Token token); |
| 571 | 571 |
| 572 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 572 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 573 FastaMessage _formatExpectedDeclaration(Uri uri, int charOffset, Token token) { | 573 FastaMessage _formatExpectedDeclaration(Uri uri, int charOffset, Token token) { |
| 574 String lexeme = token.lexeme; | 574 String lexeme = token.lexeme; |
| 575 return new FastaMessage(uri, charOffset, codeExpectedDeclaration, | 575 return new FastaMessage(uri, charOffset, codeExpectedDeclaration, |
| 576 message: "Expected a declaration, but got '$lexeme'.", | 576 message: "Expected a declaration, but got '$lexeme'.", |
| 577 arguments: {'token': token}); | 577 arguments: {'token': token}); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 message: "Invalid modifier 'sync'.", | 634 message: "Invalid modifier 'sync'.", |
| 635 tip: "Try replacing 'sync' with 'sync*'.", | 635 tip: "Try replacing 'sync' with 'sync*'.", |
| 636 arguments: {}); | 636 arguments: {}); |
| 637 } | 637 } |
| 638 | 638 |
| 639 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 639 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 640 const FastaCode<_GetterWithFormals> codeGetterWithFormals = | 640 const FastaCode<_GetterWithFormals> codeGetterWithFormals = |
| 641 const FastaCode<_GetterWithFormals>("GetterWithFormals", | 641 const FastaCode<_GetterWithFormals>("GetterWithFormals", |
| 642 template: r"A getter can't have formal parameters.", | 642 template: r"A getter can't have formal parameters.", |
| 643 tip: r"Try removing '(...)'.", | 643 tip: r"Try removing '(...)'.", |
| 644 dart2jsCode: "FASTA_IGNORED", | 644 dart2jsCode: "*ignored*", |
| 645 format: _formatGetterWithFormals); | 645 format: _formatGetterWithFormals); |
| 646 | 646 |
| 647 typedef FastaMessage _GetterWithFormals(Uri uri, int charOffset); | 647 typedef FastaMessage _GetterWithFormals(Uri uri, int charOffset); |
| 648 | 648 |
| 649 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 649 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 650 FastaMessage _formatGetterWithFormals(Uri uri, int charOffset) { | 650 FastaMessage _formatGetterWithFormals(Uri uri, int charOffset) { |
| 651 return new FastaMessage(uri, charOffset, codeGetterWithFormals, | 651 return new FastaMessage(uri, charOffset, codeGetterWithFormals, |
| 652 message: "A getter can't have formal parameters.", | 652 message: "A getter can't have formal parameters.", |
| 653 tip: "Try removing '(...)'.", | 653 tip: "Try removing '(...)'.", |
| 654 arguments: {}); | 654 arguments: {}); |
| 655 } | 655 } |
| 656 | 656 |
| 657 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 657 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 658 const FastaCode<_NoFormals> codeNoFormals = const FastaCode<_NoFormals>( | 658 const FastaCode<_NoFormals> codeNoFormals = const FastaCode<_NoFormals>( |
| 659 "NoFormals", | 659 "NoFormals", |
| 660 template: r"A function should have formal parameters.", | 660 template: r"A function should have formal parameters.", |
| 661 tip: | 661 tip: |
| 662 r"Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to decl
are a getter.", | 662 r"Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to decl
are a getter.", |
| 663 dart2jsCode: "FASTA_IGNORED", | 663 dart2jsCode: "*ignored*", |
| 664 format: _formatNoFormals); | 664 format: _formatNoFormals); |
| 665 | 665 |
| 666 typedef FastaMessage _NoFormals(Uri uri, int charOffset, Token token); | 666 typedef FastaMessage _NoFormals(Uri uri, int charOffset, Token token); |
| 667 | 667 |
| 668 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 668 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 669 FastaMessage _formatNoFormals(Uri uri, int charOffset, Token token) { | 669 FastaMessage _formatNoFormals(Uri uri, int charOffset, Token token) { |
| 670 String lexeme = token.lexeme; | 670 String lexeme = token.lexeme; |
| 671 return new FastaMessage(uri, charOffset, codeNoFormals, | 671 return new FastaMessage(uri, charOffset, codeNoFormals, |
| 672 message: "A function should have formal parameters.", | 672 message: "A function should have formal parameters.", |
| 673 tip: | 673 tip: |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 message: "Comment starting with '/*' must end with '*/'.", arguments: {}); | 706 message: "Comment starting with '/*' must end with '*/'.", arguments: {}); |
| 707 } | 707 } |
| 708 | 708 |
| 709 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 709 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 710 const FastaCode<_CatchSyntax> codeCatchSyntax = const FastaCode<_CatchSyntax>( | 710 const FastaCode<_CatchSyntax> codeCatchSyntax = const FastaCode<_CatchSyntax>( |
| 711 "CatchSyntax", | 711 "CatchSyntax", |
| 712 template: | 712 template: |
| 713 r"'catch' must be followed by '(identifier)' or '(identifier, identifier
)'.", | 713 r"'catch' must be followed by '(identifier)' or '(identifier, identifier
)'.", |
| 714 tip: | 714 tip: |
| 715 r"No types are needed, the first is given by 'on', the second is always
'StackTrace'.", | 715 r"No types are needed, the first is given by 'on', the second is always
'StackTrace'.", |
| 716 dart2jsCode: "FASTA_IGNORED", | 716 dart2jsCode: "*ignored*", |
| 717 format: _formatCatchSyntax); | 717 format: _formatCatchSyntax); |
| 718 | 718 |
| 719 typedef FastaMessage _CatchSyntax(Uri uri, int charOffset); | 719 typedef FastaMessage _CatchSyntax(Uri uri, int charOffset); |
| 720 | 720 |
| 721 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 721 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 722 FastaMessage _formatCatchSyntax(Uri uri, int charOffset) { | 722 FastaMessage _formatCatchSyntax(Uri uri, int charOffset) { |
| 723 return new FastaMessage(uri, charOffset, codeCatchSyntax, | 723 return new FastaMessage(uri, charOffset, codeCatchSyntax, |
| 724 message: | 724 message: |
| 725 "'catch' must be followed by '(identifier)' or '(identifier, identifie
r)'.", | 725 "'catch' must be followed by '(identifier)' or '(identifier, identifie
r)'.", |
| 726 tip: | 726 tip: |
| 727 "No types are needed, the first is given by 'on', the second is always
'StackTrace'.", | 727 "No types are needed, the first is given by 'on', the second is always
'StackTrace'.", |
| 728 arguments: {}); | 728 arguments: {}); |
| 729 } | 729 } |
| 730 | 730 |
| 731 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 731 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 732 const FastaCode<_ExpectedClassBody> codeExpectedClassBody = | 732 const FastaCode<_ExpectedClassBody> codeExpectedClassBody = |
| 733 const FastaCode<_ExpectedClassBody>("ExpectedClassBody", | 733 const FastaCode<_ExpectedClassBody>("ExpectedClassBody", |
| 734 template: r"Expected a class body, but got '#lexeme'.", | 734 template: r"Expected a class body, but got '#lexeme'.", |
| 735 dart2jsCode: "FASTA_FATAL", | 735 dart2jsCode: "*fatal*", |
| 736 format: _formatExpectedClassBody); | 736 format: _formatExpectedClassBody); |
| 737 | 737 |
| 738 typedef FastaMessage _ExpectedClassBody(Uri uri, int charOffset, Token token); | 738 typedef FastaMessage _ExpectedClassBody(Uri uri, int charOffset, Token token); |
| 739 | 739 |
| 740 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 740 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 741 FastaMessage _formatExpectedClassBody(Uri uri, int charOffset, Token token) { | 741 FastaMessage _formatExpectedClassBody(Uri uri, int charOffset, Token token) { |
| 742 String lexeme = token.lexeme; | 742 String lexeme = token.lexeme; |
| 743 return new FastaMessage(uri, charOffset, codeExpectedClassBody, | 743 return new FastaMessage(uri, charOffset, codeExpectedClassBody, |
| 744 message: "Expected a class body, but got '$lexeme'.", | 744 message: "Expected a class body, but got '$lexeme'.", |
| 745 arguments: {'token': token}); | 745 arguments: {'token': token}); |
| 746 } | 746 } |
| 747 | 747 |
| 748 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 748 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 749 const FastaCode<_ExpectedExpression> codeExpectedExpression = | 749 const FastaCode<_ExpectedExpression> codeExpectedExpression = |
| 750 const FastaCode<_ExpectedExpression>("ExpectedExpression", | 750 const FastaCode<_ExpectedExpression>("ExpectedExpression", |
| 751 template: r"Expected an expression, but got '#lexeme'.", | 751 template: r"Expected an expression, but got '#lexeme'.", |
| 752 dart2jsCode: "FASTA_FATAL", | 752 dart2jsCode: "*fatal*", |
| 753 format: _formatExpectedExpression); | 753 format: _formatExpectedExpression); |
| 754 | 754 |
| 755 typedef FastaMessage _ExpectedExpression(Uri uri, int charOffset, Token token); | 755 typedef FastaMessage _ExpectedExpression(Uri uri, int charOffset, Token token); |
| 756 | 756 |
| 757 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 757 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 758 FastaMessage _formatExpectedExpression(Uri uri, int charOffset, Token token) { | 758 FastaMessage _formatExpectedExpression(Uri uri, int charOffset, Token token) { |
| 759 String lexeme = token.lexeme; | 759 String lexeme = token.lexeme; |
| 760 return new FastaMessage(uri, charOffset, codeExpectedExpression, | 760 return new FastaMessage(uri, charOffset, codeExpectedExpression, |
| 761 message: "Expected an expression, but got '$lexeme'.", | 761 message: "Expected an expression, but got '$lexeme'.", |
| 762 arguments: {'token': token}); | 762 arguments: {'token': token}); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 781 "'await' is only supported in methods with an 'async' or 'async*' body
modifier.", | 781 "'await' is only supported in methods with an 'async' or 'async*' body
modifier.", |
| 782 tip: | 782 tip: |
| 783 "Try adding 'async' or 'async*' to the method body or removing the 'aw
ait' keyword.", | 783 "Try adding 'async' or 'async*' to the method body or removing the 'aw
ait' keyword.", |
| 784 arguments: {}); | 784 arguments: {}); |
| 785 } | 785 } |
| 786 | 786 |
| 787 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 787 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 788 const FastaCode<_ExpectedType> codeExpectedType = | 788 const FastaCode<_ExpectedType> codeExpectedType = |
| 789 const FastaCode<_ExpectedType>("ExpectedType", | 789 const FastaCode<_ExpectedType>("ExpectedType", |
| 790 template: r"Expected a type, but got '#lexeme'.", | 790 template: r"Expected a type, but got '#lexeme'.", |
| 791 dart2jsCode: "FASTA_FATAL", | 791 dart2jsCode: "*fatal*", |
| 792 format: _formatExpectedType); | 792 format: _formatExpectedType); |
| 793 | 793 |
| 794 typedef FastaMessage _ExpectedType(Uri uri, int charOffset, Token token); | 794 typedef FastaMessage _ExpectedType(Uri uri, int charOffset, Token token); |
| 795 | 795 |
| 796 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 796 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 797 FastaMessage _formatExpectedType(Uri uri, int charOffset, Token token) { | 797 FastaMessage _formatExpectedType(Uri uri, int charOffset, Token token) { |
| 798 String lexeme = token.lexeme; | 798 String lexeme = token.lexeme; |
| 799 return new FastaMessage(uri, charOffset, codeExpectedType, | 799 return new FastaMessage(uri, charOffset, codeExpectedType, |
| 800 message: "Expected a type, but got '$lexeme'.", | 800 message: "Expected a type, but got '$lexeme'.", |
| 801 arguments: {'token': token}); | 801 arguments: {'token': token}); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 arguments: {'string': string}); | 834 arguments: {'string': string}); |
| 835 } | 835 } |
| 836 | 836 |
| 837 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 837 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 838 const FastaCode<_ConstFieldWithoutInitializer> | 838 const FastaCode<_ConstFieldWithoutInitializer> |
| 839 codeConstFieldWithoutInitializer = | 839 codeConstFieldWithoutInitializer = |
| 840 const FastaCode<_ConstFieldWithoutInitializer>( | 840 const FastaCode<_ConstFieldWithoutInitializer>( |
| 841 "ConstFieldWithoutInitializer", | 841 "ConstFieldWithoutInitializer", |
| 842 template: r"A 'const' field must be initialized.", | 842 template: r"A 'const' field must be initialized.", |
| 843 tip: r"Try adding '= <initializer>'.", | 843 tip: r"Try adding '= <initializer>'.", |
| 844 dart2jsCode: "FASTA_IGNORED", | 844 dart2jsCode: "*ignored*", |
| 845 format: _formatConstFieldWithoutInitializer); | 845 format: _formatConstFieldWithoutInitializer); |
| 846 | 846 |
| 847 typedef FastaMessage _ConstFieldWithoutInitializer(Uri uri, int charOffset); | 847 typedef FastaMessage _ConstFieldWithoutInitializer(Uri uri, int charOffset); |
| 848 | 848 |
| 849 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 849 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 850 FastaMessage _formatConstFieldWithoutInitializer(Uri uri, int charOffset) { | 850 FastaMessage _formatConstFieldWithoutInitializer(Uri uri, int charOffset) { |
| 851 return new FastaMessage(uri, charOffset, codeConstFieldWithoutInitializer, | 851 return new FastaMessage(uri, charOffset, codeConstFieldWithoutInitializer, |
| 852 message: "A 'const' field must be initialized.", | 852 message: "A 'const' field must be initialized.", |
| 853 tip: "Try adding '= <initializer>'.", | 853 tip: "Try adding '= <initializer>'.", |
| 854 arguments: {}); | 854 arguments: {}); |
| 855 } | 855 } |
| 856 | 856 |
| 857 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 857 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 858 const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode< | 858 const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode< |
| 859 _AwaitForNotAsync>("AwaitForNotAsync", | 859 _AwaitForNotAsync>("AwaitForNotAsync", |
| 860 template: | 860 template: |
| 861 r"Asynchronous for-loop can only be used in 'async' or 'async*' methods.
", | 861 r"Asynchronous for-loop can only be used in 'async' or 'async*' methods.
", |
| 862 dart2jsCode: "FASTA_IGNORED", | 862 dart2jsCode: "*ignored*", |
| 863 format: _formatAwaitForNotAsync); | 863 format: _formatAwaitForNotAsync); |
| 864 | 864 |
| 865 typedef FastaMessage _AwaitForNotAsync(Uri uri, int charOffset); | 865 typedef FastaMessage _AwaitForNotAsync(Uri uri, int charOffset); |
| 866 | 866 |
| 867 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 867 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 868 FastaMessage _formatAwaitForNotAsync(Uri uri, int charOffset) { | 868 FastaMessage _formatAwaitForNotAsync(Uri uri, int charOffset) { |
| 869 return new FastaMessage(uri, charOffset, codeAwaitForNotAsync, | 869 return new FastaMessage(uri, charOffset, codeAwaitForNotAsync, |
| 870 message: | 870 message: |
| 871 "Asynchronous for-loop can only be used in 'async' or 'async*' methods
.", | 871 "Asynchronous for-loop can only be used in 'async' or 'async*' methods
.", |
| 872 arguments: {}); | 872 arguments: {}); |
| 873 } | 873 } |
| 874 | 874 |
| 875 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 875 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 876 const FastaCode<_Encoding> codeEncoding = const FastaCode<_Encoding>("Encoding", | 876 const FastaCode<_Encoding> codeEncoding = const FastaCode<_Encoding>("Encoding", |
| 877 template: r"Unable to decode bytes as UTF-8.", | 877 template: r"Unable to decode bytes as UTF-8.", |
| 878 dart2jsCode: "FASTA_FATAL", | 878 dart2jsCode: "*fatal*", |
| 879 format: _formatEncoding); | 879 format: _formatEncoding); |
| 880 | 880 |
| 881 typedef FastaMessage _Encoding(Uri uri, int charOffset); | 881 typedef FastaMessage _Encoding(Uri uri, int charOffset); |
| 882 | 882 |
| 883 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 883 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 884 FastaMessage _formatEncoding(Uri uri, int charOffset) { | 884 FastaMessage _formatEncoding(Uri uri, int charOffset) { |
| 885 return new FastaMessage(uri, charOffset, codeEncoding, | 885 return new FastaMessage(uri, charOffset, codeEncoding, |
| 886 message: "Unable to decode bytes as UTF-8.", arguments: {}); | 886 message: "Unable to decode bytes as UTF-8.", arguments: {}); |
| 887 } | 887 } |
| 888 | 888 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 903 message: | 903 message: |
| 904 "'async' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 904 "'async' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
| 905 arguments: {}); | 905 arguments: {}); |
| 906 } | 906 } |
| 907 | 907 |
| 908 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 908 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 909 const FastaCode<_YieldAsIdentifier> codeYieldAsIdentifier = const FastaCode< | 909 const FastaCode<_YieldAsIdentifier> codeYieldAsIdentifier = const FastaCode< |
| 910 _YieldAsIdentifier>("YieldAsIdentifier", | 910 _YieldAsIdentifier>("YieldAsIdentifier", |
| 911 template: | 911 template: |
| 912 r"'yield' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", | 912 r"'yield' can't be used as an identifier in 'async', 'async*', or 'sync*
' methods.", |
| 913 dart2jsCode: "FASTA_IGNORED", | 913 dart2jsCode: "*ignored*", |
| 914 format: _formatYieldAsIdentifier); | 914 format: _formatYieldAsIdentifier); |
| 915 | 915 |
| 916 typedef FastaMessage _YieldAsIdentifier(Uri uri, int charOffset); | 916 typedef FastaMessage _YieldAsIdentifier(Uri uri, int charOffset); |
| 917 | 917 |
| 918 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 918 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 919 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { | 919 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { |
| 920 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, | 920 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, |
| 921 message: | 921 message: |
| 922 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", | 922 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync
*' methods.", |
| 923 arguments: {}); | 923 arguments: {}); |
| 924 } | 924 } |
| 925 | 925 |
| 926 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 926 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 927 const FastaCode<_AssertAsExpression> codeAssertAsExpression = | 927 const FastaCode<_AssertAsExpression> codeAssertAsExpression = |
| 928 const FastaCode<_AssertAsExpression>("AssertAsExpression", | 928 const FastaCode<_AssertAsExpression>("AssertAsExpression", |
| 929 template: r"`assert` can't be used as an expression.", | 929 template: r"`assert` can't be used as an expression.", |
| 930 dart2jsCode: "FASTA_FATAL", | 930 dart2jsCode: "*fatal*", |
| 931 format: _formatAssertAsExpression); | 931 format: _formatAssertAsExpression); |
| 932 | 932 |
| 933 typedef FastaMessage _AssertAsExpression(Uri uri, int charOffset); | 933 typedef FastaMessage _AssertAsExpression(Uri uri, int charOffset); |
| 934 | 934 |
| 935 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 935 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 936 FastaMessage _formatAssertAsExpression(Uri uri, int charOffset) { | 936 FastaMessage _formatAssertAsExpression(Uri uri, int charOffset) { |
| 937 return new FastaMessage(uri, charOffset, codeAssertAsExpression, | 937 return new FastaMessage(uri, charOffset, codeAssertAsExpression, |
| 938 message: "`assert` can't be used as an expression.", arguments: {}); | 938 message: "`assert` can't be used as an expression.", arguments: {}); |
| 939 } | 939 } |
| 940 | 940 |
| 941 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 941 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 942 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry", | 942 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry", |
| 943 template: | 943 template: |
| 944 r"Try block should be followed by 'on', 'catch', or 'finally' block.", | 944 r"Try block should be followed by 'on', 'catch', or 'finally' block.", |
| 945 tip: r"Did you forget to add a 'finally' block?", | 945 tip: r"Did you forget to add a 'finally' block?", |
| 946 dart2jsCode: "FASTA_IGNORED", | 946 dart2jsCode: "*ignored*", |
| 947 format: _formatOnlyTry); | 947 format: _formatOnlyTry); |
| 948 | 948 |
| 949 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); | 949 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); |
| 950 | 950 |
| 951 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 951 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 952 FastaMessage _formatOnlyTry(Uri uri, int charOffset) { | 952 FastaMessage _formatOnlyTry(Uri uri, int charOffset) { |
| 953 return new FastaMessage(uri, charOffset, codeOnlyTry, | 953 return new FastaMessage(uri, charOffset, codeOnlyTry, |
| 954 message: | 954 message: |
| 955 "Try block should be followed by 'on', 'catch', or 'finally' block.", | 955 "Try block should be followed by 'on', 'catch', or 'finally' block.", |
| 956 tip: "Did you forget to add a 'finally' block?", | 956 tip: "Did you forget to add a 'finally' block?", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 975 message: "Invalid inline function type.", | 975 message: "Invalid inline function type.", |
| 976 tip: | 976 tip: |
| 977 "Try changing the inline function type (as in 'int f()') to a prefixed
function type using the `Function` keyword (as in 'int Function() f').", | 977 "Try changing the inline function type (as in 'int f()') to a prefixed
function type using the `Function` keyword (as in 'int Function() f').", |
| 978 arguments: {}); | 978 arguments: {}); |
| 979 } | 979 } |
| 980 | 980 |
| 981 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 981 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 982 const FastaCode<_MetadataTypeArguments> codeMetadataTypeArguments = | 982 const FastaCode<_MetadataTypeArguments> codeMetadataTypeArguments = |
| 983 const FastaCode<_MetadataTypeArguments>("MetadataTypeArguments", | 983 const FastaCode<_MetadataTypeArguments>("MetadataTypeArguments", |
| 984 template: r"An annotation (metadata) can't use type arguments.", | 984 template: r"An annotation (metadata) can't use type arguments.", |
| 985 dart2jsCode: "FASTA_IGNORED", | 985 dart2jsCode: "*ignored*", |
| 986 format: _formatMetadataTypeArguments); | 986 format: _formatMetadataTypeArguments); |
| 987 | 987 |
| 988 typedef FastaMessage _MetadataTypeArguments(Uri uri, int charOffset); | 988 typedef FastaMessage _MetadataTypeArguments(Uri uri, int charOffset); |
| 989 | 989 |
| 990 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 990 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 991 FastaMessage _formatMetadataTypeArguments(Uri uri, int charOffset) { | 991 FastaMessage _formatMetadataTypeArguments(Uri uri, int charOffset) { |
| 992 return new FastaMessage(uri, charOffset, codeMetadataTypeArguments, | 992 return new FastaMessage(uri, charOffset, codeMetadataTypeArguments, |
| 993 message: "An annotation (metadata) can't use type arguments.", | 993 message: "An annotation (metadata) can't use type arguments.", |
| 994 arguments: {}); | 994 arguments: {}); |
| 995 } | 995 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 Uri uri, int charOffset, Token token) { | 1065 Uri uri, int charOffset, Token token) { |
| 1066 String lexeme = token.lexeme; | 1066 String lexeme = token.lexeme; |
| 1067 return new FastaMessage(uri, charOffset, codeBuiltInIdentifierAsType, | 1067 return new FastaMessage(uri, charOffset, codeBuiltInIdentifierAsType, |
| 1068 message: "Can't use '$lexeme' as a type.", arguments: {'token': token}); | 1068 message: "Can't use '$lexeme' as a type.", arguments: {'token': token}); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1071 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1072 const FastaCode<_GeneratorReturnsValue> codeGeneratorReturnsValue = | 1072 const FastaCode<_GeneratorReturnsValue> codeGeneratorReturnsValue = |
| 1073 const FastaCode<_GeneratorReturnsValue>("GeneratorReturnsValue", | 1073 const FastaCode<_GeneratorReturnsValue>("GeneratorReturnsValue", |
| 1074 template: r"'sync*' and 'async*' can't return a value.", | 1074 template: r"'sync*' and 'async*' can't return a value.", |
| 1075 dart2jsCode: "FASTA_IGNORED", | 1075 dart2jsCode: "*ignored*", |
| 1076 format: _formatGeneratorReturnsValue); | 1076 format: _formatGeneratorReturnsValue); |
| 1077 | 1077 |
| 1078 typedef FastaMessage _GeneratorReturnsValue(Uri uri, int charOffset); | 1078 typedef FastaMessage _GeneratorReturnsValue(Uri uri, int charOffset); |
| 1079 | 1079 |
| 1080 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1080 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1081 FastaMessage _formatGeneratorReturnsValue(Uri uri, int charOffset) { | 1081 FastaMessage _formatGeneratorReturnsValue(Uri uri, int charOffset) { |
| 1082 return new FastaMessage(uri, charOffset, codeGeneratorReturnsValue, | 1082 return new FastaMessage(uri, charOffset, codeGeneratorReturnsValue, |
| 1083 message: "'sync*' and 'async*' can't return a value.", arguments: {}); | 1083 message: "'sync*' and 'async*' can't return a value.", arguments: {}); |
| 1084 } | 1084 } |
| 1085 | 1085 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1122 FastaMessage _formatNonAsciiIdentifier( | 1122 FastaMessage _formatNonAsciiIdentifier( |
| 1123 Uri uri, int charOffset, String character, int codePoint) { | 1123 Uri uri, int charOffset, String character, int codePoint) { |
| 1124 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 1124 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 1125 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, | 1125 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, |
| 1126 message: | 1126 message: |
| 1127 "The non-ASCII character '$character' ($unicode) can't be used in iden
tifiers, only in strings and comments.", | 1127 "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).", | 1128 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$'
(a dollar sign).", |
| 1129 arguments: {'character': character, 'codePoint': codePoint}); | 1129 arguments: {'character': character, 'codePoint': codePoint}); |
| 1130 } | 1130 } |
| OLD | NEW |