OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. | 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. |
6 // | 6 // |
7 // Instead modify 'pkg/front_end/messages.yaml' and run | 7 // Instead modify 'pkg/front_end/messages.yaml' and run |
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. | 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. |
9 | 9 |
10 part of fasta.codes; | 10 part of fasta.codes; |
(...skipping 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2225 message: r"""Setters can't use 'async', 'async*', or 'sync*'."""); | 2225 message: r"""Setters can't use 'async', 'async*', or 'sync*'."""); |
2226 | 2226 |
2227 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2227 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2228 const Code<Null> codeStackOverflow = messageStackOverflow; | 2228 const Code<Null> codeStackOverflow = messageStackOverflow; |
2229 | 2229 |
2230 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2230 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2231 const MessageCode messageStackOverflow = const MessageCode("StackOverflow", | 2231 const MessageCode messageStackOverflow = const MessageCode("StackOverflow", |
2232 dart2jsCode: "GENERIC", message: r"""Stack overflow."""); | 2232 dart2jsCode: "GENERIC", message: r"""Stack overflow."""); |
2233 | 2233 |
2234 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2234 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2235 const Code<Null> codeSuperAsIdentifier = messageSuperAsIdentifier; |
| 2236 |
| 2237 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2238 const MessageCode messageSuperAsIdentifier = const MessageCode( |
| 2239 "SuperAsIdentifier", |
| 2240 message: r"""Expected identifier, but got 'super'."""); |
| 2241 |
| 2242 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2235 const Code<Null> codeSuperNullAware = messageSuperNullAware; | 2243 const Code<Null> codeSuperNullAware = messageSuperNullAware; |
2236 | 2244 |
2237 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2245 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2238 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", | 2246 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
2239 dart2jsCode: "*ignored*", | 2247 dart2jsCode: "*ignored*", |
2240 message: r"""'super' can't be null.""", | 2248 message: r"""'super' can't be null.""", |
2241 tip: r"""Try replacing '?.' with '.'"""); | 2249 tip: r"""Try replacing '?.' with '.'"""); |
2242 | 2250 |
2243 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2251 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2244 const Code<Null> codeSupertypeIsFunction = messageSupertypeIsFunction; | 2252 const Code<Null> codeSupertypeIsFunction = messageSupertypeIsFunction; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 ); | 2291 ); |
2284 | 2292 |
2285 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2293 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2286 Message _withArgumentsSupertypeIsTypeVariable(String name) { | 2294 Message _withArgumentsSupertypeIsTypeVariable(String name) { |
2287 return new Message(codeSupertypeIsTypeVariable, | 2295 return new Message(codeSupertypeIsTypeVariable, |
2288 message: """The type variable '$name' can't be used as supertype.""", | 2296 message: """The type variable '$name' can't be used as supertype.""", |
2289 arguments: {'name': name}); | 2297 arguments: {'name': name}); |
2290 } | 2298 } |
2291 | 2299 |
2292 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2300 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2301 const Template<Message Function(String name)> |
| 2302 templateThisAccessInFieldInitializer = |
| 2303 const Template<Message Function(String name)>( |
| 2304 messageTemplate: |
| 2305 r"""Can't access 'this' in a field initializer to read '#name'.""", |
| 2306 withArguments: _withArgumentsThisAccessInFieldInitializer); |
| 2307 |
| 2308 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2309 const Code<Message Function(String name)> codeThisAccessInFieldInitializer = |
| 2310 const Code<Message Function(String name)>( |
| 2311 "ThisAccessInFieldInitializer", |
| 2312 templateThisAccessInFieldInitializer, |
| 2313 ); |
| 2314 |
| 2315 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2316 Message _withArgumentsThisAccessInFieldInitializer(String name) { |
| 2317 return new Message(codeThisAccessInFieldInitializer, |
| 2318 message: |
| 2319 """Can't access 'this' in a field initializer to read '$name'.""", |
| 2320 arguments: {'name': name}); |
| 2321 } |
| 2322 |
| 2323 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2324 const Code<Null> codeThisAsIdentifier = messageThisAsIdentifier; |
| 2325 |
| 2326 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2327 const MessageCode messageThisAsIdentifier = const MessageCode( |
| 2328 "ThisAsIdentifier", |
| 2329 message: r"""Expected identifier, but got 'this'."""); |
| 2330 |
| 2331 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2293 const Code<Null> codeTypeAfterVar = messageTypeAfterVar; | 2332 const Code<Null> codeTypeAfterVar = messageTypeAfterVar; |
2294 | 2333 |
2295 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2334 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2296 const MessageCode messageTypeAfterVar = const MessageCode("TypeAfterVar", | 2335 const MessageCode messageTypeAfterVar = const MessageCode("TypeAfterVar", |
2297 dart2jsCode: "EXTRANEOUS_MODIFIER", | 2336 dart2jsCode: "EXTRANEOUS_MODIFIER", |
2298 message: r"""Can't have both a type and 'var'.""", | 2337 message: r"""Can't have both a type and 'var'.""", |
2299 tip: r"""Try removing 'var.'"""); | 2338 tip: r"""Try removing 'var.'"""); |
2300 | 2339 |
2301 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2340 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2302 const Template<Message Function(String name)> | 2341 const Template<Message Function(String name)> |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 2563 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
2525 | 2564 |
2526 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2565 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2527 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 2566 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
2528 | 2567 |
2529 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2568 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2530 const MessageCode messageYieldNotGenerator = const MessageCode( | 2569 const MessageCode messageYieldNotGenerator = const MessageCode( |
2531 "YieldNotGenerator", | 2570 "YieldNotGenerator", |
2532 dart2jsCode: "*ignored*", | 2571 dart2jsCode: "*ignored*", |
2533 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 2572 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |