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 49d6f94700bb13ed831429c049fd72328a11baec..3ff455af1b594d5c4093ebe03dde6e33727080ca 100644 |
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
@@ -115,7 +115,9 @@ public enum ResolverErrorCode implements ErrorCode { |
"Illegal constructor declaration. No default clause in interface"), |
ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from static scope"), |
ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from static scope"), |
- INIT_FIELD_ONLY_IMMEDIATELY_SURROUNDING_CLASS("Only fields of immediately surrounding class can be initialized"), |
+ INIT_FIELD_ONLY_IMMEDIATELY_SURROUNDING_CLASS( |
+ "Only fields of immediately surrounding class can be initialized"), |
+ INSTANCE_METHOD_FROM_REDIRECT("Instance methods cannot be referenced from constructor redirects"), |
INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static methods"), |
INTERNAL_ERROR("internal error: %s"), |
INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary expressions"), |
@@ -165,7 +167,7 @@ public enum ResolverErrorCode implements ErrorCode { |
THIS_OUTSIDE_OF_METHOD("Cannot use 'this' outside of a method"), |
THIS_IN_FACTORY_CONSTRUCTOR("Cannot use 'this' in a factory constructor"), |
TOO_MANY_QUALIFIERS_FOR_METHOD("Too many qualifiers for method or constructor"), |
- TOPLEVEL_FINAL_REQUIRES_VALUE("Top-level final fields must have an initial value"), |
+ TOPLEVEL_FINAL_REQUIRES_VALUE("Top-level final fields must have an initial value"), |
TYPE_ARGS_ONLY_ON_CONSTRUCTORS("Type arguments are only allowed on constructor methods"), |
TYPE_NOT_ASSIGNMENT_COMPATIBLE("%s is not assignable to %s"), |
TYPE_VARIABLE_DOES_NOT_MATCH("Type variable %s does not match %s in default class %s."), |
@@ -175,7 +177,7 @@ public enum ResolverErrorCode implements ErrorCode { |
TYPE_VARIABLE_NOT_ALLOWED_IN_IDENTIFIER( |
"type variables are not allowed in identifier expressions"), |
WRONG_NUMBER_OF_TYPE_ARGUMENTS("%s: wrong number of type arguments (%d). Expected %d"); |
- |
+ |
private final ErrorSeverity severity; |
private final String message; |