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 81abd2af5e9d0a193e329a98c3a3658c53b9601a..95fbed0c09eea19b7db3fc3f9b16e7c414eec32e 100644 |
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
@@ -47,6 +47,15 @@ public enum ResolverErrorCode implements ErrorCode { |
CONST_CONSTRUCTOR_MUST_CALL_CONST_SUPER("const constructor must call const super constructor"), |
CONSTANTS_MUST_BE_INITIALIZED("constants must be initialized"), |
CYCLIC_CLASS("%s causes a cycle in the supertype graph"), |
+ DEFAULT_CLASS_MUST_HAVE_SAME_TYPE_PARAMS( |
+ "default class must have the same type parameters as declared in the interface"), |
+ DEFAULT_CONSTRUCTOR_UNRESOLVED( |
+ "Can not resolve constructor with name '%s' in default class '%s'"), |
+ DEFAULT_CONSTRUCTOR_NUMBER_OF_REQUIRED_PARAMETERS( |
+ "Constructor '%s' in '%s' has %s required parameters, doesn't match '%s' in '%s' with %s"), |
+ DEFAULT_CONSTRUCTOR_NAMED_PARAMETERS( |
+ "Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in '%s' with %s"), |
+ DEFAULT_MUST_SPECIFY_CLASS("default must indicate a class, not an interface"), |
DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"), |
DUPLICATED_INTERFACE("%s and %s are duplicated in the supertype graph"), |
DUPLICATE_MEMBER("Duplicate member '%s'"), |
@@ -71,12 +80,6 @@ public enum ResolverErrorCode implements ErrorCode { |
FACTORY_CANNOT_BE_ABSTRACT("A factory cannot be abstract"), |
FACTORY_CANNOT_BE_CONST("A factory cannot be const"), |
FACTORY_CANNOT_BE_STATIC("A factory cannot be static"), |
- FACTORY_CONSTRUCTOR_TYPE_ARGS_DO_NOT_MATCH("Factory constructor type arguments do not match"), |
- FACTORY_CONSTRUCTOR_UNRESOLVED("Can not resolve constructor with name '%s' in factory '%s'"), |
- FACTORY_CONSTRUCTOR_NUMBER_OF_REQUIRED_PARAMETERS( |
- "Constructor '%s' in '%s' has %s required parameters, doesn't match '%s' in '%s' with %s"), |
- FACTORY_CONSTRUCTOR_NAMED_PARAMETERS( |
- "Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in '%s' with %s"), |
FIELD_CONFLICTS("%s conflicts with previously defined %s at line %d column %d"), |
ILLEGAL_ACCESS_TO_PRIVATE_MEMBER("\"%s\" refers to \"%s\" which is in a different library"), |
ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from static scope"), |
@@ -119,6 +122,7 @@ public enum ResolverErrorCode implements ErrorCode { |
TOO_MANY_QUALIFIERS_FOR_METHOD("Too many qualifiers for method or constructor"), |
TYPE_ARGS_ONLY_ON_CONSTRUCTORS("Type arguments are only allowed on constructor methods"), |
TYPE_NOT_ASSIGNMENT_COMPATIBLE("%s is not assignable to %s"), |
+ TYPE_PARAMETER_DOES_NOT_MATCH("Type parameter %s does not match %s in default specification."), |
TYPE_VARIABLE_IN_STATIC_CONTEXT("cannot access type variable %s in static context"), |
WRONG_NUMBER_OF_TYPE_ARGUMENTS("%s: wrong number of type arguments"); |
private final ErrorSeverity severity; |