OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 DON'T EDIT. GENERATED. DON'T EDIT. | 5 DON'T EDIT. GENERATED. DON'T EDIT. |
6 This file has been generated by 'publish.dart' in the dart_messages package. | 6 This file has been generated by 'publish.dart' in the dart_messages package. |
7 | 7 |
8 Messages are maintained in `lib/shared_messages.dart` of that same package. | 8 Messages are maintained in `lib/shared_messages.dart` of that same package. |
9 After any change to that file, run `bin/publish.dart` to generate a new version | 9 After any change to that file, run `bin/publish.dart` to generate a new version |
10 of the json, dart2js and analyzer representations. | 10 of the json, dart2js and analyzer representations. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 MessageKind.EXTRANEOUS_MODIFIER_REPLACE, | 58 MessageKind.EXTRANEOUS_MODIFIER_REPLACE, |
59 "Can't have modifier '#{modifier}' here.", | 59 "Can't have modifier '#{modifier}' here.", |
60 howToFix: "Try replacing modifier '#{modifier}' with 'var', 'final', or a ty
pe.", | 60 howToFix: "Try replacing modifier '#{modifier}' with 'var', 'final', or a ty
pe.", |
61 examples: const [ | 61 examples: const [ |
62 "set foo; main(){}", | 62 "set foo; main(){}", |
63 "abstract foo; main(){}", | 63 "abstract foo; main(){}", |
64 "static foo; main(){}", | 64 "static foo; main(){}", |
65 "external foo; main(){}", | 65 "external foo; main(){}", |
66 ] | 66 ] |
67 ), // Generated. Don't edit. | 67 ), // Generated. Don't edit. |
| 68 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE: const MessageTemplate( |
| 69 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE, |
| 70 "Constructors can't have a return type", |
| 71 howToFix: "Try removing the return type.", |
| 72 examples: const [ |
| 73 "class A { int A() {} } main() { new A(); }", |
| 74 ] |
| 75 ), // Generated. Don't edit. |
68 }; | 76 }; |
OLD | NEW |