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

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

Issue 8523034: Compile Time Constants cycle check (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added new test to exercise code that was throwing ICE 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..93e96d99e16cf8b034d40c11ba41570f326919bf 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -31,6 +31,8 @@ public enum ResolverErrorCode implements ErrorCode {
CANNOT_RESOLVE_SUPER_CONSTRUCTOR("cannot resolve method %s"),
CANNOT_RESOLVE_IMPLICIT_CALL_TO_SUPER_CONSTRUCTOR(
"super type %s does not have a default constructor"),
+ CIRCULAR_REFERENCE(
+ "Circular reference detected: compile-time constants cannot reference themselves."),
CONSTRUCTOR_CANNOT_BE_ABSTRACT("A constructor cannot be asbstract"),
CONSTRUCTOR_CANNOT_BE_STATIC("A constructor cannot be static"),
CONSTRUCTOR_CANNOT_HAVE_RETURN_TYPE("Generative constructors cannot have return type"),
@@ -121,14 +123,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