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

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: 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/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..0a32922b05883278d8edf36fda69542747d3bc14 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
@@ -27,9 +27,10 @@ public enum TypeErrorCode implements ErrorCode {
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\""),
+ NOT_A_FUNCTION("\"%s\" is not a function"),
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"),
+ NOT_A_TYPE("type \"%s\" expected, but \"%s\" found"),
OPERATOR_WRONG_OPERAND_TYPE("operand of \"%s\" must be assignable to \"%s\""),
STATIC_MEMBER_ACCESSED_THROUGH_INSTANCE(
"static member %s of %s cannot be accessed through an instance"),
@@ -37,7 +38,8 @@ public enum TypeErrorCode implements ErrorCode {
SUPERTYPE_HAS_METHOD("%s is a method in %s"),
TYPE_NOT_ASSIGNMENT_COMPATIBLE("%s is not assignable to %s"),
VOID("expression does not yield a value"),
- VOID_CANNOT_RETURN_VALUE("cannot return a value from a void function");
+ VOID_CANNOT_RETURN_VALUE("cannot return a value from a void function"),
+ WRONG_NUMBER_OF_TYPE_ARGUMENTS("%s: wrong number of type arguments");
private final ErrorSeverity severity;
private final String message;

Powered by Google App Engine
This is Rietveld 408576698