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

Unified Diff: pkg/compiler/lib/src/tree/nodes.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/parser/partial_elements.dart ('k') | pkg/front_end/lib/src/fasta/fasta_codes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree/nodes.dart
diff --git a/pkg/compiler/lib/src/tree/nodes.dart b/pkg/compiler/lib/src/tree/nodes.dart
index 3bf561c218725d9bf59941865b3cf1ca2f4d4b6d..934d45a1dcae9e15340305feff91221a35f67f76 100644
--- a/pkg/compiler/lib/src/tree/nodes.dart
+++ b/pkg/compiler/lib/src/tree/nodes.dart
@@ -16,7 +16,7 @@ import '../util/util.dart';
import 'dartstring.dart';
import 'prettyprint.dart';
import 'unparser.dart';
-import 'package:front_end/src/fasta/parser.dart' show ErrorKind;
+import 'package:front_end/src/fasta/fasta_codes.dart' show FastaMessage;
abstract class Visitor<R> {
const Visitor();
@@ -3172,19 +3172,17 @@ class IsInterpolationVisitor extends Visitor<bool> {
class ErrorNode extends Node
implements FunctionExpression, VariableDefinitions, Typedef {
final Token token;
- final ErrorKind kind;
- final Map arguments;
+ final FastaMessage message;
final Identifier name;
final NodeList definitions;
- ErrorNode.internal(
- this.token, this.kind, this.arguments, this.name, this.definitions);
+ ErrorNode.internal(this.token, this.message, this.name, this.definitions);
- factory ErrorNode(Token token, ErrorKind kind, Map arguments) {
+ factory ErrorNode(Token token, FastaMessage message) {
Identifier name = new Identifier(token);
NodeList definitions =
new NodeList(null, const Link<Node>().prepend(name), null, null);
- return new ErrorNode.internal(token, kind, arguments, name, definitions);
+ return new ErrorNode.internal(token, message, name, definitions);
}
Token get beginToken => token;
« no previous file with comments | « pkg/compiler/lib/src/parser/partial_elements.dart ('k') | pkg/front_end/lib/src/fasta/fasta_codes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698