OLD | NEW |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
1 /* | 4 /* |
2 DON'T EDIT. GENERATED. DON'T EDIT. | 5 DON'T EDIT. GENERATED. DON'T EDIT. |
3 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. |
4 | 7 |
5 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. |
6 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 |
7 of the json, dart2js and analyzer representations. | 10 of the json, dart2js and analyzer representations. |
8 */ | 11 */ |
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 | |
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 howToFix: "an explanation on how to fix things", |
23 examples: const [ | 23 examples: const [ |
24 r''' | 24 r''' |
25 Some multiline example; | 25 Some multiline example; |
26 That generates the bug.''', | 26 That generates the bug.''', |
27 const { | 27 const { |
28 'fileA.dart': r''' | 28 'fileA.dart': r''' |
29 or a map from file to content. | 29 or a map from file to content. |
30 again multiline''', | 30 again multiline''', |
31 'fileB.dart': r''' | 31 'fileB.dart': r''' |
32 with possibly multiple files. | 32 with possibly multiple files. |
33 muliline too''', | 33 muliline too''', |
34 }, | 34 }, |
35 ] | 35 ] |
36 ), // Generated. Don't edit. | 36 ), // Generated. Don't edit. |
37 }; | 37 }; |
OLD | NEW |