| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 275 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 276 const Code<Null> codeConflictsWithTypeVariableCause = | 276 const Code<Null> codeConflictsWithTypeVariableCause = |
| 277 messageConflictsWithTypeVariableCause; | 277 messageConflictsWithTypeVariableCause; |
| 278 | 278 |
| 279 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 279 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 280 const MessageCode messageConflictsWithTypeVariableCause = const MessageCode( | 280 const MessageCode messageConflictsWithTypeVariableCause = const MessageCode( |
| 281 "ConflictsWithTypeVariableCause", | 281 "ConflictsWithTypeVariableCause", |
| 282 message: r"""This is the type variable."""); | 282 message: r"""This is the type variable."""); |
| 283 | 283 |
| 284 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 284 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 285 const Code<Null> codeConstConstructorNonFinalField = |
| 286 messageConstConstructorNonFinalField; |
| 287 |
| 288 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 289 const MessageCode messageConstConstructorNonFinalField = const MessageCode( |
| 290 "ConstConstructorNonFinalField", |
| 291 message: r"""Constructor is marked 'const' so all fields must be final."""); |
| 292 |
| 293 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 294 const Code<Null> codeConstConstructorNonFinalFieldCause = |
| 295 messageConstConstructorNonFinalFieldCause; |
| 296 |
| 297 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 298 const MessageCode messageConstConstructorNonFinalFieldCause = const MessageCode( |
| 299 "ConstConstructorNonFinalFieldCause", |
| 300 message: r"""Field isn't final, but constructor is 'const'."""); |
| 301 |
| 302 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 285 const Code<Null> codeConstConstructorWithBody = messageConstConstructorWithBody; | 303 const Code<Null> codeConstConstructorWithBody = messageConstConstructorWithBody; |
| 286 | 304 |
| 287 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 305 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 288 const MessageCode messageConstConstructorWithBody = const MessageCode( | 306 const MessageCode messageConstConstructorWithBody = const MessageCode( |
| 289 "ConstConstructorWithBody", | 307 "ConstConstructorWithBody", |
| 290 message: r"""A const constructor can't have a body."""); | 308 message: r"""A const constructor can't have a body."""); |
| 291 | 309 |
| 292 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 310 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 293 const Code<Null> codeConstFieldWithoutInitializer = | 311 const Code<Null> codeConstFieldWithoutInitializer = |
| 294 messageConstFieldWithoutInitializer; | 312 messageConstFieldWithoutInitializer; |
| (...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2289 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2307 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2290 const Code<Null> codeSuperNullAware = messageSuperNullAware; | 2308 const Code<Null> codeSuperNullAware = messageSuperNullAware; |
| 2291 | 2309 |
| 2292 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2310 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2293 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", | 2311 const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
| 2294 dart2jsCode: "*ignored*", | 2312 dart2jsCode: "*ignored*", |
| 2295 message: r"""'super' can't be null.""", | 2313 message: r"""'super' can't be null.""", |
| 2296 tip: r"""Try replacing '?.' with '.'"""); | 2314 tip: r"""Try replacing '?.' with '.'"""); |
| 2297 | 2315 |
| 2298 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2316 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2317 const Template< |
| 2318 Message Function( |
| 2319 String |
| 2320 name)> templateSuperclassHasNoDefaultConstructor = const Template< |
| 2321 Message Function(String name)>( |
| 2322 messageTemplate: |
| 2323 r"""The superclass, '#name', has no unnamed constructor that takes no ar
guments.""", |
| 2324 withArguments: _withArgumentsSuperclassHasNoDefaultConstructor); |
| 2325 |
| 2326 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2327 const Code<Message Function(String name)> |
| 2328 codeSuperclassHasNoDefaultConstructor = |
| 2329 const Code<Message Function(String name)>( |
| 2330 "SuperclassHasNoDefaultConstructor", |
| 2331 templateSuperclassHasNoDefaultConstructor, |
| 2332 ); |
| 2333 |
| 2334 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2335 Message _withArgumentsSuperclassHasNoDefaultConstructor(String name) { |
| 2336 return new Message(codeSuperclassHasNoDefaultConstructor, |
| 2337 message: |
| 2338 """The superclass, '$name', has no unnamed constructor that takes no a
rguments.""", |
| 2339 arguments: {'name': name}); |
| 2340 } |
| 2341 |
| 2342 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2299 const Template<Message Function(String name)> templateSuperclassHasNoGetter = | 2343 const Template<Message Function(String name)> templateSuperclassHasNoGetter = |
| 2300 const Template<Message Function(String name)>( | 2344 const Template<Message Function(String name)>( |
| 2301 messageTemplate: r"""Superclass has no getter named '#name'.""", | 2345 messageTemplate: r"""Superclass has no getter named '#name'.""", |
| 2302 withArguments: _withArgumentsSuperclassHasNoGetter); | 2346 withArguments: _withArgumentsSuperclassHasNoGetter); |
| 2303 | 2347 |
| 2304 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2348 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2305 const Code<Message Function(String name)> codeSuperclassHasNoGetter = | 2349 const Code<Message Function(String name)> codeSuperclassHasNoGetter = |
| 2306 const Code<Message Function(String name)>( | 2350 const Code<Message Function(String name)>( |
| 2307 "SuperclassHasNoGetter", | 2351 "SuperclassHasNoGetter", |
| 2308 templateSuperclassHasNoGetter, | 2352 templateSuperclassHasNoGetter, |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2712 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 2756 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
| 2713 | 2757 |
| 2714 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2758 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2715 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 2759 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
| 2716 | 2760 |
| 2717 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2761 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2718 const MessageCode messageYieldNotGenerator = const MessageCode( | 2762 const MessageCode messageYieldNotGenerator = const MessageCode( |
| 2719 "YieldNotGenerator", | 2763 "YieldNotGenerator", |
| 2720 dart2jsCode: "*ignored*", | 2764 dart2jsCode: "*ignored*", |
| 2721 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 2765 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
| OLD | NEW |