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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Resolver.java

Issue 10700089: Another round of JUnit tests to finish off ResovlerErrorCodes I could reproduce (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
Index: compiler/java/com/google/dart/compiler/resolver/Resolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
index af79b8bdec9e10117a08281ff434c2f620a7dae4..3773b36f3f3f2ec9f01b07b5de12edada96d5dc8 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -1661,6 +1661,12 @@ public class Resolver {
break;
}
+ case FIELD: {
+ onError(errorNode, ResolverErrorCode.IS_AN_INSTANCE_FIELD,
+ classOrLibrary.getName(), name);
+ break;
+ }
+
default:
throw context.internalError(errorNode, "Unexpected kind of element: %s", kind);
}

Powered by Google App Engine
This is Rietveld 408576698