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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.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: 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/TypeErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
index df36347c0f16371dafa997890b1fa9683cb9d34f..fdbf83d728a5c459f0b6d2baaeb87b71416e2df6 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
@@ -26,7 +26,11 @@ public enum TypeErrorCode implements ErrorCode {
MEMBER_IS_A_CONSTRUCTOR("%s is a constructor in %s"),
MISSING_ARGUMENT("missing argument of type %s"),
MISSING_RETURN_VALUE("no return value; expected a value of type %s"),
- NO_SUCH_TYPE("no such type \"%s\""),
+ NO_SUCH_TYPE_FIELD("no such type \"%s\" in field declaration"),
+ NO_SUCH_TYPE_GENERICS_ARGUMENT("no such type \"%s\" in type arguments"),
zundel 2011/10/31 19:00:28 nit: could you add the name of the type at the end
+ NO_SUCH_TYPE_PARAMETER("no such type \"%s\" in method parameter"),
zundel 2011/10/31 19:00:28 nit: again, could you add the name of the method p
scheglov 2011/10/31 20:48:06 I think now that may be having specific NO_SUCH_TY
zundel 2011/11/01 13:54:37 As a counter point, if you look at NO_SUCH_TYPE_GE
+ NO_SUCH_TYPE_RETURN("no such type \"%s\" in method return"),
zundel 2011/11/01 13:54:37 I agree this one is kind of silly.
+ NO_SUCH_TYPE_VARIABLE_STATEMENT("no such type \"%s\" in variable declaration statement"),
zundel 2011/11/01 13:54:37 This one might be too.
NOT_A_MEMBER_OF("\"%s\" is not a member of %s"),
NOT_A_METHOD_IN("\"%s\" is not a method in %s"),
NOT_A_FUNCTION("\"%s\" is not a function"),

Powered by Google App Engine
This is Rietveld 408576698