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

Side by Side Diff: pkg/front_end/lib/src/fasta/fasta_codes.dart

Issue 2778213002: Use message.yaml in parser. (Closed)
Patch Set: Update subpackage relationships. Created 3 years, 8 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 // Copyright (c) 2017, 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.
4
5 library fasta.codes;
6
7 import 'package:front_end/src/fasta/scanner/token.dart' show Token;
8
9 part 'fasta_codes_generated.dart';
10
11 class FastaCode<T> {
12 final String template;
13
14 final String tip;
15
16 final String analyzerCode;
17
18 final String dart2jsCode;
19
20 final T format;
21
22 const FastaCode(
23 {this.template,
24 this.tip,
25 this.analyzerCode,
26 this.dart2jsCode,
27 this.format});
28 }
29
30 class FastaMessage {
31 final Uri uri;
32
33 final int charOffset;
34
35 final String message;
36
37 final String tip;
38
39 final FastaCode code;
40
41 final Map<String, dynamic> arguments;
42
43 const FastaMessage(this.uri, this.charOffset, this.code,
44 {this.message, this.tip, this.arguments});
45 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/tree/nodes.dart ('k') | pkg/front_end/lib/src/fasta/fasta_codes_generated.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698