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

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

Issue 1660703002: Share the first error messages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove bad export. 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.
11 */ 11 */
12 import '../messages.dart' show MessageTemplate; 12 import '../messages.dart' show MessageKind, MessageTemplate;
13 13
14 enum SharedMessageKind { 14 const Map<MessageKind, MessageTemplate> TEMPLATES = const <MessageKind, MessageT emplate>{
15 exampleMessage 15 MessageKind.CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY: const MessageTemplate(
16 } 16 MessageKind.CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY,
17 17 "Const constructor or factory can't have a body.",
18 const Map<SharedMessageKind, MessageTemplate> TEMPLATES = const <SharedMessageKi nd, MessageTemplate>{ 18 howToFix: "Remove the 'const' keyword or the body.",
19 SharedMessageKind.exampleMessage: const MessageTemplate(
20 SharedMessageKind.exampleMessage,
21 "#use #named #arguments",
22 howToFix: "an explanation on how to fix things",
23 examples: const [ 19 examples: const [
24 r''' 20 r'''
25 Some multiline example; 21 class C {
26 That generates the bug.''', 22 const C() {}
27 const { 23 }
28 'fileA.dart': r''' 24
29 or a map from file to content. 25 main() => new C();''',
30 again multiline''', 26 r'''
31 'fileB.dart': r''' 27 class C {
32 with possibly multiple files. 28 const factory C() {}
33 muliline too''', 29 }
34 }, 30
31 main() => new C();''',
35 ] 32 ]
36 ), // Generated. Don't edit. 33 ), // Generated. Don't edit.
37 }; 34 };
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698