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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/verifier.dart

Issue 2723173002: Apply transformers and other work arounds to get boostrapping to work. (Closed)
Patch Set: Add exception class. Created 3 years, 10 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/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/test/fasta/bootstrap_test.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/kernel/verifier.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/verifier.dart b/pkg/front_end/lib/src/fasta/kernel/verifier.dart
index d2e6f3b8cb7983c53710f999d67048d631069490..b1bab551b3ab92baf91c3d6a14bb00e41d650681 100644
--- a/pkg/front_end/lib/src/fasta/kernel/verifier.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/verifier.dart
@@ -6,6 +6,9 @@ library fasta.verifier;
import 'package:kernel/ast.dart'
show
+ InvalidExpression,
+ InvalidStatement,
+ InvalidInitializer,
Class,
ExpressionStatement,
Field,
@@ -39,6 +42,10 @@ class FastaVerifyingVisitor extends VerifyingVisitor {
@override
problem(TreeNode node, String details) {
+ // TODO(karlklose): Remove this when underlying problem is fixed.
+ if (details.startsWith("Type parameter 'dart.collection::MapView::")) {
+ return;
+ }
VerificationError error = new VerificationError(context, node, details);
printUnexpected(Uri.parse(fileUri), node.fileOffset, "$error");
errors.add(error);
@@ -53,23 +60,42 @@ class FastaVerifyingVisitor extends VerifyingVisitor {
}
}
+ @override
visitLibrary(Library node) {
fileUri = node.fileUri;
super.visitLibrary(node);
}
+ @override
visitClass(Class node) {
fileUri = node.fileUri;
super.visitClass(node);
}
+ @override
visitField(Field node) {
fileUri = node.fileUri;
super.visitField(node);
}
+ @override
visitProcedure(Procedure node) {
fileUri = node.fileUri;
super.visitProcedure(node);
}
+
+ @override
+ visitInvalidExpression(InvalidExpression node) {
+ problem(node, "Invalid expression.");
+ }
+
+ @override
+ visitInvalidStatement(InvalidStatement node) {
+ problem(node, "Invalid statement.");
+ }
+
+ @override
+ visitInvalidInitializer(InvalidInitializer node) {
+ problem(node, "Invalid initializer.");
+ }
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/test/fasta/bootstrap_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698