Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Side by Side Diff: pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart

Issue 1704173002: Use shared error for constructor's with return type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698