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

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

Issue 1625213003: Update messages, and fix typing in test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 /* 1 /*
2 DON'T EDIT. GENERATED. DON'T EDIT. 2 DON'T EDIT. GENERATED. DON'T EDIT.
3 This file has been generated by 'publish.dart' in the dart_messages package. 3 This file has been generated by 'publish.dart' in the dart_messages package.
4 4
5 Messages are maintained in `lib/shared_messages.dart` of that same package. 5 Messages are maintained in `lib/shared_messages.dart` of that same package.
6 After any change to that file, run `bin/publish.dart` to generate a new version 6 After any change to that file, run `bin/publish.dart` to generate a new version
7 of the json, dart2js and analyzer representations. 7 of the json, dart2js and analyzer representations.
8 */ 8 */
9 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 9 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
10 // for details. All rights reserved. Use of this source code is governed by a 10 // for details. All rights reserved. Use of this source code is governed by a
11 // BSD-style license that can be found in the LICENSE file. 11 // BSD-style license that can be found in the LICENSE file.
12 import '../messages.dart' show MessageTemplate; 12 import '../messages.dart' show MessageTemplate;
13 13
14 enum SharedMessageKind { 14 enum SharedMessageKind {
15 exampleMessage 15 exampleMessage
16 } 16 }
17 17
18 const Map<SharedMessageKind, MessageTemplate> TEMPLATES = const <SharedMessageKi nd, MessageTemplate>{ 18 const Map<SharedMessageKind, MessageTemplate> TEMPLATES = const <SharedMessageKi nd, MessageTemplate>{
19 SharedMessageKind.exampleMessage: const MessageTemplate( 19 SharedMessageKind.exampleMessage: const MessageTemplate(
20 SharedMessageKind.exampleMessage, 20 SharedMessageKind.exampleMessage,
21 "#use #named #arguments", 21 "#use #named #arguments",
22 howToFix: "an explanation on how to fix things",
22 examples: const [ 23 examples: const [
23 r''' 24 r'''
24 Some multiline example; 25 Some multiline example;
25 That generates the bug.''', 26 That generates the bug.''',
26 const { 27 const {
27 'fileA.dart': r''' 28 'fileA.dart': r'''
28 or a map from file to content. 29 or a map from file to content.
29 again multiline''', 30 again multiline''',
30 'fileB.dart': r''' 31 'fileB.dart': r'''
31 with possibly multiple files. 32 with possibly multiple files.
32 muliline too''', 33 muliline too''',
33 }, 34 },
34 ] 35 ]
35 ), // Generated. Don't edit. 36 ), // Generated. Don't edit.
36 }; 37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698