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

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

Issue 1582903003: Generate dart2js and analyzer files for shared messages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments (and rebase) 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
(Empty)
1 /*
2 DON'T EDIT. GENERATED. DON'T EDIT.
3 This file has been generated by 'publish.dart' in the dart_messages package.
4
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
7 of the json, dart2js and analyzer representations.
8 */
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;
13
14 enum SharedMessageKind {
15 exampleMessage
16 }
17
18 const Map<SharedMessageKind, MessageTemplate> TEMPLATES = const <SharedMessageKi nd, MessageTemplate>{
19 SharedMessageKind.exampleMessage: const MessageTemplate(
20 SharedMessageKind.exampleMessage,
21 "#use #named #arguments",
22 examples: const [
23 r'''
24 Some multiline example;
25 That generates the bug.''',
26 const {
27 'fileA.dart': r'''
28 or a map from file to content.
29 again multiline''',
30 'fileB.dart': r'''
31 with possibly multiple files.
32 muliline too''',
33 },
34 ]
35 ), // Generated. Don't edit.
36 };
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