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

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

Issue 8588038: Addresses a ClassCastException seen in the editor from MemberBuilder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Unit test added for 'internal error' case I removed. Created 9 years, 1 month 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/ResolverErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
index 1a6b82cca5ea8b00a09bac5e50c1199f7dff118b..c6ce59d73924e883776fd9adab93d61d1c6123d7 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -98,6 +98,7 @@ public enum ResolverErrorCode implements ErrorCode {
STATIC_METHOD_ACCESS_SUPER("Cannot use 'super' in a static method"),
STATIC_METHOD_ACCESS_THIS("Cannot use 'this' in a static method"),
SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"),
+ TOO_MANY_QUALIFIERS_FOR_METHOD("Too many qualifiers for method or constructor"),
TOP_LEVEL_METHOD_ACCESS_SUPER("Cannot use 'super' in a top-level method"),
TOP_LEVEL_METHOD_ACCESS_THIS("Cannot use 'this' in a top-level method"),
TYPE_NOT_ASSIGNMENT_COMPATIBLE("%s is not assignable to %s"),
@@ -121,14 +122,17 @@ public enum ResolverErrorCode implements ErrorCode {
this.message = message;
}
+ @Override
public String getMessage() {
return message;
}
+ @Override
public ErrorSeverity getErrorSeverity() {
return severity;
}
+ @Override
public SubSystem getSubSystem() {
return SubSystem.RESOLVER;
}

Powered by Google App Engine
This is Rietveld 408576698