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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/fasta_codes.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes.dart b/pkg/front_end/lib/src/fasta/fasta_codes.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f21d228dadca15931ad3f0c22a70c88e9db9714a
--- /dev/null
+++ b/pkg/front_end/lib/src/fasta/fasta_codes.dart
@@ -0,0 +1,45 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library fasta.codes;
+
+import 'package:front_end/src/fasta/scanner/token.dart' show Token;
+
+part 'fasta_codes_generated.dart';
+
+class FastaCode<T> {
+ final String template;
+
+ final String tip;
+
+ final String analyzerCode;
+
+ final String dart2jsCode;
+
+ final T format;
+
+ const FastaCode(
+ {this.template,
+ this.tip,
+ this.analyzerCode,
+ this.dart2jsCode,
+ this.format});
+}
+
+class FastaMessage {
+ final Uri uri;
+
+ final int charOffset;
+
+ final String message;
+
+ final String tip;
+
+ final FastaCode code;
+
+ final Map<String, dynamic> arguments;
+
+ const FastaMessage(this.uri, this.charOffset, this.code,
+ {this.message, this.tip, this.arguments});
+}
« 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