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

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

Issue 1706033002: More shared messages. (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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ] 66 ]
67 ), // Generated. Don't edit. 67 ), // Generated. Don't edit.
68 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE: const MessageTemplate( 68 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE: const MessageTemplate(
69 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE, 69 MessageKind.CONSTRUCTOR_WITH_RETURN_TYPE,
70 "Constructors can't have a return type", 70 "Constructors can't have a return type",
71 howToFix: "Try removing the return type.", 71 howToFix: "Try removing the return type.",
72 examples: const [ 72 examples: const [
73 "class A { int A() {} } main() { new A(); }", 73 "class A { int A() {} } main() { new A(); }",
74 ] 74 ]
75 ), // Generated. Don't edit. 75 ), // Generated. Don't edit.
76 MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR: const MessageTemplate(
77 MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR,
78 "Constructors can't return values.",
79 howToFix: "Try removing the return statement or using a factory constructor. ",
80 examples: const [
81 r"""
82 class C {
83 C() {
84 return 1;
85 }
86 }
87
88 main() => new C();""",
89 ]
90 ), // Generated. Don't edit.
91 MessageKind.RETURN_IN_GENERATOR: const MessageTemplate(
92 MessageKind.RETURN_IN_GENERATOR,
93 "Can't return a value from a generator function (using the '#{modifier}' mod ifier).",
94 howToFix: "Try removing the value, replacing 'return' with 'yield' or changi ng the method body modifier",
95 examples: const [
96 r"""
97 foo() async* { return 0; }
98 main() => foo();
99 """,
100 r"""
101 foo() sync* { return 0; }
102 main() => foo();
103 """,
104 ]
105 ), // Generated. Don't edit.
76 }; 106 };
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/generated/shared_messages.dart ('k') | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698