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

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

Issue 8384012: Make some ErrorCode-s compile-time errors and some just type warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for comments Created 9 years, 2 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/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 e06d92a8ebd4f2da0d935d7dc57fa73fd4bb4a16..2dd5adb92ccfd3470875b302b5a60ea177c60f0f 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -40,6 +40,8 @@ public enum ResolverErrorCode implements ErrorCode {
DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"),
DUPLICATE_DEFINITION("duplicate definition of %s"),
DUPLICATED_INTERFACE("%s and %s are duplicated in the supertype graph"),
+ DYNAMIC_EXTENDS("Dynamic can not be used as superclass"),
+ DYNAMIC_IMPLEMENTS("Dynamic can not be used as superinterface"),
EXPECTED_AN_INSTANCE_FIELD_IN_SUPER_CLASS(
"expected an instance field in the super class, but got %s"),
EXPECTED_CONSTANT_EXPRESSION("Expected constant expression"),
@@ -76,6 +78,7 @@ public enum ResolverErrorCode implements ErrorCode {
NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a constructor"),
NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type variable"),
NO_SUCH_TYPE("no such type \"%s\""),
+ NO_SUCH_TYPE_CONSTRUCTOR("no such type \"%s\" in constructor"),
NOT_A_CLASS("\"%s\" is not a class"),
NOT_A_CLASS_OR_INTERFACE("\"%s\" is not a class or interface"),
NOT_A_LABEL("\"%s\" is not a label"),

Powered by Google App Engine
This is Rietveld 408576698