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 Template<Message Function(Token token)> templateExpectedClassBodyToSkip = | 13 const Template<Message Function(String name)> |
14 const Template<Message Function(Token token)>( | 14 templateAbstractClassInstantiation = |
15 messageTemplate: r"""Expected a class body, but got '#lexeme'.""", | 15 const Template<Message Function(String name)>( |
16 withArguments: _withArgumentsExpectedClassBodyToSkip); | 16 messageTemplate: |
| 17 r"""The class '#name' is abstract and can't be instantiated.""", |
| 18 withArguments: _withArgumentsAbstractClassInstantiation); |
17 | 19 |
18 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 20 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
19 const Code<Message Function(Token token)> codeExpectedClassBodyToSkip = | 21 const Code<Message Function(String name)> codeAbstractClassInstantiation = |
20 const Code<Message Function(Token token)>( | |
21 "ExpectedClassBodyToSkip", templateExpectedClassBodyToSkip, | |
22 dart2jsCode: "*fatal*"); | |
23 | |
24 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
25 Message _withArgumentsExpectedClassBodyToSkip(Token token) { | |
26 String lexeme = token.lexeme; | |
27 return new Message(codeExpectedClassBodyToSkip, | |
28 message: """Expected a class body, but got '$lexeme'.""", | |
29 arguments: {'token': token}); | |
30 } | |
31 | |
32 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
33 const Code<Null> codeFunctionTypeDefaultValue = messageFunctionTypeDefaultValue; | |
34 | |
35 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
36 const MessageCode messageFunctionTypeDefaultValue = const MessageCode( | |
37 "FunctionTypeDefaultValue", | |
38 dart2jsCode: "*ignored*", | |
39 message: r"""Can't have a default value in a function type."""); | |
40 | |
41 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
42 const Code<Null> codeNonInstanceTypeVariableUse = | |
43 messageNonInstanceTypeVariableUse; | |
44 | |
45 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
46 const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( | |
47 "NonInstanceTypeVariableUse", | |
48 message: r"""Can only use type variables in instance methods."""); | |
49 | |
50 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
51 const Template<Message Function(String name)> | |
52 templateInternalProblemUnsupported = | |
53 const Template<Message Function(String name)>( | |
54 messageTemplate: r"""Unsupported operation: '#name'.""", | |
55 withArguments: _withArgumentsInternalProblemUnsupported); | |
56 | |
57 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
58 const Code<Message Function(String name)> codeInternalProblemUnsupported = | |
59 const Code<Message Function(String name)>( | 22 const Code<Message Function(String name)>( |
60 "InternalProblemUnsupported", | 23 "AbstractClassInstantiation", |
61 templateInternalProblemUnsupported, | 24 templateAbstractClassInstantiation, |
62 ); | 25 ); |
63 | 26 |
64 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 27 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
65 Message _withArgumentsInternalProblemUnsupported(String name) { | 28 Message _withArgumentsAbstractClassInstantiation(String name) { |
66 return new Message(codeInternalProblemUnsupported, | 29 return new Message(codeAbstractClassInstantiation, |
67 message: """Unsupported operation: '$name'.""", | 30 message: """The class '$name' is abstract and can't be instantiated.""", |
68 arguments: {'name': name}); | 31 arguments: {'name': name}); |
69 } | 32 } |
70 | 33 |
71 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 34 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
72 const Code<Null> codeInternalProblemPreviousTokenNotFound = | 35 const Code<Null> codeAbstractNotSync = messageAbstractNotSync; |
73 messageInternalProblemPreviousTokenNotFound; | |
74 | 36 |
75 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 37 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
76 const MessageCode messageInternalProblemPreviousTokenNotFound = | 38 const MessageCode messageAbstractNotSync = const MessageCode("AbstractNotSync", |
77 const MessageCode("InternalProblemPreviousTokenNotFound", | 39 dart2jsCode: "*ignored*", |
78 message: r"""Couldn't find previous token."""); | 40 message: r"""Abstract methods can't use 'async', 'async*', or 'sync*'."""); |
79 | 41 |
80 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 42 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
81 const Code<Null> codeStackOverflow = messageStackOverflow; | 43 const Template< |
| 44 Message Function( |
| 45 int |
| 46 codePoint)> templateAsciiControlCharacter = const Template< |
| 47 Message Function(int codePoint)>( |
| 48 messageTemplate: |
| 49 r"""The control character #unicode can only be used in strings and comme
nts.""", |
| 50 withArguments: _withArgumentsAsciiControlCharacter); |
82 | 51 |
83 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 52 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
84 const MessageCode messageStackOverflow = const MessageCode("StackOverflow", | 53 const Code<Message Function(int codePoint)> codeAsciiControlCharacter = |
85 dart2jsCode: "GENERIC", message: r"""Stack overflow."""); | 54 const Code<Message Function(int codePoint)>( |
| 55 "AsciiControlCharacter", templateAsciiControlCharacter, |
| 56 analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); |
86 | 57 |
87 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 58 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
88 const Template<Message Function(String name)> templateCyclicTypedef = | 59 Message _withArgumentsAsciiControlCharacter(int codePoint) { |
89 const Template<Message Function(String name)>( | 60 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
90 messageTemplate: r"""The typedef '#name' has a reference to itself.""", | 61 return new Message(codeAsciiControlCharacter, |
91 withArguments: _withArgumentsCyclicTypedef); | 62 message: |
92 | 63 """The control character $unicode can only be used in strings and comm
ents.""", |
93 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 64 arguments: {'codePoint': codePoint}); |
94 const Code<Message Function(String name)> codeCyclicTypedef = | |
95 const Code<Message Function(String name)>( | |
96 "CyclicTypedef", | |
97 templateCyclicTypedef, | |
98 ); | |
99 | |
100 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
101 Message _withArgumentsCyclicTypedef(String name) { | |
102 return new Message(codeCyclicTypedef, | |
103 message: """The typedef '$name' has a reference to itself.""", | |
104 arguments: {'name': name}); | |
105 } | 65 } |
106 | 66 |
107 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 67 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 68 const Code<Null> codeAssertAsExpression = messageAssertAsExpression; |
| 69 |
| 70 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 71 const MessageCode messageAssertAsExpression = const MessageCode( |
| 72 "AssertAsExpression", |
| 73 dart2jsCode: "*fatal*", |
| 74 message: r"""`assert` can't be used as an expression."""); |
| 75 |
| 76 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
108 const Code<Null> codeAssertExtraneousArgument = messageAssertExtraneousArgument; | 77 const Code<Null> codeAssertExtraneousArgument = messageAssertExtraneousArgument; |
109 | 78 |
110 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 79 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
111 const MessageCode messageAssertExtraneousArgument = const MessageCode( | 80 const MessageCode messageAssertExtraneousArgument = const MessageCode( |
112 "AssertExtraneousArgument", | 81 "AssertExtraneousArgument", |
113 dart2jsCode: "*fatal*", | 82 dart2jsCode: "*fatal*", |
114 message: r"""`assert` can't have more than two arguments."""); | 83 message: r"""`assert` can't have more than two arguments."""); |
115 | 84 |
116 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 85 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
117 const Template<Message Function(Token token)> templateUnexpectedToken = | 86 const Code<Null> codeAsyncAsIdentifier = messageAsyncAsIdentifier; |
118 const Template<Message Function(Token token)>( | |
119 messageTemplate: r"""Unexpected token '#lexeme'.""", | |
120 withArguments: _withArgumentsUnexpectedToken); | |
121 | 87 |
122 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 88 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
123 const Code<Message Function(Token token)> codeUnexpectedToken = | 89 const MessageCode messageAsyncAsIdentifier = const MessageCode( |
124 const Code<Message Function(Token token)>( | 90 "AsyncAsIdentifier", |
125 "UnexpectedToken", templateUnexpectedToken, | 91 analyzerCode: "ASYNC_KEYWORD_USED_AS_IDENTIFIER", |
126 dart2jsCode: "*fatal*"); | 92 dart2jsCode: "GENERIC", |
127 | 93 message: |
128 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 94 r"""'async' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
129 Message _withArgumentsUnexpectedToken(Token token) { | |
130 String lexeme = token.lexeme; | |
131 return new Message(codeUnexpectedToken, | |
132 message: """Unexpected token '$lexeme'.""", arguments: {'token': token}); | |
133 } | |
134 | 95 |
135 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 96 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
136 const Code<Null> codeAwaitAsIdentifier = messageAwaitAsIdentifier; | 97 const Code<Null> codeAwaitAsIdentifier = messageAwaitAsIdentifier; |
137 | 98 |
138 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 99 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
139 const MessageCode messageAwaitAsIdentifier = const MessageCode( | 100 const MessageCode messageAwaitAsIdentifier = const MessageCode( |
140 "AwaitAsIdentifier", | 101 "AwaitAsIdentifier", |
141 dart2jsCode: "*ignored*", | 102 dart2jsCode: "*ignored*", |
142 message: | 103 message: |
143 r"""'await' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 104 r"""'await' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
144 | 105 |
145 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 106 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
146 const Code<Null> codeFactoryNotSync = messageFactoryNotSync; | 107 const Code<Null> codeAwaitForNotAsync = messageAwaitForNotAsync; |
147 | 108 |
148 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 109 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
149 const MessageCode messageFactoryNotSync = const MessageCode("FactoryNotSync", | 110 const MessageCode messageAwaitForNotAsync = const MessageCode( |
| 111 "AwaitForNotAsync", |
150 dart2jsCode: "*ignored*", | 112 dart2jsCode: "*ignored*", |
151 message: r"""Factories can't use 'async', 'async*', or 'sync*'."""); | 113 message: |
| 114 r"""Asynchronous for-loop can only be used in 'async' or 'async*' method
s."""); |
152 | 115 |
153 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 116 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
154 const Template<Message Function(String name, Uri uri_)> | 117 const Code<Null> codeAwaitNotAsync = messageAwaitNotAsync; |
155 templateInternalProblemConstructorNotFound = | |
156 const Template<Message Function(String name, Uri uri_)>( | |
157 messageTemplate: r"""No constructor named '#name' in '#uri'.""", | |
158 withArguments: _withArgumentsInternalProblemConstructorNotFound); | |
159 | 118 |
160 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 119 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
161 const Code<Message Function(String name, Uri uri_)> | 120 const MessageCode messageAwaitNotAsync = const MessageCode("AwaitNotAsync", |
162 codeInternalProblemConstructorNotFound = | 121 dart2jsCode: "*ignored*", |
163 const Code<Message Function(String name, Uri uri_)>( | 122 message: r"""'await' can only be used in 'async' or 'async*' methods."""); |
164 "InternalProblemConstructorNotFound", | |
165 templateInternalProblemConstructorNotFound, | |
166 ); | |
167 | 123 |
168 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 124 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
169 Message _withArgumentsInternalProblemConstructorNotFound( | 125 const Template<Message Function(Token token)> templateBuiltInIdentifierAsType = |
170 String name, Uri uri_) { | 126 const Template<Message Function(Token token)>( |
171 String uri = relativizeUri(uri_); | 127 messageTemplate: r"""Can't use '#lexeme' as a type.""", |
172 return new Message(codeInternalProblemConstructorNotFound, | 128 withArguments: _withArgumentsBuiltInIdentifierAsType); |
173 message: """No constructor named '$name' in '$uri'.""", | |
174 arguments: {'name': name, 'uri': uri_}); | |
175 } | |
176 | 129 |
177 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 130 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
178 const Code<Null> codeSuperNullAware = messageSuperNullAware; | 131 const Code<Message Function(Token token)> codeBuiltInIdentifierAsType = |
| 132 const Code<Message Function(Token token)>( |
| 133 "BuiltInIdentifierAsType", templateBuiltInIdentifierAsType, |
| 134 analyzerCode: "EXPECTED_TYPE_NAME", dart2jsCode: "EXTRANEOUS_MODIFIER"); |
179 | 135 |
180 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 136 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
181 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", | 137 Message _withArgumentsBuiltInIdentifierAsType(Token token) { |
182 dart2jsCode: "*ignored*", | |
183 message: r"""'super' can't be null.""", | |
184 tip: r"""Try replacing '?.' with '.'"""); | |
185 | |
186 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
187 const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; | |
188 | |
189 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
190 const MessageCode messagePrivateNamedParameter = const MessageCode( | |
191 "PrivateNamedParameter", | |
192 dart2jsCode: "*ignored*", | |
193 message: r"""An optional named parameter can't start with '_'."""); | |
194 | |
195 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
196 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | |
197 | |
198 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
199 const MessageCode messageYieldNotGenerator = const MessageCode( | |
200 "YieldNotGenerator", | |
201 dart2jsCode: "*ignored*", | |
202 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | |
203 | |
204 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
205 const Code<Null> codeReturnTypeFunctionExpression = | |
206 messageReturnTypeFunctionExpression; | |
207 | |
208 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
209 const MessageCode messageReturnTypeFunctionExpression = const MessageCode( | |
210 "ReturnTypeFunctionExpression", | |
211 dart2jsCode: "*ignored*", | |
212 message: r"""A function expression can't have a return type."""); | |
213 | |
214 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
215 const Code<Null> codeSetterNotSync = messageSetterNotSync; | |
216 | |
217 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
218 const MessageCode messageSetterNotSync = const MessageCode("SetterNotSync", | |
219 dart2jsCode: "*ignored*", | |
220 message: r"""Setters can't use 'async', 'async*', or 'sync*'."""); | |
221 | |
222 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
223 const Template< | |
224 Message Function( | |
225 int | |
226 codePoint)> templateNonAsciiWhitespace = const Template< | |
227 Message Function(int codePoint)>( | |
228 messageTemplate: | |
229 r"""The non-ASCII space character #unicode can only be used in strings a
nd comments.""", | |
230 withArguments: _withArgumentsNonAsciiWhitespace); | |
231 | |
232 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
233 const Code<Message Function(int codePoint)> codeNonAsciiWhitespace = | |
234 const Code<Message Function(int codePoint)>( | |
235 "NonAsciiWhitespace", templateNonAsciiWhitespace, | |
236 analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); | |
237 | |
238 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
239 Message _withArgumentsNonAsciiWhitespace(int codePoint) { | |
240 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | |
241 return new Message(codeNonAsciiWhitespace, | |
242 message: | |
243 """The non-ASCII space character $unicode can only be used in strings
and comments.""", | |
244 arguments: {'codePoint': codePoint}); | |
245 } | |
246 | |
247 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
248 const Template<Message Function(Token token)> templateExpectedIdentifier = | |
249 const Template<Message Function(Token token)>( | |
250 messageTemplate: | |
251 r"""'#lexeme' is a reserved word and can't be used here.""", | |
252 tipTemplate: r"""Try using a different name.""", | |
253 withArguments: _withArgumentsExpectedIdentifier); | |
254 | |
255 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
256 const Code<Message Function(Token token)> codeExpectedIdentifier = | |
257 const Code<Message Function(Token token)>( | |
258 "ExpectedIdentifier", templateExpectedIdentifier, | |
259 dart2jsCode: "EXPECTED_IDENTIFIER"); | |
260 | |
261 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
262 Message _withArgumentsExpectedIdentifier(Token token) { | |
263 String lexeme = token.lexeme; | 138 String lexeme = token.lexeme; |
264 return new Message(codeExpectedIdentifier, | 139 return new Message(codeBuiltInIdentifierAsType, |
265 message: """'$lexeme' is a reserved word and can't be used here.""", | 140 message: """Can't use '$lexeme' as a type.""", |
266 tip: """Try using a different name.""", | |
267 arguments: {'token': token}); | 141 arguments: {'token': token}); |
268 } | 142 } |
269 | 143 |
270 // 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 Template<Message Function(Token token)> |
| 146 templateBuiltInIdentifierInDeclaration = |
| 147 const Template<Message Function(Token token)>( |
| 148 messageTemplate: r"""Can't use '#lexeme' as a name here.""", |
| 149 withArguments: _withArgumentsBuiltInIdentifierInDeclaration); |
| 150 |
| 151 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 152 const Code<Message Function(Token token)> codeBuiltInIdentifierInDeclaration = |
| 153 const Code<Message Function(Token token)>("BuiltInIdentifierInDeclaration", |
| 154 templateBuiltInIdentifierInDeclaration, |
| 155 dart2jsCode: "GENERIC"); |
| 156 |
| 157 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 158 Message _withArgumentsBuiltInIdentifierInDeclaration(Token token) { |
| 159 String lexeme = token.lexeme; |
| 160 return new Message(codeBuiltInIdentifierInDeclaration, |
| 161 message: """Can't use '$lexeme' as a name here.""", |
| 162 arguments: {'token': token}); |
| 163 } |
| 164 |
| 165 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 166 const Code<Null> codeCatchSyntax = messageCatchSyntax; |
| 167 |
| 168 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 169 const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", |
| 170 dart2jsCode: "*ignored*", |
| 171 message: |
| 172 r"""'catch' must be followed by '(identifier)' or '(identifier, identifi
er)'.""", |
| 173 tip: |
| 174 r"""No types are needed, the first is given by 'on', the second is alway
s 'StackTrace'."""); |
| 175 |
| 176 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 177 const Code<Null> codeConstFieldWithoutInitializer = |
| 178 messageConstFieldWithoutInitializer; |
| 179 |
| 180 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 181 const MessageCode messageConstFieldWithoutInitializer = const MessageCode( |
| 182 "ConstFieldWithoutInitializer", |
| 183 dart2jsCode: "*ignored*", |
| 184 message: r"""A 'const' field must be initialized.""", |
| 185 tip: r"""Try adding '= <initializer>'."""); |
| 186 |
| 187 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 188 const Template<Message Function(String name)> templateConstructorNotFound = |
| 189 const Template<Message Function(String name)>( |
| 190 messageTemplate: r"""Couldn't find constructor '#name'.""", |
| 191 withArguments: _withArgumentsConstructorNotFound); |
| 192 |
| 193 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 194 const Code<Message Function(String name)> codeConstructorNotFound = |
| 195 const Code<Message Function(String name)>( |
| 196 "ConstructorNotFound", |
| 197 templateConstructorNotFound, |
| 198 ); |
| 199 |
| 200 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 201 Message _withArgumentsConstructorNotFound(String name) { |
| 202 return new Message(codeConstructorNotFound, |
| 203 message: """Couldn't find constructor '$name'.""", |
| 204 arguments: {'name': name}); |
| 205 } |
| 206 |
| 207 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 208 const Template<Message Function(String name)> templateCyclicTypedef = |
| 209 const Template<Message Function(String name)>( |
| 210 messageTemplate: r"""The typedef '#name' has a reference to itself.""", |
| 211 withArguments: _withArgumentsCyclicTypedef); |
| 212 |
| 213 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 214 const Code<Message Function(String name)> codeCyclicTypedef = |
| 215 const Code<Message Function(String name)>( |
| 216 "CyclicTypedef", |
| 217 templateCyclicTypedef, |
| 218 ); |
| 219 |
| 220 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 221 Message _withArgumentsCyclicTypedef(String name) { |
| 222 return new Message(codeCyclicTypedef, |
| 223 message: """The typedef '$name' has a reference to itself.""", |
| 224 arguments: {'name': name}); |
| 225 } |
| 226 |
| 227 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 228 const Code<Null> codeEmptyNamedParameterList = messageEmptyNamedParameterList; |
| 229 |
| 230 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 231 const MessageCode messageEmptyNamedParameterList = const MessageCode( |
| 232 "EmptyNamedParameterList", |
| 233 dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST", |
| 234 message: r"""Named parameter lists cannot be empty.""", |
| 235 tip: r"""Try adding a named parameter to the list."""); |
| 236 |
| 237 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 238 const Code<Null> codeEmptyOptionalParameterList = |
| 239 messageEmptyOptionalParameterList; |
| 240 |
| 241 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 242 const MessageCode messageEmptyOptionalParameterList = const MessageCode( |
| 243 "EmptyOptionalParameterList", |
| 244 dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", |
| 245 message: r"""Optional parameter lists cannot be empty.""", |
| 246 tip: r"""Try adding an optional parameter to the list."""); |
| 247 |
| 248 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 249 const Code<Null> codeEncoding = messageEncoding; |
| 250 |
| 251 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 252 const MessageCode messageEncoding = const MessageCode("Encoding", |
| 253 dart2jsCode: "*fatal*", message: r"""Unable to decode bytes as UTF-8."""); |
| 254 |
| 255 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
271 const Code<Null> codeExpectedBlockToSkip = messageExpectedBlockToSkip; | 256 const Code<Null> codeExpectedBlockToSkip = messageExpectedBlockToSkip; |
272 | 257 |
273 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 258 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
274 const MessageCode messageExpectedBlockToSkip = const MessageCode( | 259 const MessageCode messageExpectedBlockToSkip = const MessageCode( |
275 "ExpectedBlockToSkip", | 260 "ExpectedBlockToSkip", |
276 dart2jsCode: "NATIVE_OR_BODY_EXPECTED", | 261 dart2jsCode: "NATIVE_OR_BODY_EXPECTED", |
277 message: r"""Expected a function body or '=>'.""", | 262 message: r"""Expected a function body or '=>'.""", |
278 tip: r"""Try adding {}."""); | 263 tip: r"""Try adding {}."""); |
279 | 264 |
280 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 265 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
281 const Code<Null> codeRequiredParameterWithDefault = | 266 const Code<Null> codeExpectedBody = messageExpectedBody; |
282 messageRequiredParameterWithDefault; | 267 |
283 | 268 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
284 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 269 const MessageCode messageExpectedBody = const MessageCode("ExpectedBody", |
285 const MessageCode messageRequiredParameterWithDefault = const MessageCode( | 270 dart2jsCode: "BODY_EXPECTED", |
286 "RequiredParameterWithDefault", | 271 message: r"""Expected a function body or '=>'.""", |
287 dart2jsCode: "REQUIRED_PARAMETER_WITH_DEFAULT", | 272 tip: r"""Try adding {}."""); |
288 message: r"""Non-optional parameters can't have a default value.""", | 273 |
289 tip: | 274 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
290 r"""Try removing the default value or making the parameter optional.""")
; | 275 const Template<Message Function(String string)> templateExpectedButGot = |
291 | |
292 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
293 const Template<Message Function(String string)> templateUnspecified = | |
294 const Template<Message Function(String string)>( | 276 const Template<Message Function(String string)>( |
295 messageTemplate: r"""#string""", | 277 messageTemplate: r"""Expected '#string' before this.""", |
296 withArguments: _withArgumentsUnspecified); | 278 tipTemplate: r"""DONT_KNOW_HOW_TO_FIX,""", |
297 | 279 withArguments: _withArgumentsExpectedButGot); |
298 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 280 |
299 const Code<Message Function(String string)> codeUnspecified = | 281 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 282 const Code<Message Function(String string)> codeExpectedButGot = |
300 const Code<Message Function(String string)>( | 283 const Code<Message Function(String string)>( |
301 "Unspecified", templateUnspecified, | 284 "ExpectedButGot", templateExpectedButGot, |
302 dart2jsCode: "GENERIC"); | 285 dart2jsCode: "MISSING_TOKEN_BEFORE_THIS"); |
303 | 286 |
304 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 287 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
305 Message _withArgumentsUnspecified(String string) { | 288 Message _withArgumentsExpectedButGot(String string) { |
306 return new Message(codeUnspecified, | 289 return new Message(codeExpectedButGot, |
307 message: """$string""", arguments: {'string': string}); | 290 message: """Expected '$string' before this.""", |
308 } | 291 tip: """DONT_KNOW_HOW_TO_FIX,""", |
309 | |
310 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
311 const Code<Null> codeMissingExponent = messageMissingExponent; | |
312 | |
313 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
314 const MessageCode messageMissingExponent = const MessageCode("MissingExponent", | |
315 analyzerCode: "MISSING_DIGIT", | |
316 dart2jsCode: "EXPONENT_MISSING", | |
317 message: | |
318 r"""Numbers in exponential notation should always contain an exponent (a
n integer number with an optional sign).""", | |
319 tip: | |
320 r"""Make sure there is an exponent, and remove any whitespace before it.
"""); | |
321 | |
322 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
323 const Code<Null> codePositionalParameterWithEquals = | |
324 messagePositionalParameterWithEquals; | |
325 | |
326 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
327 const MessageCode messagePositionalParameterWithEquals = const MessageCode( | |
328 "PositionalParameterWithEquals", | |
329 dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", | |
330 message: | |
331 r"""Positional optional parameters can't use ':' to specify a default va
lue.""", | |
332 tip: r"""Try replacing ':' with '='."""); | |
333 | |
334 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
335 const Code<Null> codeUnexpectedDollarInString = messageUnexpectedDollarInString; | |
336 | |
337 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
338 const MessageCode messageUnexpectedDollarInString = const MessageCode( | |
339 "UnexpectedDollarInString", | |
340 dart2jsCode: "MALFORMED_STRING_LITERAL", | |
341 message: | |
342 r"""A '$' has special meaning inside a string, and must be followed by a
n identifier or an expression in curly braces ({}).""", | |
343 tip: r"""Try adding a backslash (\) to escape the '$'."""); | |
344 | |
345 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
346 const Code<Null> codeFinalFieldWithoutInitializer = | |
347 messageFinalFieldWithoutInitializer; | |
348 | |
349 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
350 const MessageCode messageFinalFieldWithoutInitializer = const MessageCode( | |
351 "FinalFieldWithoutInitializer", | |
352 dart2jsCode: "*ignored*", | |
353 message: r"""A 'final' field must be initialized.""", | |
354 tip: r"""Try adding '= <initializer>'."""); | |
355 | |
356 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
357 const Template<Message Function(Token token)> templateExtraneousModifier = | |
358 const Template<Message Function(Token token)>( | |
359 messageTemplate: r"""Can't have modifier '#lexeme' here.""", | |
360 tipTemplate: r"""Try removing '#lexeme'.""", | |
361 withArguments: _withArgumentsExtraneousModifier); | |
362 | |
363 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
364 const Code<Message Function(Token token)> codeExtraneousModifier = | |
365 const Code<Message Function(Token token)>( | |
366 "ExtraneousModifier", templateExtraneousModifier, | |
367 dart2jsCode: "EXTRANEOUS_MODIFIER"); | |
368 | |
369 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
370 Message _withArgumentsExtraneousModifier(Token token) { | |
371 String lexeme = token.lexeme; | |
372 return new Message(codeExtraneousModifier, | |
373 message: """Can't have modifier '$lexeme' here.""", | |
374 tip: """Try removing '$lexeme'.""", | |
375 arguments: {'token': token}); | |
376 } | |
377 | |
378 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
379 const Code<Null> codeEmptyOptionalParameterList = | |
380 messageEmptyOptionalParameterList; | |
381 | |
382 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
383 const MessageCode messageEmptyOptionalParameterList = const MessageCode( | |
384 "EmptyOptionalParameterList", | |
385 dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", | |
386 message: r"""Optional parameter lists cannot be empty.""", | |
387 tip: r"""Try adding an optional parameter to the list."""); | |
388 | |
389 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
390 const Template<Message Function(String name, String name2)> | |
391 templateInternalProblemNotFoundIn = | |
392 const Template<Message Function(String name, String name2)>( | |
393 messageTemplate: r"""Couldn't find '#name' in '#name2'.""", | |
394 withArguments: _withArgumentsInternalProblemNotFoundIn); | |
395 | |
396 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
397 const Code<Message Function(String name, String name2)> | |
398 codeInternalProblemNotFoundIn = | |
399 const Code<Message Function(String name, String name2)>( | |
400 "InternalProblemNotFoundIn", | |
401 templateInternalProblemNotFoundIn, | |
402 ); | |
403 | |
404 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
405 Message _withArgumentsInternalProblemNotFoundIn(String name, String name2) { | |
406 return new Message(codeInternalProblemNotFoundIn, | |
407 message: """Couldn't find '$name' in '$name2'.""", | |
408 arguments: {'name': name, 'name2': name2}); | |
409 } | |
410 | |
411 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
412 const Template<Message Function(String name)> templateTypeNotFound = | |
413 const Template<Message Function(String name)>( | |
414 messageTemplate: r"""Type '#name' not found.""", | |
415 withArguments: _withArgumentsTypeNotFound); | |
416 | |
417 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
418 const Code<Message Function(String name)> codeTypeNotFound = | |
419 const Code<Message Function(String name)>( | |
420 "TypeNotFound", | |
421 templateTypeNotFound, | |
422 ); | |
423 | |
424 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
425 Message _withArgumentsTypeNotFound(String name) { | |
426 return new Message(codeTypeNotFound, | |
427 message: """Type '$name' not found.""", arguments: {'name': name}); | |
428 } | |
429 | |
430 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
431 const Template<Message Function(String name)> | |
432 templateInternalProblemSuperclassNotFound = | |
433 const Template<Message Function(String name)>( | |
434 messageTemplate: r"""Superclass not found '#name'.""", | |
435 withArguments: _withArgumentsInternalProblemSuperclassNotFound); | |
436 | |
437 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
438 const Code<Message Function(String name)> | |
439 codeInternalProblemSuperclassNotFound = | |
440 const Code<Message Function(String name)>( | |
441 "InternalProblemSuperclassNotFound", | |
442 templateInternalProblemSuperclassNotFound, | |
443 ); | |
444 | |
445 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
446 Message _withArgumentsInternalProblemSuperclassNotFound(String name) { | |
447 return new Message(codeInternalProblemSuperclassNotFound, | |
448 message: """Superclass not found '$name'.""", arguments: {'name': name}); | |
449 } | |
450 | |
451 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
452 const Template<Message Function(String string)> templateUnterminatedString = | |
453 const Template<Message Function(String string)>( | |
454 messageTemplate: r"""String must end with #string.""", | |
455 withArguments: _withArgumentsUnterminatedString); | |
456 | |
457 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
458 const Code<Message Function(String string)> codeUnterminatedString = | |
459 const Code<Message Function(String string)>( | |
460 "UnterminatedString", templateUnterminatedString, | |
461 analyzerCode: "UNTERMINATED_STRING_LITERAL", | |
462 dart2jsCode: "UNTERMINATED_STRING"); | |
463 | |
464 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
465 Message _withArgumentsUnterminatedString(String string) { | |
466 return new Message(codeUnterminatedString, | |
467 message: """String must end with $string.""", | |
468 arguments: {'string': string}); | 292 arguments: {'string': string}); |
469 } | 293 } |
470 | 294 |
471 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 295 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
472 const Code<Null> codeAwaitNotAsync = messageAwaitNotAsync; | 296 const Template<Message Function(Token token)> templateExpectedClassBody = |
473 | 297 const Template<Message Function(Token token)>( |
474 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 298 messageTemplate: r"""Expected a class body, but got '#lexeme'.""", |
475 const MessageCode messageAwaitNotAsync = const MessageCode("AwaitNotAsync", | 299 withArguments: _withArgumentsExpectedClassBody); |
476 dart2jsCode: "*ignored*", | 300 |
477 message: r"""'await' can only be used in 'async' or 'async*' methods."""); | 301 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
478 | 302 const Code<Message Function(Token token)> codeExpectedClassBody = |
479 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 303 const Code<Message Function(Token token)>( |
480 const Code<Null> codeInternalProblemBodyOnAbstractMethod = | 304 "ExpectedClassBody", templateExpectedClassBody, |
481 messageInternalProblemBodyOnAbstractMethod; | 305 dart2jsCode: "*fatal*"); |
482 | 306 |
483 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 307 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
484 const MessageCode messageInternalProblemBodyOnAbstractMethod = | 308 Message _withArgumentsExpectedClassBody(Token token) { |
485 const MessageCode("InternalProblemBodyOnAbstractMethod", | 309 String lexeme = token.lexeme; |
486 message: r"""Attempting to set body on abstract method."""); | 310 return new Message(codeExpectedClassBody, |
| 311 message: """Expected a class body, but got '$lexeme'.""", |
| 312 arguments: {'token': token}); |
| 313 } |
| 314 |
| 315 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 316 const Template<Message Function(Token token)> templateExpectedClassBodyToSkip = |
| 317 const Template<Message Function(Token token)>( |
| 318 messageTemplate: r"""Expected a class body, but got '#lexeme'.""", |
| 319 withArguments: _withArgumentsExpectedClassBodyToSkip); |
| 320 |
| 321 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 322 const Code<Message Function(Token token)> codeExpectedClassBodyToSkip = |
| 323 const Code<Message Function(Token token)>( |
| 324 "ExpectedClassBodyToSkip", templateExpectedClassBodyToSkip, |
| 325 dart2jsCode: "*fatal*"); |
| 326 |
| 327 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 328 Message _withArgumentsExpectedClassBodyToSkip(Token token) { |
| 329 String lexeme = token.lexeme; |
| 330 return new Message(codeExpectedClassBodyToSkip, |
| 331 message: """Expected a class body, but got '$lexeme'.""", |
| 332 arguments: {'token': token}); |
| 333 } |
| 334 |
| 335 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 336 const Template<Message Function(Token token)> templateExpectedDeclaration = |
| 337 const Template<Message Function(Token token)>( |
| 338 messageTemplate: r"""Expected a declaration, but got '#lexeme'.""", |
| 339 withArguments: _withArgumentsExpectedDeclaration); |
| 340 |
| 341 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 342 const Code<Message Function(Token token)> codeExpectedDeclaration = |
| 343 const Code<Message Function(Token token)>( |
| 344 "ExpectedDeclaration", templateExpectedDeclaration, |
| 345 dart2jsCode: "*fatal*"); |
| 346 |
| 347 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 348 Message _withArgumentsExpectedDeclaration(Token token) { |
| 349 String lexeme = token.lexeme; |
| 350 return new Message(codeExpectedDeclaration, |
| 351 message: """Expected a declaration, but got '$lexeme'.""", |
| 352 arguments: {'token': token}); |
| 353 } |
| 354 |
| 355 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 356 const Template<Message Function(Token token)> templateExpectedExpression = |
| 357 const Template<Message Function(Token token)>( |
| 358 messageTemplate: r"""Expected an expression, but got '#lexeme'.""", |
| 359 withArguments: _withArgumentsExpectedExpression); |
| 360 |
| 361 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 362 const Code<Message Function(Token token)> codeExpectedExpression = |
| 363 const Code<Message Function(Token token)>( |
| 364 "ExpectedExpression", templateExpectedExpression, |
| 365 dart2jsCode: "*fatal*"); |
| 366 |
| 367 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 368 Message _withArgumentsExpectedExpression(Token token) { |
| 369 String lexeme = token.lexeme; |
| 370 return new Message(codeExpectedExpression, |
| 371 message: """Expected an expression, but got '$lexeme'.""", |
| 372 arguments: {'token': token}); |
| 373 } |
487 | 374 |
488 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 375 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
489 const Template<Message Function(Token token)> templateExpectedFunctionBody = | 376 const Template<Message Function(Token token)> templateExpectedFunctionBody = |
490 const Template<Message Function(Token token)>( | 377 const Template<Message Function(Token token)>( |
491 messageTemplate: r"""Expected a function body, but got '#lexeme'.""", | 378 messageTemplate: r"""Expected a function body, but got '#lexeme'.""", |
492 withArguments: _withArgumentsExpectedFunctionBody); | 379 withArguments: _withArgumentsExpectedFunctionBody); |
493 | 380 |
494 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 381 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
495 const Code<Message Function(Token token)> codeExpectedFunctionBody = | 382 const Code<Message Function(Token token)> codeExpectedFunctionBody = |
496 const Code<Message Function(Token token)>( | 383 const Code<Message Function(Token token)>( |
(...skipping 12 matching lines...) Expand all Loading... |
509 const Code<Null> codeExpectedHexDigit = messageExpectedHexDigit; | 396 const Code<Null> codeExpectedHexDigit = messageExpectedHexDigit; |
510 | 397 |
511 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 398 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
512 const MessageCode messageExpectedHexDigit = const MessageCode( | 399 const MessageCode messageExpectedHexDigit = const MessageCode( |
513 "ExpectedHexDigit", | 400 "ExpectedHexDigit", |
514 analyzerCode: "MISSING_HEX_DIGIT", | 401 analyzerCode: "MISSING_HEX_DIGIT", |
515 dart2jsCode: "HEX_DIGIT_EXPECTED", | 402 dart2jsCode: "HEX_DIGIT_EXPECTED", |
516 message: r"""A hex digit (0-9 or A-F) must follow '0x'."""); | 403 message: r"""A hex digit (0-9 or A-F) must follow '0x'."""); |
517 | 404 |
518 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 405 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
519 const Code<Null> codeEmptyNamedParameterList = messageEmptyNamedParameterList; | 406 const Template<Message Function(Token token)> templateExpectedIdentifier = |
520 | 407 const Template<Message Function(Token token)>( |
521 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 408 messageTemplate: |
522 const MessageCode messageEmptyNamedParameterList = const MessageCode( | 409 r"""'#lexeme' is a reserved word and can't be used here.""", |
523 "EmptyNamedParameterList", | 410 tipTemplate: r"""Try using a different name.""", |
524 dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST", | 411 withArguments: _withArgumentsExpectedIdentifier); |
525 message: r"""Named parameter lists cannot be empty.""", | 412 |
526 tip: r"""Try adding a named parameter to the list."""); | 413 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
527 | 414 const Code<Message Function(Token token)> codeExpectedIdentifier = |
528 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 415 const Code<Message Function(Token token)>( |
529 const Code<Null> codeUnsupportedPrefixPlus = messageUnsupportedPrefixPlus; | 416 "ExpectedIdentifier", templateExpectedIdentifier, |
530 | 417 dart2jsCode: "EXPECTED_IDENTIFIER"); |
531 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 418 |
532 const MessageCode messageUnsupportedPrefixPlus = const MessageCode( | 419 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
533 "UnsupportedPrefixPlus", | 420 Message _withArgumentsExpectedIdentifier(Token token) { |
534 dart2jsCode: "UNSUPPORTED_PREFIX_PLUS", | 421 String lexeme = token.lexeme; |
535 message: r"""'+' is not a prefix operator. """, | 422 return new Message(codeExpectedIdentifier, |
536 tip: r"""Try removing '+'."""); | 423 message: """'$lexeme' is a reserved word and can't be used here.""", |
| 424 tip: """Try using a different name.""", |
| 425 arguments: {'token': token}); |
| 426 } |
| 427 |
| 428 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 429 const Code<Null> codeExpectedOpenParens = messageExpectedOpenParens; |
| 430 |
| 431 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 432 const MessageCode messageExpectedOpenParens = const MessageCode( |
| 433 "ExpectedOpenParens", |
| 434 dart2jsCode: "GENERIC", |
| 435 message: r"""Expected '('."""); |
537 | 436 |
538 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 437 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
539 const Template<Message Function(Token token)> templateExpectedString = | 438 const Template<Message Function(Token token)> templateExpectedString = |
540 const Template<Message Function(Token token)>( | 439 const Template<Message Function(Token token)>( |
541 messageTemplate: r"""Expected a String, but got '#lexeme'.""", | 440 messageTemplate: r"""Expected a String, but got '#lexeme'.""", |
542 withArguments: _withArgumentsExpectedString); | 441 withArguments: _withArgumentsExpectedString); |
543 | 442 |
544 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 443 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
545 const Code<Message Function(Token token)> codeExpectedString = | 444 const Code<Message Function(Token token)> codeExpectedString = |
546 const Code<Message Function(Token token)>( | 445 const Code<Message Function(Token token)>( |
547 "ExpectedString", templateExpectedString, | 446 "ExpectedString", templateExpectedString, |
548 dart2jsCode: "*fatal*"); | 447 dart2jsCode: "*fatal*"); |
549 | 448 |
550 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 449 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
551 Message _withArgumentsExpectedString(Token token) { | 450 Message _withArgumentsExpectedString(Token token) { |
552 String lexeme = token.lexeme; | 451 String lexeme = token.lexeme; |
553 return new Message(codeExpectedString, | 452 return new Message(codeExpectedString, |
554 message: """Expected a String, but got '$lexeme'.""", | 453 message: """Expected a String, but got '$lexeme'.""", |
555 arguments: {'token': token}); | 454 arguments: {'token': token}); |
556 } | 455 } |
557 | 456 |
558 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 457 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 458 const Template<Message Function(Token token)> templateExpectedType = |
| 459 const Template<Message Function(Token token)>( |
| 460 messageTemplate: r"""Expected a type, but got '#lexeme'.""", |
| 461 withArguments: _withArgumentsExpectedType); |
| 462 |
| 463 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 464 const Code<Message Function(Token token)> codeExpectedType = |
| 465 const Code<Message Function(Token token)>( |
| 466 "ExpectedType", templateExpectedType, |
| 467 dart2jsCode: "*fatal*"); |
| 468 |
| 469 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 470 Message _withArgumentsExpectedType(Token token) { |
| 471 String lexeme = token.lexeme; |
| 472 return new Message(codeExpectedType, |
| 473 message: """Expected a type, but got '$lexeme'.""", |
| 474 arguments: {'token': token}); |
| 475 } |
| 476 |
| 477 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 478 const Template<Message Function(Token token)> templateExtraneousModifier = |
| 479 const Template<Message Function(Token token)>( |
| 480 messageTemplate: r"""Can't have modifier '#lexeme' here.""", |
| 481 tipTemplate: r"""Try removing '#lexeme'.""", |
| 482 withArguments: _withArgumentsExtraneousModifier); |
| 483 |
| 484 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 485 const Code<Message Function(Token token)> codeExtraneousModifier = |
| 486 const Code<Message Function(Token token)>( |
| 487 "ExtraneousModifier", templateExtraneousModifier, |
| 488 dart2jsCode: "EXTRANEOUS_MODIFIER"); |
| 489 |
| 490 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 491 Message _withArgumentsExtraneousModifier(Token token) { |
| 492 String lexeme = token.lexeme; |
| 493 return new Message(codeExtraneousModifier, |
| 494 message: """Can't have modifier '$lexeme' here.""", |
| 495 tip: """Try removing '$lexeme'.""", |
| 496 arguments: {'token': token}); |
| 497 } |
| 498 |
| 499 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 500 const Code<Null> codeFactoryNotSync = messageFactoryNotSync; |
| 501 |
| 502 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 503 const MessageCode messageFactoryNotSync = const MessageCode("FactoryNotSync", |
| 504 dart2jsCode: "*ignored*", |
| 505 message: r"""Factories can't use 'async', 'async*', or 'sync*'."""); |
| 506 |
| 507 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 508 const Template<Message Function(String name)> templateFastaCLIArgumentRequired = |
| 509 const Template<Message Function(String name)>( |
| 510 messageTemplate: r"""Expected value after '#name'.""", |
| 511 withArguments: _withArgumentsFastaCLIArgumentRequired); |
| 512 |
| 513 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 514 const Code<Message Function(String name)> codeFastaCLIArgumentRequired = |
| 515 const Code<Message Function(String name)>( |
| 516 "FastaCLIArgumentRequired", |
| 517 templateFastaCLIArgumentRequired, |
| 518 ); |
| 519 |
| 520 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 521 Message _withArgumentsFastaCLIArgumentRequired(String name) { |
| 522 return new Message(codeFastaCLIArgumentRequired, |
| 523 message: """Expected value after '$name'.""", arguments: {'name': name}); |
| 524 } |
| 525 |
| 526 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 527 const Code<Null> codeFastaUsageLong = messageFastaUsageLong; |
| 528 |
| 529 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 530 const MessageCode messageFastaUsageLong = |
| 531 const MessageCode("FastaUsageLong", message: r"""Supported options: |
| 532 |
| 533 -o <file>, --output=<file> |
| 534 Generate the output into <file>. |
| 535 |
| 536 -h, /h, /?, --help |
| 537 Display this message (add -v for information about all options). |
| 538 |
| 539 -v, --verbose |
| 540 Display verbose information. |
| 541 |
| 542 -- |
| 543 Stop option parsing, the rest of the command line is assumed to be |
| 544 file names or arguments to the Dart program. |
| 545 |
| 546 --packages=<file> |
| 547 Use package resolution configuration <file>, which should contain a mapping |
| 548 of package names to paths. |
| 549 |
| 550 --platform=<file> |
| 551 Read the SDK platform from <file>, which should be in Dill/Kernel IR format |
| 552 and contain the Dart SDK. |
| 553 |
| 554 --target=none|vm|vmcc|vmreify|flutter |
| 555 Specify the target configuration. |
| 556 |
| 557 --verify |
| 558 Check that the generated output is free of various problems. This is mostly |
| 559 useful for developers of this compiler or Kernel transformations. |
| 560 |
| 561 --dump-ir |
| 562 Print compiled libraries in Kernel source notation. |
| 563 |
| 564 --exclude-source |
| 565 Do not include source code in the dill file. |
| 566 |
| 567 --compile-sdk=<patched_sdk> |
| 568 Compile the SDK from scratch instead of reading it from 'platform.dill'. |
| 569 |
| 570 --sdk=<patched_sdk> |
| 571 Location of the SDK sources for use when compiling additional platform |
| 572 libraries. |
| 573 |
| 574 --fatal=errors |
| 575 --fatal=warnings |
| 576 --fatal=nits |
| 577 Makes messages of the given kinds fatal, that is, immediately stop the |
| 578 compiler with a non-zero exit-code. In --verbose mode, also display an |
| 579 internal stack trace from the compiler. Multiple kinds can be separated by |
| 580 commas, for example, --fatal=errors,warnings."""); |
| 581 |
| 582 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
559 const Code<Null> codeFastaUsageShort = messageFastaUsageShort; | 583 const Code<Null> codeFastaUsageShort = messageFastaUsageShort; |
560 | 584 |
561 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 585 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
562 const MessageCode messageFastaUsageShort = | 586 const MessageCode messageFastaUsageShort = |
563 const MessageCode("FastaUsageShort", message: r"""Frequently used options: | 587 const MessageCode("FastaUsageShort", message: r"""Frequently used options: |
564 | 588 |
565 -o <file> Generate the output into <file>. | 589 -o <file> Generate the output into <file>. |
566 -h Display this message (add -v for information about all options).""")
; | 590 -h Display this message (add -v for information about all options).""")
; |
567 | 591 |
568 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 592 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
569 const Code<Null> codeTypeAfterVar = messageTypeAfterVar; | 593 const Code<Null> codeFinalFieldWithoutInitializer = |
570 | 594 messageFinalFieldWithoutInitializer; |
571 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 595 |
572 const MessageCode messageTypeAfterVar = const MessageCode("TypeAfterVar", | 596 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
573 dart2jsCode: "EXTRANEOUS_MODIFIER", | 597 const MessageCode messageFinalFieldWithoutInitializer = const MessageCode( |
574 message: r"""Can't have both a type and 'var'.""", | 598 "FinalFieldWithoutInitializer", |
575 tip: r"""Try removing 'var.'"""); | 599 dart2jsCode: "*ignored*", |
| 600 message: r"""A 'final' field must be initialized.""", |
| 601 tip: r"""Try adding '= <initializer>'."""); |
| 602 |
| 603 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 604 const Code<Null> codeFunctionTypeDefaultValue = messageFunctionTypeDefaultValue; |
| 605 |
| 606 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 607 const MessageCode messageFunctionTypeDefaultValue = const MessageCode( |
| 608 "FunctionTypeDefaultValue", |
| 609 dart2jsCode: "*ignored*", |
| 610 message: r"""Can't have a default value in a function type."""); |
| 611 |
| 612 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 613 const Code<Null> codeGeneratorReturnsValue = messageGeneratorReturnsValue; |
| 614 |
| 615 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 616 const MessageCode messageGeneratorReturnsValue = const MessageCode( |
| 617 "GeneratorReturnsValue", |
| 618 dart2jsCode: "*ignored*", |
| 619 message: r"""'sync*' and 'async*' can't return a value."""); |
| 620 |
| 621 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 622 const Template<Message Function(String name)> templateGetterNotFound = |
| 623 const Template<Message Function(String name)>( |
| 624 messageTemplate: r"""Getter not found: '#name'.""", |
| 625 withArguments: _withArgumentsGetterNotFound); |
| 626 |
| 627 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 628 const Code<Message Function(String name)> codeGetterNotFound = |
| 629 const Code<Message Function(String name)>( |
| 630 "GetterNotFound", |
| 631 templateGetterNotFound, |
| 632 ); |
| 633 |
| 634 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 635 Message _withArgumentsGetterNotFound(String name) { |
| 636 return new Message(codeGetterNotFound, |
| 637 message: """Getter not found: '$name'.""", arguments: {'name': name}); |
| 638 } |
| 639 |
| 640 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 641 const Code<Null> codeGetterWithFormals = messageGetterWithFormals; |
| 642 |
| 643 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 644 const MessageCode messageGetterWithFormals = const MessageCode( |
| 645 "GetterWithFormals", |
| 646 dart2jsCode: "*ignored*", |
| 647 message: r"""A getter can't have formal parameters.""", |
| 648 tip: r"""Try removing '(...)'."""); |
| 649 |
| 650 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 651 const Code<Null> codeInternalProblemAlreadyInitialized = |
| 652 messageInternalProblemAlreadyInitialized; |
| 653 |
| 654 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 655 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( |
| 656 "InternalProblemAlreadyInitialized", |
| 657 message: r"""Attempt to set initializer on field without initializer."""); |
| 658 |
| 659 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 660 const Code<Null> codeInternalProblemBodyOnAbstractMethod = |
| 661 messageInternalProblemBodyOnAbstractMethod; |
| 662 |
| 663 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 664 const MessageCode messageInternalProblemBodyOnAbstractMethod = |
| 665 const MessageCode("InternalProblemBodyOnAbstractMethod", |
| 666 message: r"""Attempting to set body on abstract method."""); |
| 667 |
| 668 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 669 const Template<Message Function(String name, Uri uri_)> |
| 670 templateInternalProblemConstructorNotFound = |
| 671 const Template<Message Function(String name, Uri uri_)>( |
| 672 messageTemplate: r"""No constructor named '#name' in '#uri'.""", |
| 673 withArguments: _withArgumentsInternalProblemConstructorNotFound); |
| 674 |
| 675 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 676 const Code<Message Function(String name, Uri uri_)> |
| 677 codeInternalProblemConstructorNotFound = |
| 678 const Code<Message Function(String name, Uri uri_)>( |
| 679 "InternalProblemConstructorNotFound", |
| 680 templateInternalProblemConstructorNotFound, |
| 681 ); |
| 682 |
| 683 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 684 Message _withArgumentsInternalProblemConstructorNotFound( |
| 685 String name, Uri uri_) { |
| 686 String uri = relativizeUri(uri_); |
| 687 return new Message(codeInternalProblemConstructorNotFound, |
| 688 message: """No constructor named '$name' in '$uri'.""", |
| 689 arguments: {'name': name, 'uri': uri_}); |
| 690 } |
| 691 |
| 692 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 693 const Code<Null> codeInternalProblemExtendingUnmodifiableScope = |
| 694 messageInternalProblemExtendingUnmodifiableScope; |
| 695 |
| 696 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 697 const MessageCode messageInternalProblemExtendingUnmodifiableScope = |
| 698 const MessageCode("InternalProblemExtendingUnmodifiableScope", |
| 699 message: r"""Can't extend an unmodifiable scope."""); |
| 700 |
| 701 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 702 const Template<Message Function(String name)> templateInternalProblemNotFound = |
| 703 const Template<Message Function(String name)>( |
| 704 messageTemplate: r"""Couldn't find '#name'.""", |
| 705 withArguments: _withArgumentsInternalProblemNotFound); |
| 706 |
| 707 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 708 const Code<Message Function(String name)> codeInternalProblemNotFound = |
| 709 const Code<Message Function(String name)>( |
| 710 "InternalProblemNotFound", |
| 711 templateInternalProblemNotFound, |
| 712 ); |
| 713 |
| 714 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 715 Message _withArgumentsInternalProblemNotFound(String name) { |
| 716 return new Message(codeInternalProblemNotFound, |
| 717 message: """Couldn't find '$name'.""", arguments: {'name': name}); |
| 718 } |
| 719 |
| 720 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 721 const Template<Message Function(String name, String name2)> |
| 722 templateInternalProblemNotFoundIn = |
| 723 const Template<Message Function(String name, String name2)>( |
| 724 messageTemplate: r"""Couldn't find '#name' in '#name2'.""", |
| 725 withArguments: _withArgumentsInternalProblemNotFoundIn); |
| 726 |
| 727 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 728 const Code<Message Function(String name, String name2)> |
| 729 codeInternalProblemNotFoundIn = |
| 730 const Code<Message Function(String name, String name2)>( |
| 731 "InternalProblemNotFoundIn", |
| 732 templateInternalProblemNotFoundIn, |
| 733 ); |
| 734 |
| 735 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 736 Message _withArgumentsInternalProblemNotFoundIn(String name, String name2) { |
| 737 return new Message(codeInternalProblemNotFoundIn, |
| 738 message: """Couldn't find '$name' in '$name2'.""", |
| 739 arguments: {'name': name, 'name2': name2}); |
| 740 } |
| 741 |
| 742 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 743 const Code<Null> codeInternalProblemPreviousTokenNotFound = |
| 744 messageInternalProblemPreviousTokenNotFound; |
| 745 |
| 746 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 747 const MessageCode messageInternalProblemPreviousTokenNotFound = |
| 748 const MessageCode("InternalProblemPreviousTokenNotFound", |
| 749 message: r"""Couldn't find previous token."""); |
576 | 750 |
577 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 751 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
578 const Template<Message Function(String name)> | 752 const Template<Message Function(String name)> |
579 templateAbstractClassInstantiation = | 753 templateInternalProblemPrivateConstructorAccess = |
580 const Template<Message Function(String name)>( | 754 const Template<Message Function(String name)>( |
581 messageTemplate: | 755 messageTemplate: r"""Can't access private constructor '#name'.""", |
582 r"""The class '#name' is abstract and can't be instantiated.""", | 756 withArguments: _withArgumentsInternalProblemPrivateConstructorAccess); |
583 withArguments: _withArgumentsAbstractClassInstantiation); | 757 |
584 | 758 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
585 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 759 const Code<Message Function(String name)> |
586 const Code<Message Function(String name)> codeAbstractClassInstantiation = | 760 codeInternalProblemPrivateConstructorAccess = |
587 const Code<Message Function(String name)>( | 761 const Code<Message Function(String name)>( |
588 "AbstractClassInstantiation", | 762 "InternalProblemPrivateConstructorAccess", |
589 templateAbstractClassInstantiation, | 763 templateInternalProblemPrivateConstructorAccess, |
590 ); | 764 ); |
591 | 765 |
592 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 766 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
593 Message _withArgumentsAbstractClassInstantiation(String name) { | 767 Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) { |
594 return new Message(codeAbstractClassInstantiation, | 768 return new Message(codeInternalProblemPrivateConstructorAccess, |
595 message: """The class '$name' is abstract and can't be instantiated.""", | 769 message: """Can't access private constructor '$name'.""", |
596 arguments: {'name': name}); | 770 arguments: {'name': name}); |
597 } | 771 } |
598 | 772 |
599 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 773 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
600 const Code<Null> codeAbstractNotSync = messageAbstractNotSync; | |
601 | |
602 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
603 const MessageCode messageAbstractNotSync = const MessageCode("AbstractNotSync", | |
604 dart2jsCode: "*ignored*", | |
605 message: r"""Abstract methods can't use 'async', 'async*', or 'sync*'."""); | |
606 | |
607 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
608 const Template<Message Function(String name, String string)> | 774 const Template<Message Function(String name, String string)> |
609 templateInternalProblemStackNotEmpty = | 775 templateInternalProblemStackNotEmpty = |
610 const Template<Message Function(String name, String string)>( | 776 const Template<Message Function(String name, String string)>( |
611 messageTemplate: r"""#name.stack isn't empty: | 777 messageTemplate: r"""#name.stack isn't empty: |
612 #string""", withArguments: _withArgumentsInternalProblemStackNotEmpty); | 778 #string""", withArguments: _withArgumentsInternalProblemStackNotEmpty); |
613 | 779 |
614 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 780 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
615 const Code<Message Function(String name, String string)> | 781 const Code<Message Function(String name, String string)> |
616 codeInternalProblemStackNotEmpty = | 782 codeInternalProblemStackNotEmpty = |
617 const Code<Message Function(String name, String string)>( | 783 const Code<Message Function(String name, String string)>( |
618 "InternalProblemStackNotEmpty", | 784 "InternalProblemStackNotEmpty", |
619 templateInternalProblemStackNotEmpty, | 785 templateInternalProblemStackNotEmpty, |
620 ); | 786 ); |
621 | 787 |
622 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 788 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
623 Message _withArgumentsInternalProblemStackNotEmpty(String name, String string) { | 789 Message _withArgumentsInternalProblemStackNotEmpty(String name, String string) { |
624 return new Message(codeInternalProblemStackNotEmpty, | 790 return new Message(codeInternalProblemStackNotEmpty, |
625 message: """$name.stack isn't empty: | 791 message: """$name.stack isn't empty: |
626 $string""", arguments: {'name': name, 'string': string}); | 792 $string""", arguments: {'name': name, 'string': string}); |
627 } | 793 } |
628 | 794 |
629 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 795 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
630 const Template<Message Function(String name)> templateGetterNotFound = | |
631 const Template<Message Function(String name)>( | |
632 messageTemplate: r"""Getter not found: '#name'.""", | |
633 withArguments: _withArgumentsGetterNotFound); | |
634 | |
635 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
636 const Code<Message Function(String name)> codeGetterNotFound = | |
637 const Code<Message Function(String name)>( | |
638 "GetterNotFound", | |
639 templateGetterNotFound, | |
640 ); | |
641 | |
642 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
643 Message _withArgumentsGetterNotFound(String name) { | |
644 return new Message(codeGetterNotFound, | |
645 message: """Getter not found: '$name'.""", arguments: {'name': name}); | |
646 } | |
647 | |
648 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
649 const Template<Message Function(String name)> | 796 const Template<Message Function(String name)> |
650 templateInternalProblemPrivateConstructorAccess = | 797 templateInternalProblemSuperclassNotFound = |
651 const Template<Message Function(String name)>( | 798 const Template<Message Function(String name)>( |
652 messageTemplate: r"""Can't access private constructor '#name'.""", | 799 messageTemplate: r"""Superclass not found '#name'.""", |
653 withArguments: _withArgumentsInternalProblemPrivateConstructorAccess); | 800 withArguments: _withArgumentsInternalProblemSuperclassNotFound); |
654 | 801 |
655 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 802 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
656 const Code<Message Function(String name)> | 803 const Code<Message Function(String name)> |
657 codeInternalProblemPrivateConstructorAccess = | 804 codeInternalProblemSuperclassNotFound = |
658 const Code<Message Function(String name)>( | 805 const Code<Message Function(String name)>( |
659 "InternalProblemPrivateConstructorAccess", | 806 "InternalProblemSuperclassNotFound", |
660 templateInternalProblemPrivateConstructorAccess, | 807 templateInternalProblemSuperclassNotFound, |
661 ); | 808 ); |
662 | 809 |
663 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 810 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
664 Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) { | 811 Message _withArgumentsInternalProblemSuperclassNotFound(String name) { |
665 return new Message(codeInternalProblemPrivateConstructorAccess, | 812 return new Message(codeInternalProblemSuperclassNotFound, |
666 message: """Can't access private constructor '$name'.""", | 813 message: """Superclass not found '$name'.""", arguments: {'name': name}); |
667 arguments: {'name': name}); | 814 } |
668 } | 815 |
669 | 816 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
670 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 817 const Template<Message Function(String string, String string2)> |
671 const Code<Null> codeListLiteralTooManyTypeArguments = | 818 templateInternalProblemUnexpected = |
672 messageListLiteralTooManyTypeArguments; | 819 const Template<Message Function(String string, String string2)>( |
673 | 820 messageTemplate: r"""Expected '#string', but got '#string2'.""", |
674 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 821 withArguments: _withArgumentsInternalProblemUnexpected); |
675 const MessageCode messageListLiteralTooManyTypeArguments = const MessageCode( | 822 |
676 "ListLiteralTooManyTypeArguments", | 823 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
677 message: r"""Too many type arguments on List literal."""); | 824 const Code<Message Function(String string, String string2)> |
678 | 825 codeInternalProblemUnexpected = |
679 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 826 const Code<Message Function(String string, String string2)>( |
680 const Template<Message Function(Token token)> templateExpectedDeclaration = | 827 "InternalProblemUnexpected", |
681 const Template<Message Function(Token token)>( | 828 templateInternalProblemUnexpected, |
682 messageTemplate: r"""Expected a declaration, but got '#lexeme'.""", | 829 ); |
683 withArguments: _withArgumentsExpectedDeclaration); | 830 |
684 | 831 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
685 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 832 Message _withArgumentsInternalProblemUnexpected(String string, String string2) { |
686 const Code<Message Function(Token token)> codeExpectedDeclaration = | 833 return new Message(codeInternalProblemUnexpected, |
687 const Code<Message Function(Token token)>( | 834 message: """Expected '$string', but got '$string2'.""", |
688 "ExpectedDeclaration", templateExpectedDeclaration, | 835 arguments: {'string': string, 'string2': string2}); |
689 dart2jsCode: "*fatal*"); | 836 } |
690 | |
691 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
692 Message _withArgumentsExpectedDeclaration(Token token) { | |
693 String lexeme = token.lexeme; | |
694 return new Message(codeExpectedDeclaration, | |
695 message: """Expected a declaration, but got '$lexeme'.""", | |
696 arguments: {'token': token}); | |
697 } | |
698 | |
699 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
700 const Template<Message Function(String string)> | |
701 templateInternalProblemUnimplemented = | |
702 const Template<Message Function(String string)>( | |
703 messageTemplate: r"""Unimplemented #string.""", | |
704 withArguments: _withArgumentsInternalProblemUnimplemented); | |
705 | |
706 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
707 const Code<Message Function(String string)> codeInternalProblemUnimplemented = | |
708 const Code<Message Function(String string)>( | |
709 "InternalProblemUnimplemented", | |
710 templateInternalProblemUnimplemented, | |
711 ); | |
712 | |
713 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
714 Message _withArgumentsInternalProblemUnimplemented(String string) { | |
715 return new Message(codeInternalProblemUnimplemented, | |
716 message: """Unimplemented $string.""", arguments: {'string': string}); | |
717 } | |
718 | |
719 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
720 const Template<Message Function(String name)> templateConstructorNotFound = | |
721 const Template<Message Function(String name)>( | |
722 messageTemplate: r"""Couldn't find constructor '#name'.""", | |
723 withArguments: _withArgumentsConstructorNotFound); | |
724 | |
725 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
726 const Code<Message Function(String name)> codeConstructorNotFound = | |
727 const Code<Message Function(String name)>( | |
728 "ConstructorNotFound", | |
729 templateConstructorNotFound, | |
730 ); | |
731 | |
732 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
733 Message _withArgumentsConstructorNotFound(String name) { | |
734 return new Message(codeConstructorNotFound, | |
735 message: """Couldn't find constructor '$name'.""", | |
736 arguments: {'name': name}); | |
737 } | |
738 | |
739 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
740 const Template< | |
741 Message Function( | |
742 int | |
743 codePoint)> templateAsciiControlCharacter = const Template< | |
744 Message Function(int codePoint)>( | |
745 messageTemplate: | |
746 r"""The control character #unicode can only be used in strings and comme
nts.""", | |
747 withArguments: _withArgumentsAsciiControlCharacter); | |
748 | |
749 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
750 const Code<Message Function(int codePoint)> codeAsciiControlCharacter = | |
751 const Code<Message Function(int codePoint)>( | |
752 "AsciiControlCharacter", templateAsciiControlCharacter, | |
753 analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); | |
754 | |
755 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
756 Message _withArgumentsAsciiControlCharacter(int codePoint) { | |
757 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | |
758 return new Message(codeAsciiControlCharacter, | |
759 message: | |
760 """The control character $unicode can only be used in strings and comm
ents.""", | |
761 arguments: {'codePoint': codePoint}); | |
762 } | |
763 | |
764 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
765 const Template<Message Function(String string, Token token)> | |
766 templateUnmatchedToken = | |
767 const Template<Message Function(String string, Token token)>( | |
768 messageTemplate: r"""Can't find '#string' to match '#lexeme'.""", | |
769 withArguments: _withArgumentsUnmatchedToken); | |
770 | |
771 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
772 const Code<Message Function(String string, Token token)> codeUnmatchedToken = | |
773 const Code<Message Function(String string, Token token)>( | |
774 "UnmatchedToken", templateUnmatchedToken, | |
775 dart2jsCode: "UNMATCHED_TOKEN"); | |
776 | |
777 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
778 Message _withArgumentsUnmatchedToken(String string, Token token) { | |
779 String lexeme = token.lexeme; | |
780 return new Message(codeUnmatchedToken, | |
781 message: """Can't find '$string' to match '$lexeme'.""", | |
782 arguments: {'string': string, 'token': token}); | |
783 } | |
784 | |
785 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
786 const Template<Message Function(String name)> templateInternalProblemNotFound = | |
787 const Template<Message Function(String name)>( | |
788 messageTemplate: r"""Couldn't find '#name'.""", | |
789 withArguments: _withArgumentsInternalProblemNotFound); | |
790 | |
791 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
792 const Code<Message Function(String name)> codeInternalProblemNotFound = | |
793 const Code<Message Function(String name)>( | |
794 "InternalProblemNotFound", | |
795 templateInternalProblemNotFound, | |
796 ); | |
797 | |
798 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
799 Message _withArgumentsInternalProblemNotFound(String name) { | |
800 return new Message(codeInternalProblemNotFound, | |
801 message: """Couldn't find '$name'.""", arguments: {'name': name}); | |
802 } | |
803 | |
804 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
805 const Code<Null> codeInvalidSyncModifier = messageInvalidSyncModifier; | |
806 | |
807 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
808 const MessageCode messageInvalidSyncModifier = const MessageCode( | |
809 "InvalidSyncModifier", | |
810 dart2jsCode: "INVALID_SYNC_MODIFIER", | |
811 message: r"""Invalid modifier 'sync'.""", | |
812 tip: r"""Try replacing 'sync' with 'sync*'."""); | |
813 | 837 |
814 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 838 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
815 const Template<Message Function(String string, String string2)> | 839 const Template<Message Function(String string, String string2)> |
816 templateInternalProblemUnhandled = | 840 templateInternalProblemUnhandled = |
817 const Template<Message Function(String string, String string2)>( | 841 const Template<Message Function(String string, String string2)>( |
818 messageTemplate: r"""Unhandled #string in #string2.""", | 842 messageTemplate: r"""Unhandled #string in #string2.""", |
819 withArguments: _withArgumentsInternalProblemUnhandled); | 843 withArguments: _withArgumentsInternalProblemUnhandled); |
820 | 844 |
821 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 845 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
822 const Code<Message Function(String string, String string2)> | 846 const Code<Message Function(String string, String string2)> |
823 codeInternalProblemUnhandled = | 847 codeInternalProblemUnhandled = |
824 const Code<Message Function(String string, String string2)>( | 848 const Code<Message Function(String string, String string2)>( |
825 "InternalProblemUnhandled", | 849 "InternalProblemUnhandled", |
826 templateInternalProblemUnhandled, | 850 templateInternalProblemUnhandled, |
827 ); | 851 ); |
828 | 852 |
829 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 853 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
830 Message _withArgumentsInternalProblemUnhandled(String string, String string2) { | 854 Message _withArgumentsInternalProblemUnhandled(String string, String string2) { |
831 return new Message(codeInternalProblemUnhandled, | 855 return new Message(codeInternalProblemUnhandled, |
832 message: """Unhandled $string in $string2.""", | 856 message: """Unhandled $string in $string2.""", |
833 arguments: {'string': string, 'string2': string2}); | 857 arguments: {'string': string, 'string2': string2}); |
834 } | 858 } |
835 | 859 |
836 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 860 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
837 const Template<Message Function(String name)> templateFastaCLIArgumentRequired = | 861 const Template<Message Function(String string)> |
838 const Template<Message Function(String name)>( | 862 templateInternalProblemUnimplemented = |
839 messageTemplate: r"""Expected value after '#name'.""", | 863 const Template<Message Function(String string)>( |
840 withArguments: _withArgumentsFastaCLIArgumentRequired); | 864 messageTemplate: r"""Unimplemented #string.""", |
841 | 865 withArguments: _withArgumentsInternalProblemUnimplemented); |
842 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 866 |
843 const Code<Message Function(String name)> codeFastaCLIArgumentRequired = | 867 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
844 const Code<Message Function(String name)>( | 868 const Code<Message Function(String string)> codeInternalProblemUnimplemented = |
845 "FastaCLIArgumentRequired", | 869 const Code<Message Function(String string)>( |
846 templateFastaCLIArgumentRequired, | 870 "InternalProblemUnimplemented", |
847 ); | 871 templateInternalProblemUnimplemented, |
848 | 872 ); |
849 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 873 |
850 Message _withArgumentsFastaCLIArgumentRequired(String name) { | 874 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
851 return new Message(codeFastaCLIArgumentRequired, | 875 Message _withArgumentsInternalProblemUnimplemented(String string) { |
852 message: """Expected value after '$name'.""", arguments: {'name': name}); | 876 return new Message(codeInternalProblemUnimplemented, |
853 } | 877 message: """Unimplemented $string.""", arguments: {'string': string}); |
854 | 878 } |
855 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 879 |
856 const Code<Null> codeGetterWithFormals = messageGetterWithFormals; | 880 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
857 | 881 const Template<Message Function(String name)> |
858 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 882 templateInternalProblemUnsupported = |
859 const MessageCode messageGetterWithFormals = const MessageCode( | 883 const Template<Message Function(String name)>( |
860 "GetterWithFormals", | 884 messageTemplate: r"""Unsupported operation: '#name'.""", |
861 dart2jsCode: "*ignored*", | 885 withArguments: _withArgumentsInternalProblemUnsupported); |
862 message: r"""A getter can't have formal parameters.""", | 886 |
863 tip: r"""Try removing '(...)'."""); | 887 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 888 const Code<Message Function(String name)> codeInternalProblemUnsupported = |
| 889 const Code<Message Function(String name)>( |
| 890 "InternalProblemUnsupported", |
| 891 templateInternalProblemUnsupported, |
| 892 ); |
| 893 |
| 894 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 895 Message _withArgumentsInternalProblemUnsupported(String name) { |
| 896 return new Message(codeInternalProblemUnsupported, |
| 897 message: """Unsupported operation: '$name'.""", |
| 898 arguments: {'name': name}); |
| 899 } |
| 900 |
| 901 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 902 const Code<Null> codeInvalidAwaitFor = messageInvalidAwaitFor; |
| 903 |
| 904 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 905 const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor", |
| 906 dart2jsCode: "INVALID_AWAIT_FOR", |
| 907 message: |
| 908 r"""'await' is only supported in methods with an 'async' or 'async*' bod
y modifier.""", |
| 909 tip: |
| 910 r"""Try adding 'async' or 'async*' to the method body or removing the 'a
wait' keyword."""); |
| 911 |
| 912 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 913 const Code<Null> codeInvalidInlineFunctionType = |
| 914 messageInvalidInlineFunctionType; |
| 915 |
| 916 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 917 const MessageCode messageInvalidInlineFunctionType = const MessageCode( |
| 918 "InvalidInlineFunctionType", |
| 919 dart2jsCode: "INVALID_INLINE_FUNCTION_TYPE", |
| 920 message: r"""Invalid inline function type.""", |
| 921 tip: |
| 922 r"""Try changing the inline function type (as in 'int f()') to a prefixe
d function type using the `Function` keyword (as in 'int Function() f')."""); |
| 923 |
| 924 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 925 const Code<Null> codeInvalidSyncModifier = messageInvalidSyncModifier; |
| 926 |
| 927 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 928 const MessageCode messageInvalidSyncModifier = const MessageCode( |
| 929 "InvalidSyncModifier", |
| 930 dart2jsCode: "INVALID_SYNC_MODIFIER", |
| 931 message: r"""Invalid modifier 'sync'.""", |
| 932 tip: r"""Try replacing 'sync' with 'sync*'."""); |
| 933 |
| 934 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 935 const Code<Null> codeInvalidVoid = messageInvalidVoid; |
| 936 |
| 937 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 938 const MessageCode messageInvalidVoid = const MessageCode("InvalidVoid", |
| 939 dart2jsCode: "VOID_NOT_ALLOWED", |
| 940 message: |
| 941 r"""Type 'void' can't be used here because it isn't a return type.""", |
| 942 tip: |
| 943 r"""Try removing 'void' keyword or replace it with 'var', 'final', or a
type."""); |
| 944 |
| 945 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 946 const Code<Null> codeListLiteralTooManyTypeArguments = |
| 947 messageListLiteralTooManyTypeArguments; |
| 948 |
| 949 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 950 const MessageCode messageListLiteralTooManyTypeArguments = const MessageCode( |
| 951 "ListLiteralTooManyTypeArguments", |
| 952 message: r"""Too many type arguments on List literal."""); |
| 953 |
| 954 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 955 const Code<Null> codeListLiteralTypeArgumentMismatch = |
| 956 messageListLiteralTypeArgumentMismatch; |
| 957 |
| 958 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 959 const MessageCode messageListLiteralTypeArgumentMismatch = const MessageCode( |
| 960 "ListLiteralTypeArgumentMismatch", |
| 961 message: r"""Map literal requires two type arguments."""); |
| 962 |
| 963 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 964 const Code<Null> codeMetadataTypeArguments = messageMetadataTypeArguments; |
| 965 |
| 966 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 967 const MessageCode messageMetadataTypeArguments = const MessageCode( |
| 968 "MetadataTypeArguments", |
| 969 dart2jsCode: "*ignored*", |
| 970 message: r"""An annotation (metadata) can't use type arguments."""); |
| 971 |
| 972 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 973 const Template<Message Function(String name)> templateMethodNotFound = |
| 974 const Template<Message Function(String name)>( |
| 975 messageTemplate: r"""Method not found: '#name'.""", |
| 976 withArguments: _withArgumentsMethodNotFound); |
| 977 |
| 978 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 979 const Code<Message Function(String name)> codeMethodNotFound = |
| 980 const Code<Message Function(String name)>( |
| 981 "MethodNotFound", |
| 982 templateMethodNotFound, |
| 983 ); |
| 984 |
| 985 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 986 Message _withArgumentsMethodNotFound(String name) { |
| 987 return new Message(codeMethodNotFound, |
| 988 message: """Method not found: '$name'.""", arguments: {'name': name}); |
| 989 } |
| 990 |
| 991 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 992 const Code<Null> codeMissingExponent = messageMissingExponent; |
| 993 |
| 994 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 995 const MessageCode messageMissingExponent = const MessageCode("MissingExponent", |
| 996 analyzerCode: "MISSING_DIGIT", |
| 997 dart2jsCode: "EXPONENT_MISSING", |
| 998 message: |
| 999 r"""Numbers in exponential notation should always contain an exponent (a
n integer number with an optional sign).""", |
| 1000 tip: |
| 1001 r"""Make sure there is an exponent, and remove any whitespace before it.
"""); |
| 1002 |
| 1003 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1004 const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; |
| 1005 |
| 1006 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1007 const MessageCode messageNamedFunctionExpression = const MessageCode( |
| 1008 "NamedFunctionExpression", |
| 1009 dart2jsCode: "*ignored*", |
| 1010 message: r"""A function expression can't have a name."""); |
864 | 1011 |
865 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1012 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
866 const Template< | 1013 const Template< |
867 Message Function(Token token)> templateNoFormals = const Template< | 1014 Message Function(Token token)> templateNoFormals = const Template< |
868 Message Function(Token token)>( | 1015 Message Function(Token token)>( |
869 messageTemplate: r"""A function should have formal parameters.""", | 1016 messageTemplate: r"""A function should have formal parameters.""", |
870 tipTemplate: | 1017 tipTemplate: |
871 r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to de
clare a getter.""", | 1018 r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to de
clare a getter.""", |
872 withArguments: _withArgumentsNoFormals); | 1019 withArguments: _withArgumentsNoFormals); |
873 | 1020 |
874 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1021 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
875 const Code<Message Function(Token token)> codeNoFormals = | 1022 const Code<Message Function(Token token)> codeNoFormals = |
876 const Code<Message Function(Token token)>("NoFormals", templateNoFormals, | 1023 const Code<Message Function(Token token)>("NoFormals", templateNoFormals, |
877 dart2jsCode: "*ignored*"); | 1024 dart2jsCode: "*ignored*"); |
878 | 1025 |
879 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1026 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
880 Message _withArgumentsNoFormals(Token token) { | 1027 Message _withArgumentsNoFormals(Token token) { |
881 String lexeme = token.lexeme; | 1028 String lexeme = token.lexeme; |
882 return new Message(codeNoFormals, | 1029 return new Message(codeNoFormals, |
883 message: """A function should have formal parameters.""", | 1030 message: """A function should have formal parameters.""", |
884 tip: | 1031 tip: |
885 """Try adding '()' after '$lexeme', or add 'get' before '$lexeme' to d
eclare a getter.""", | 1032 """Try adding '()' after '$lexeme', or add 'get' before '$lexeme' to d
eclare a getter.""", |
886 arguments: {'token': token}); | 1033 arguments: {'token': token}); |
887 } | 1034 } |
888 | 1035 |
889 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1036 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
890 const Code<Null> codeExpectedOpenParens = messageExpectedOpenParens; | 1037 const Template< |
891 | 1038 Message Function( |
892 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1039 String character, |
893 const MessageCode messageExpectedOpenParens = const MessageCode( | 1040 int |
894 "ExpectedOpenParens", | 1041 codePoint)> templateNonAsciiIdentifier = const Template< |
895 dart2jsCode: "GENERIC", | 1042 Message Function(String character, int codePoint)>( |
896 message: r"""Expected '('."""); | 1043 messageTemplate: |
897 | 1044 r"""The non-ASCII character '#character' (#unicode) can't be used in ide
ntifiers, only in strings and comments.""", |
898 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1045 tipTemplate: |
899 const Code<Null> codeUnterminatedComment = messageUnterminatedComment; | 1046 r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (
a dollar sign).""", |
900 | 1047 withArguments: _withArgumentsNonAsciiIdentifier); |
901 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1048 |
902 const MessageCode messageUnterminatedComment = const MessageCode( | 1049 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
903 "UnterminatedComment", | 1050 const Code<Message Function(String character, int codePoint)> |
904 analyzerCode: "UNTERMINATED_MULTI_LINE_COMMENT", | 1051 codeNonAsciiIdentifier = |
905 dart2jsCode: "UNTERMINATED_COMMENT", | 1052 const Code<Message Function(String character, int codePoint)>( |
906 message: r"""Comment starting with '/*' must end with '*/'."""); | 1053 "NonAsciiIdentifier", templateNonAsciiIdentifier, |
907 | 1054 analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); |
908 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1055 |
909 const Code<Null> codeCatchSyntax = messageCatchSyntax; | 1056 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
910 | 1057 Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { |
911 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1058 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
912 const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", | 1059 return new Message(codeNonAsciiIdentifier, |
913 dart2jsCode: "*ignored*", | 1060 message: |
914 message: | 1061 """The non-ASCII character '$character' ($unicode) can't be used in id
entifiers, only in strings and comments.""", |
915 r"""'catch' must be followed by '(identifier)' or '(identifier, identifi
er)'.""", | 1062 tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$
' (a dollar sign).""", |
916 tip: | 1063 arguments: {'character': character, 'codePoint': codePoint}); |
917 r"""No types are needed, the first is given by 'on', the second is alway
s 'StackTrace'."""); | 1064 } |
918 | 1065 |
919 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1066 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
920 const Template<Message Function(Token token)> templateExpectedClassBody = | 1067 const Template< |
921 const Template<Message Function(Token token)>( | 1068 Message Function( |
922 messageTemplate: r"""Expected a class body, but got '#lexeme'.""", | 1069 int |
923 withArguments: _withArgumentsExpectedClassBody); | 1070 codePoint)> templateNonAsciiWhitespace = const Template< |
924 | 1071 Message Function(int codePoint)>( |
925 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1072 messageTemplate: |
926 const Code<Message Function(Token token)> codeExpectedClassBody = | 1073 r"""The non-ASCII space character #unicode can only be used in strings a
nd comments.""", |
927 const Code<Message Function(Token token)>( | 1074 withArguments: _withArgumentsNonAsciiWhitespace); |
928 "ExpectedClassBody", templateExpectedClassBody, | 1075 |
929 dart2jsCode: "*fatal*"); | 1076 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
930 | 1077 const Code<Message Function(int codePoint)> codeNonAsciiWhitespace = |
931 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1078 const Code<Message Function(int codePoint)>( |
932 Message _withArgumentsExpectedClassBody(Token token) { | 1079 "NonAsciiWhitespace", templateNonAsciiWhitespace, |
933 String lexeme = token.lexeme; | 1080 analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); |
934 return new Message(codeExpectedClassBody, | 1081 |
935 message: """Expected a class body, but got '$lexeme'.""", | 1082 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
936 arguments: {'token': token}); | 1083 Message _withArgumentsNonAsciiWhitespace(int codePoint) { |
937 } | 1084 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| 1085 return new Message(codeNonAsciiWhitespace, |
| 1086 message: |
| 1087 """The non-ASCII space character $unicode can only be used in strings
and comments.""", |
| 1088 arguments: {'codePoint': codePoint}); |
| 1089 } |
| 1090 |
| 1091 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1092 const Code<Null> codeNonInstanceTypeVariableUse = |
| 1093 messageNonInstanceTypeVariableUse; |
| 1094 |
| 1095 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1096 const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( |
| 1097 "NonInstanceTypeVariableUse", |
| 1098 message: r"""Can only use type variables in instance methods."""); |
938 | 1099 |
939 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1100 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
940 const Template<Message Function(String name)> templateNotAType = | 1101 const Template<Message Function(String name)> templateNotAType = |
941 const Template<Message Function(String name)>( | 1102 const Template<Message Function(String name)>( |
942 messageTemplate: r"""'#name' isn't a type.""", | 1103 messageTemplate: r"""'#name' isn't a type.""", |
943 withArguments: _withArgumentsNotAType); | 1104 withArguments: _withArgumentsNotAType); |
944 | 1105 |
945 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1106 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
946 const Code<Message Function(String name)> codeNotAType = | 1107 const Code<Message Function(String name)> codeNotAType = |
947 const Code<Message Function(String name)>( | 1108 const Code<Message Function(String name)>( |
948 "NotAType", | 1109 "NotAType", |
949 templateNotAType, | 1110 templateNotAType, |
950 ); | 1111 ); |
951 | 1112 |
952 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1113 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
953 Message _withArgumentsNotAType(String name) { | 1114 Message _withArgumentsNotAType(String name) { |
954 return new Message(codeNotAType, | 1115 return new Message(codeNotAType, |
955 message: """'$name' isn't a type.""", arguments: {'name': name}); | 1116 message: """'$name' isn't a type.""", arguments: {'name': name}); |
956 } | 1117 } |
957 | 1118 |
958 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1119 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
959 const Template<Message Function(Token token)> templateExpectedExpression = | 1120 const Code<Null> codeOnlyTry = messageOnlyTry; |
960 const Template<Message Function(Token token)>( | 1121 |
961 messageTemplate: r"""Expected an expression, but got '#lexeme'.""", | 1122 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
962 withArguments: _withArgumentsExpectedExpression); | 1123 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", |
963 | 1124 dart2jsCode: "*ignored*", |
964 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
965 const Code<Message Function(Token token)> codeExpectedExpression = | |
966 const Code<Message Function(Token token)>( | |
967 "ExpectedExpression", templateExpectedExpression, | |
968 dart2jsCode: "*fatal*"); | |
969 | |
970 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
971 Message _withArgumentsExpectedExpression(Token token) { | |
972 String lexeme = token.lexeme; | |
973 return new Message(codeExpectedExpression, | |
974 message: """Expected an expression, but got '$lexeme'.""", | |
975 arguments: {'token': token}); | |
976 } | |
977 | |
978 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
979 const Code<Null> codeInvalidAwaitFor = messageInvalidAwaitFor; | |
980 | |
981 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
982 const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor", | |
983 dart2jsCode: "INVALID_AWAIT_FOR", | |
984 message: | 1125 message: |
985 r"""'await' is only supported in methods with an 'async' or 'async*' bod
y modifier.""", | 1126 r"""Try block should be followed by 'on', 'catch', or 'finally' block.""
", |
| 1127 tip: r"""Did you forget to add a 'finally' block?"""); |
| 1128 |
| 1129 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1130 const Code<Null> codePositionalParameterWithEquals = |
| 1131 messagePositionalParameterWithEquals; |
| 1132 |
| 1133 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1134 const MessageCode messagePositionalParameterWithEquals = const MessageCode( |
| 1135 "PositionalParameterWithEquals", |
| 1136 dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", |
| 1137 message: |
| 1138 r"""Positional optional parameters can't use ':' to specify a default va
lue.""", |
| 1139 tip: r"""Try replacing ':' with '='."""); |
| 1140 |
| 1141 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1142 const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; |
| 1143 |
| 1144 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1145 const MessageCode messagePrivateNamedParameter = const MessageCode( |
| 1146 "PrivateNamedParameter", |
| 1147 dart2jsCode: "*ignored*", |
| 1148 message: r"""An optional named parameter can't start with '_'."""); |
| 1149 |
| 1150 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1151 const Template<Message Function(String name)> |
| 1152 templateRedirectionTargetNotFound = |
| 1153 const Template<Message Function(String name)>( |
| 1154 messageTemplate: |
| 1155 r"""Redirection constructor target not found: '#name'""", |
| 1156 withArguments: _withArgumentsRedirectionTargetNotFound); |
| 1157 |
| 1158 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1159 const Code<Message Function(String name)> codeRedirectionTargetNotFound = |
| 1160 const Code<Message Function(String name)>( |
| 1161 "RedirectionTargetNotFound", |
| 1162 templateRedirectionTargetNotFound, |
| 1163 ); |
| 1164 |
| 1165 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1166 Message _withArgumentsRedirectionTargetNotFound(String name) { |
| 1167 return new Message(codeRedirectionTargetNotFound, |
| 1168 message: """Redirection constructor target not found: '$name'""", |
| 1169 arguments: {'name': name}); |
| 1170 } |
| 1171 |
| 1172 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1173 const Code<Null> codeRequiredParameterWithDefault = |
| 1174 messageRequiredParameterWithDefault; |
| 1175 |
| 1176 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1177 const MessageCode messageRequiredParameterWithDefault = const MessageCode( |
| 1178 "RequiredParameterWithDefault", |
| 1179 dart2jsCode: "REQUIRED_PARAMETER_WITH_DEFAULT", |
| 1180 message: r"""Non-optional parameters can't have a default value.""", |
986 tip: | 1181 tip: |
987 r"""Try adding 'async' or 'async*' to the method body or removing the 'a
wait' keyword."""); | 1182 r"""Try removing the default value or making the parameter optional.""")
; |
988 | 1183 |
989 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1184 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
990 const Template<Message Function(String string, String string2)> | 1185 const Code<Null> codeReturnTypeFunctionExpression = |
991 templateInternalProblemUnexpected = | 1186 messageReturnTypeFunctionExpression; |
992 const Template<Message Function(String string, String string2)>( | 1187 |
993 messageTemplate: r"""Expected '#string', but got '#string2'.""", | 1188 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
994 withArguments: _withArgumentsInternalProblemUnexpected); | 1189 const MessageCode messageReturnTypeFunctionExpression = const MessageCode( |
995 | 1190 "ReturnTypeFunctionExpression", |
996 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1191 dart2jsCode: "*ignored*", |
997 const Code<Message Function(String string, String string2)> | 1192 message: r"""A function expression can't have a return type."""); |
998 codeInternalProblemUnexpected = | |
999 const Code<Message Function(String string, String string2)>( | |
1000 "InternalProblemUnexpected", | |
1001 templateInternalProblemUnexpected, | |
1002 ); | |
1003 | |
1004 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1005 Message _withArgumentsInternalProblemUnexpected(String string, String string2) { | |
1006 return new Message(codeInternalProblemUnexpected, | |
1007 message: """Expected '$string', but got '$string2'.""", | |
1008 arguments: {'string': string, 'string2': string2}); | |
1009 } | |
1010 | |
1011 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1012 const Template<Message Function(Token token)> templateExpectedType = | |
1013 const Template<Message Function(Token token)>( | |
1014 messageTemplate: r"""Expected a type, but got '#lexeme'.""", | |
1015 withArguments: _withArgumentsExpectedType); | |
1016 | |
1017 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1018 const Code<Message Function(Token token)> codeExpectedType = | |
1019 const Code<Message Function(Token token)>( | |
1020 "ExpectedType", templateExpectedType, | |
1021 dart2jsCode: "*fatal*"); | |
1022 | |
1023 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1024 Message _withArgumentsExpectedType(Token token) { | |
1025 String lexeme = token.lexeme; | |
1026 return new Message(codeExpectedType, | |
1027 message: """Expected a type, but got '$lexeme'.""", | |
1028 arguments: {'token': token}); | |
1029 } | |
1030 | |
1031 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1032 const Code<Null> codeUnterminatedToken = messageUnterminatedToken; | |
1033 | |
1034 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1035 const MessageCode messageUnterminatedToken = const MessageCode( | |
1036 "UnterminatedToken", | |
1037 dart2jsCode: "UNTERMINATED_TOKEN", | |
1038 message: r"""Incomplete token."""); | |
1039 | 1193 |
1040 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1194 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1041 const Template<Message Function(String name)> templateSetterNotFound = | 1195 const Template<Message Function(String name)> templateSetterNotFound = |
1042 const Template<Message Function(String name)>( | 1196 const Template<Message Function(String name)>( |
1043 messageTemplate: r"""Setter not found: '#name'.""", | 1197 messageTemplate: r"""Setter not found: '#name'.""", |
1044 withArguments: _withArgumentsSetterNotFound); | 1198 withArguments: _withArgumentsSetterNotFound); |
1045 | 1199 |
1046 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1200 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1047 const Code<Message Function(String name)> codeSetterNotFound = | 1201 const Code<Message Function(String name)> codeSetterNotFound = |
1048 const Code<Message Function(String name)>( | 1202 const Code<Message Function(String name)>( |
1049 "SetterNotFound", | 1203 "SetterNotFound", |
1050 templateSetterNotFound, | 1204 templateSetterNotFound, |
1051 ); | 1205 ); |
1052 | 1206 |
1053 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1207 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1054 Message _withArgumentsSetterNotFound(String name) { | 1208 Message _withArgumentsSetterNotFound(String name) { |
1055 return new Message(codeSetterNotFound, | 1209 return new Message(codeSetterNotFound, |
1056 message: """Setter not found: '$name'.""", arguments: {'name': name}); | 1210 message: """Setter not found: '$name'.""", arguments: {'name': name}); |
1057 } | 1211 } |
1058 | 1212 |
1059 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1213 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1060 const Template<Message Function(String string)> templateExpectedButGot = | 1214 const Code<Null> codeSetterNotSync = messageSetterNotSync; |
1061 const Template<Message Function(String string)>( | 1215 |
1062 messageTemplate: r"""Expected '#string' before this.""", | 1216 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1063 tipTemplate: r"""DONT_KNOW_HOW_TO_FIX,""", | 1217 const MessageCode messageSetterNotSync = const MessageCode("SetterNotSync", |
1064 withArguments: _withArgumentsExpectedButGot); | 1218 dart2jsCode: "*ignored*", |
1065 | 1219 message: r"""Setters can't use 'async', 'async*', or 'sync*'."""); |
1066 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1220 |
1067 const Code<Message Function(String string)> codeExpectedButGot = | 1221 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1068 const Code<Message Function(String string)>( | 1222 const Code<Null> codeStackOverflow = messageStackOverflow; |
1069 "ExpectedButGot", templateExpectedButGot, | 1223 |
1070 dart2jsCode: "MISSING_TOKEN_BEFORE_THIS"); | 1224 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1071 | 1225 const MessageCode messageStackOverflow = const MessageCode("StackOverflow", |
1072 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1226 dart2jsCode: "GENERIC", message: r"""Stack overflow."""); |
1073 Message _withArgumentsExpectedButGot(String string) { | 1227 |
1074 return new Message(codeExpectedButGot, | 1228 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1075 message: """Expected '$string' before this.""", | 1229 const Code<Null> codeSuperNullAware = messageSuperNullAware; |
1076 tip: """DONT_KNOW_HOW_TO_FIX,""", | 1230 |
1077 arguments: {'string': string}); | 1231 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1078 } | 1232 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
1079 | 1233 dart2jsCode: "*ignored*", |
1080 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1234 message: r"""'super' can't be null.""", |
1081 const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; | 1235 tip: r"""Try replacing '?.' with '.'"""); |
1082 | 1236 |
1083 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1237 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1084 const MessageCode messageNamedFunctionExpression = const MessageCode( | 1238 const Code<Null> codeTypeAfterVar = messageTypeAfterVar; |
1085 "NamedFunctionExpression", | 1239 |
1086 dart2jsCode: "*ignored*", | 1240 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1087 message: r"""A function expression can't have a name."""); | 1241 const MessageCode messageTypeAfterVar = const MessageCode("TypeAfterVar", |
1088 | 1242 dart2jsCode: "EXTRANEOUS_MODIFIER", |
1089 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1243 message: r"""Can't have both a type and 'var'.""", |
1090 const Code<Null> codeConstFieldWithoutInitializer = | 1244 tip: r"""Try removing 'var.'"""); |
1091 messageConstFieldWithoutInitializer; | 1245 |
1092 | 1246 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1093 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1247 const Template<Message Function(String name)> templateTypeNotFound = |
1094 const MessageCode messageConstFieldWithoutInitializer = const MessageCode( | 1248 const Template<Message Function(String name)>( |
1095 "ConstFieldWithoutInitializer", | 1249 messageTemplate: r"""Type '#name' not found.""", |
1096 dart2jsCode: "*ignored*", | 1250 withArguments: _withArgumentsTypeNotFound); |
1097 message: r"""A 'const' field must be initialized.""", | 1251 |
1098 tip: r"""Try adding '= <initializer>'."""); | 1252 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1099 | 1253 const Code<Message Function(String name)> codeTypeNotFound = |
1100 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1254 const Code<Message Function(String name)>( |
1101 const Code<Null> codeFastaUsageLong = messageFastaUsageLong; | 1255 "TypeNotFound", |
1102 | 1256 templateTypeNotFound, |
1103 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1257 ); |
1104 const MessageCode messageFastaUsageLong = | 1258 |
1105 const MessageCode("FastaUsageLong", message: r"""Supported options: | 1259 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1106 | 1260 Message _withArgumentsTypeNotFound(String name) { |
1107 -o <file>, --output=<file> | 1261 return new Message(codeTypeNotFound, |
1108 Generate the output into <file>. | 1262 message: """Type '$name' not found.""", arguments: {'name': name}); |
1109 | 1263 } |
1110 -h, /h, /?, --help | |
1111 Display this message (add -v for information about all options). | |
1112 | |
1113 -v, --verbose | |
1114 Display verbose information. | |
1115 | |
1116 -- | |
1117 Stop option parsing, the rest of the command line is assumed to be | |
1118 file names or arguments to the Dart program. | |
1119 | |
1120 --packages=<file> | |
1121 Use package resolution configuration <file>, which should contain a mapping | |
1122 of package names to paths. | |
1123 | |
1124 --platform=<file> | |
1125 Read the SDK platform from <file>, which should be in Dill/Kernel IR format | |
1126 and contain the Dart SDK. | |
1127 | |
1128 --target=none|vm|vmcc|vmreify|flutter | |
1129 Specify the target configuration. | |
1130 | |
1131 --verify | |
1132 Check that the generated output is free of various problems. This is mostly | |
1133 useful for developers of this compiler or Kernel transformations. | |
1134 | |
1135 --dump-ir | |
1136 Print compiled libraries in Kernel source notation. | |
1137 | |
1138 --exclude-source | |
1139 Do not include source code in the dill file. | |
1140 | |
1141 --compile-sdk=<patched_sdk> | |
1142 Compile the SDK from scratch instead of reading it from 'platform.dill'. | |
1143 | |
1144 --sdk=<patched_sdk> | |
1145 Location of the SDK sources for use when compiling additional platform | |
1146 libraries. | |
1147 | |
1148 --fatal=errors | |
1149 --fatal=warnings | |
1150 --fatal=nits | |
1151 Makes messages of the given kinds fatal, that is, immediately stop the | |
1152 compiler with a non-zero exit-code. In --verbose mode, also display an | |
1153 internal stack trace from the compiler. Multiple kinds can be separated by | |
1154 commas, for example, --fatal=errors,warnings."""); | |
1155 | |
1156 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1157 const Code<Null> codeAwaitForNotAsync = messageAwaitForNotAsync; | |
1158 | |
1159 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1160 const MessageCode messageAwaitForNotAsync = const MessageCode( | |
1161 "AwaitForNotAsync", | |
1162 dart2jsCode: "*ignored*", | |
1163 message: | |
1164 r"""Asynchronous for-loop can only be used in 'async' or 'async*' method
s."""); | |
1165 | |
1166 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1167 const Code<Null> codeEncoding = messageEncoding; | |
1168 | |
1169 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1170 const MessageCode messageEncoding = const MessageCode("Encoding", | |
1171 dart2jsCode: "*fatal*", message: r"""Unable to decode bytes as UTF-8."""); | |
1172 | |
1173 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1174 const Code<Null> codeAsyncAsIdentifier = messageAsyncAsIdentifier; | |
1175 | |
1176 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1177 const MessageCode messageAsyncAsIdentifier = const MessageCode( | |
1178 "AsyncAsIdentifier", | |
1179 analyzerCode: "ASYNC_KEYWORD_USED_AS_IDENTIFIER", | |
1180 dart2jsCode: "GENERIC", | |
1181 message: | |
1182 r"""'async' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | |
1183 | |
1184 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1185 const Code<Null> codeYieldAsIdentifier = messageYieldAsIdentifier; | |
1186 | |
1187 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1188 const MessageCode messageYieldAsIdentifier = const MessageCode( | |
1189 "YieldAsIdentifier", | |
1190 dart2jsCode: "*ignored*", | |
1191 message: | |
1192 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | |
1193 | |
1194 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1195 const Code<Null> codeAssertAsExpression = messageAssertAsExpression; | |
1196 | |
1197 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1198 const MessageCode messageAssertAsExpression = const MessageCode( | |
1199 "AssertAsExpression", | |
1200 dart2jsCode: "*fatal*", | |
1201 message: r"""`assert` can't be used as an expression."""); | |
1202 | |
1203 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1204 const Code<Null> codeOnlyTry = messageOnlyTry; | |
1205 | |
1206 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1207 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", | |
1208 dart2jsCode: "*ignored*", | |
1209 message: | |
1210 r"""Try block should be followed by 'on', 'catch', or 'finally' block.""
", | |
1211 tip: r"""Did you forget to add a 'finally' block?"""); | |
1212 | |
1213 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1214 const Code<Null> codeInvalidInlineFunctionType = | |
1215 messageInvalidInlineFunctionType; | |
1216 | |
1217 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1218 const MessageCode messageInvalidInlineFunctionType = const MessageCode( | |
1219 "InvalidInlineFunctionType", | |
1220 dart2jsCode: "INVALID_INLINE_FUNCTION_TYPE", | |
1221 message: r"""Invalid inline function type.""", | |
1222 tip: | |
1223 r"""Try changing the inline function type (as in 'int f()') to a prefixe
d function type using the `Function` keyword (as in 'int Function() f')."""); | |
1224 | |
1225 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1226 const Code<Null> codeMetadataTypeArguments = messageMetadataTypeArguments; | |
1227 | |
1228 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1229 const MessageCode messageMetadataTypeArguments = const MessageCode( | |
1230 "MetadataTypeArguments", | |
1231 dart2jsCode: "*ignored*", | |
1232 message: r"""An annotation (metadata) can't use type arguments."""); | |
1233 | |
1234 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1235 const Code<Null> codeExpectedBody = messageExpectedBody; | |
1236 | |
1237 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1238 const MessageCode messageExpectedBody = const MessageCode("ExpectedBody", | |
1239 dart2jsCode: "BODY_EXPECTED", | |
1240 message: r"""Expected a function body or '=>'.""", | |
1241 tip: r"""Try adding {}."""); | |
1242 | 1264 |
1243 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1265 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1244 const Code<Null> codeTypeRequired = messageTypeRequired; | 1266 const Code<Null> codeTypeRequired = messageTypeRequired; |
1245 | 1267 |
1246 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1268 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1247 const MessageCode messageTypeRequired = const MessageCode("TypeRequired", | 1269 const MessageCode messageTypeRequired = const MessageCode("TypeRequired", |
1248 message: r"""A type or modifier is required here.""", | 1270 message: r"""A type or modifier is required here.""", |
1249 tip: r"""Try adding a type, 'var', 'const', or 'final'."""); | 1271 tip: r"""Try adding a type, 'var', 'const', or 'final'."""); |
1250 | 1272 |
1251 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1273 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1252 const Code<Null> codeInternalProblemAlreadyInitialized = | 1274 const Code<Null> codeUnexpectedDollarInString = messageUnexpectedDollarInString; |
1253 messageInternalProblemAlreadyInitialized; | |
1254 | 1275 |
1255 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1276 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1256 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( | 1277 const MessageCode messageUnexpectedDollarInString = const MessageCode( |
1257 "InternalProblemAlreadyInitialized", | 1278 "UnexpectedDollarInString", |
1258 message: r"""Attempt to set initializer on field without initializer."""); | 1279 dart2jsCode: "MALFORMED_STRING_LITERAL", |
| 1280 message: |
| 1281 r"""A '$' has special meaning inside a string, and must be followed by a
n identifier or an expression in curly braces ({}).""", |
| 1282 tip: r"""Try adding a backslash (\) to escape the '$'."""); |
1259 | 1283 |
1260 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1284 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1261 const Code<Null> codeInvalidVoid = messageInvalidVoid; | 1285 const Template<Message Function(Token token)> templateUnexpectedToken = |
| 1286 const Template<Message Function(Token token)>( |
| 1287 messageTemplate: r"""Unexpected token '#lexeme'.""", |
| 1288 withArguments: _withArgumentsUnexpectedToken); |
1262 | 1289 |
1263 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1290 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1264 const MessageCode messageInvalidVoid = const MessageCode("InvalidVoid", | 1291 const Code<Message Function(Token token)> codeUnexpectedToken = |
1265 dart2jsCode: "VOID_NOT_ALLOWED", | 1292 const Code<Message Function(Token token)>( |
1266 message: | 1293 "UnexpectedToken", templateUnexpectedToken, |
1267 r"""Type 'void' can't be used here because it isn't a return type.""", | 1294 dart2jsCode: "*fatal*"); |
1268 tip: | |
1269 r"""Try removing 'void' keyword or replace it with 'var', 'final', or a
type."""); | |
1270 | 1295 |
1271 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1296 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1272 const Template<Message Function(Token token)> templateBuiltInIdentifierAsType = | 1297 Message _withArgumentsUnexpectedToken(Token token) { |
1273 const Template<Message Function(Token token)>( | |
1274 messageTemplate: r"""Can't use '#lexeme' as a type.""", | |
1275 withArguments: _withArgumentsBuiltInIdentifierAsType); | |
1276 | |
1277 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1278 const Code<Message Function(Token token)> codeBuiltInIdentifierAsType = | |
1279 const Code<Message Function(Token token)>( | |
1280 "BuiltInIdentifierAsType", templateBuiltInIdentifierAsType, | |
1281 analyzerCode: "EXPECTED_TYPE_NAME", dart2jsCode: "EXTRANEOUS_MODIFIER"); | |
1282 | |
1283 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1284 Message _withArgumentsBuiltInIdentifierAsType(Token token) { | |
1285 String lexeme = token.lexeme; | 1298 String lexeme = token.lexeme; |
1286 return new Message(codeBuiltInIdentifierAsType, | 1299 return new Message(codeUnexpectedToken, |
1287 message: """Can't use '$lexeme' as a type.""", | 1300 message: """Unexpected token '$lexeme'.""", arguments: {'token': token}); |
1288 arguments: {'token': token}); | |
1289 } | 1301 } |
1290 | 1302 |
1291 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1303 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1292 const Code<Null> codeGeneratorReturnsValue = messageGeneratorReturnsValue; | 1304 const Template<Message Function(String string, Token token)> |
| 1305 templateUnmatchedToken = |
| 1306 const Template<Message Function(String string, Token token)>( |
| 1307 messageTemplate: r"""Can't find '#string' to match '#lexeme'.""", |
| 1308 withArguments: _withArgumentsUnmatchedToken); |
1293 | 1309 |
1294 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1310 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1295 const MessageCode messageGeneratorReturnsValue = const MessageCode( | 1311 const Code<Message Function(String string, Token token)> codeUnmatchedToken = |
1296 "GeneratorReturnsValue", | 1312 const Code<Message Function(String string, Token token)>( |
1297 dart2jsCode: "*ignored*", | 1313 "UnmatchedToken", templateUnmatchedToken, |
1298 message: r"""'sync*' and 'async*' can't return a value."""); | 1314 dart2jsCode: "UNMATCHED_TOKEN"); |
1299 | 1315 |
1300 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1316 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1301 const Code<Null> codeListLiteralTypeArgumentMismatch = | 1317 Message _withArgumentsUnmatchedToken(String string, Token token) { |
1302 messageListLiteralTypeArgumentMismatch; | 1318 String lexeme = token.lexeme; |
1303 | 1319 return new Message(codeUnmatchedToken, |
1304 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1320 message: """Can't find '$string' to match '$lexeme'.""", |
1305 const MessageCode messageListLiteralTypeArgumentMismatch = const MessageCode( | 1321 arguments: {'string': string, 'token': token}); |
1306 "ListLiteralTypeArgumentMismatch", | |
1307 message: r"""Map literal requires two type arguments."""); | |
1308 | |
1309 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1310 const Template<Message Function(String name)> templateMethodNotFound = | |
1311 const Template<Message Function(String name)>( | |
1312 messageTemplate: r"""Method not found: '#name'.""", | |
1313 withArguments: _withArgumentsMethodNotFound); | |
1314 | |
1315 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1316 const Code<Message Function(String name)> codeMethodNotFound = | |
1317 const Code<Message Function(String name)>( | |
1318 "MethodNotFound", | |
1319 templateMethodNotFound, | |
1320 ); | |
1321 | |
1322 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1323 Message _withArgumentsMethodNotFound(String name) { | |
1324 return new Message(codeMethodNotFound, | |
1325 message: """Method not found: '$name'.""", arguments: {'name': name}); | |
1326 } | 1322 } |
1327 | 1323 |
1328 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1324 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1329 const Code<Null> codeInternalProblemExtendingUnmodifiableScope = | 1325 const Template<Message Function(String string)> templateUnspecified = |
1330 messageInternalProblemExtendingUnmodifiableScope; | 1326 const Template<Message Function(String string)>( |
| 1327 messageTemplate: r"""#string""", |
| 1328 withArguments: _withArgumentsUnspecified); |
1331 | 1329 |
1332 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1330 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1333 const MessageCode messageInternalProblemExtendingUnmodifiableScope = | 1331 const Code<Message Function(String string)> codeUnspecified = |
1334 const MessageCode("InternalProblemExtendingUnmodifiableScope", | 1332 const Code<Message Function(String string)>( |
1335 message: r"""Can't extend an unmodifiable scope."""); | 1333 "Unspecified", templateUnspecified, |
1336 | |
1337 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1338 const Template<Message Function(Token token)> | |
1339 templateBuiltInIdentifierInDeclaration = | |
1340 const Template<Message Function(Token token)>( | |
1341 messageTemplate: r"""Can't use '#lexeme' as a name here.""", | |
1342 withArguments: _withArgumentsBuiltInIdentifierInDeclaration); | |
1343 | |
1344 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | |
1345 const Code<Message Function(Token token)> codeBuiltInIdentifierInDeclaration = | |
1346 const Code<Message Function(Token token)>("BuiltInIdentifierInDeclaration", | |
1347 templateBuiltInIdentifierInDeclaration, | |
1348 dart2jsCode: "GENERIC"); | 1334 dart2jsCode: "GENERIC"); |
1349 | 1335 |
1350 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1336 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1351 Message _withArgumentsBuiltInIdentifierInDeclaration(Token token) { | 1337 Message _withArgumentsUnspecified(String string) { |
1352 String lexeme = token.lexeme; | 1338 return new Message(codeUnspecified, |
1353 return new Message(codeBuiltInIdentifierInDeclaration, | 1339 message: """$string""", arguments: {'string': string}); |
1354 message: """Can't use '$lexeme' as a name here.""", | |
1355 arguments: {'token': token}); | |
1356 } | 1340 } |
1357 | 1341 |
1358 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1342 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1359 const Template<Message Function(String name)> | 1343 const Code<Null> codeUnsupportedPrefixPlus = messageUnsupportedPrefixPlus; |
1360 templateRedirectionTargetNotFound = | |
1361 const Template<Message Function(String name)>( | |
1362 messageTemplate: | |
1363 r"""Redirection constructor target not found: '#name'""", | |
1364 withArguments: _withArgumentsRedirectionTargetNotFound); | |
1365 | 1344 |
1366 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1345 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1367 const Code<Message Function(String name)> codeRedirectionTargetNotFound = | 1346 const MessageCode messageUnsupportedPrefixPlus = const MessageCode( |
1368 const Code<Message Function(String name)>( | 1347 "UnsupportedPrefixPlus", |
1369 "RedirectionTargetNotFound", | 1348 dart2jsCode: "UNSUPPORTED_PREFIX_PLUS", |
1370 templateRedirectionTargetNotFound, | 1349 message: r"""'+' is not a prefix operator. """, |
1371 ); | 1350 tip: r"""Try removing '+'."""); |
1372 | 1351 |
1373 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1352 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1374 Message _withArgumentsRedirectionTargetNotFound(String name) { | 1353 const Code<Null> codeUnterminatedComment = messageUnterminatedComment; |
1375 return new Message(codeRedirectionTargetNotFound, | 1354 |
1376 message: """Redirection constructor target not found: '$name'""", | 1355 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1377 arguments: {'name': name}); | 1356 const MessageCode messageUnterminatedComment = const MessageCode( |
| 1357 "UnterminatedComment", |
| 1358 analyzerCode: "UNTERMINATED_MULTI_LINE_COMMENT", |
| 1359 dart2jsCode: "UNTERMINATED_COMMENT", |
| 1360 message: r"""Comment starting with '/*' must end with '*/'."""); |
| 1361 |
| 1362 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1363 const Template<Message Function(String string)> templateUnterminatedString = |
| 1364 const Template<Message Function(String string)>( |
| 1365 messageTemplate: r"""String must end with #string.""", |
| 1366 withArguments: _withArgumentsUnterminatedString); |
| 1367 |
| 1368 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1369 const Code<Message Function(String string)> codeUnterminatedString = |
| 1370 const Code<Message Function(String string)>( |
| 1371 "UnterminatedString", templateUnterminatedString, |
| 1372 analyzerCode: "UNTERMINATED_STRING_LITERAL", |
| 1373 dart2jsCode: "UNTERMINATED_STRING"); |
| 1374 |
| 1375 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1376 Message _withArgumentsUnterminatedString(String string) { |
| 1377 return new Message(codeUnterminatedString, |
| 1378 message: """String must end with $string.""", |
| 1379 arguments: {'string': string}); |
1378 } | 1380 } |
1379 | 1381 |
1380 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1382 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1381 const Template< | 1383 const Code<Null> codeUnterminatedToken = messageUnterminatedToken; |
1382 Message Function( | |
1383 String character, | |
1384 int | |
1385 codePoint)> templateNonAsciiIdentifier = const Template< | |
1386 Message Function(String character, int codePoint)>( | |
1387 messageTemplate: | |
1388 r"""The non-ASCII character '#character' (#unicode) can't be used in ide
ntifiers, only in strings and comments.""", | |
1389 tipTemplate: | |
1390 r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (
a dollar sign).""", | |
1391 withArguments: _withArgumentsNonAsciiIdentifier); | |
1392 | 1384 |
1393 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1385 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1394 const Code<Message Function(String character, int codePoint)> | 1386 const MessageCode messageUnterminatedToken = const MessageCode( |
1395 codeNonAsciiIdentifier = | 1387 "UnterminatedToken", |
1396 const Code<Message Function(String character, int codePoint)>( | 1388 dart2jsCode: "UNTERMINATED_TOKEN", |
1397 "NonAsciiIdentifier", templateNonAsciiIdentifier, | 1389 message: r"""Incomplete token."""); |
1398 analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); | |
1399 | 1390 |
1400 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1391 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1401 Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { | 1392 const Code<Null> codeYieldAsIdentifier = messageYieldAsIdentifier; |
1402 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; | 1393 |
1403 return new Message(codeNonAsciiIdentifier, | 1394 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1404 message: | 1395 const MessageCode messageYieldAsIdentifier = const MessageCode( |
1405 """The non-ASCII character '$character' ($unicode) can't be used in id
entifiers, only in strings and comments.""", | 1396 "YieldAsIdentifier", |
1406 tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$
' (a dollar sign).""", | 1397 dart2jsCode: "*ignored*", |
1407 arguments: {'character': character, 'codePoint': codePoint}); | 1398 message: |
1408 } | 1399 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
| 1400 |
| 1401 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1402 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
| 1403 |
| 1404 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 1405 const MessageCode messageYieldNotGenerator = const MessageCode( |
| 1406 "YieldNotGenerator", |
| 1407 dart2jsCode: "*ignored*", |
| 1408 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |