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

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

Issue 10907079: Generate different ErrorCodes for inferred and explicit type problems (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bd75aea4c041c023f826e851fc97420fdbb43a03..b43ca1445dec6aa60e46a4c441b3c40c18b534fb 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java
@@ -43,6 +43,7 @@ public enum TypeErrorCode implements ErrorCode {
INSTANTIATION_OF_CLASS_WITH_UNIMPLEMENTED_MEMBERS(
"instantiation of class %s with the inherited abstract members: %s"),
INTERFACE_HAS_NO_METHOD_NAMED("\"%s\" has no method named \"%s\""),
+ INTERFACE_HAS_NO_METHOD_NAMED_INFERRED(ErrorSeverity.INFO, "\"%s\" has no method named \"%s\""),
INTERNAL_ERROR("internal error: %s", true),
IS_STATIC_FIELD_IN("\"%s\" is a static field in \"%s\""),
IS_STATIC_METHOD_IN("\"%s\" is a static method in \"%s\""),
@@ -54,7 +55,9 @@ public enum TypeErrorCode implements ErrorCode {
NO_SUCH_TYPE("no such type \"%s\"", true),
NOT_A_FUNCTION_TYPE("\"%s\" is not a function type"),
NOT_A_MEMBER_OF("\"%s\" is not a member of %s"),
+ NOT_A_MEMBER_OF_INFERRED(ErrorSeverity.INFO, "\"%s\" is not a member of %s"),
NOT_A_METHOD_IN("\"%s\" is not a method in %s"),
+ NOT_A_METHOD_IN_INFERRED(ErrorSeverity.INFO, "\"%s\" is not a method in %s"),
NOT_A_TYPE("type \"%s\" expected, but \"%s\" found"),
OPERATOR_EQUALS_BOOL_RETURN_TYPE("operator 'equals' should return bool type"),
OPERATOR_INDEX_ASSIGN_VOID_RETURN_TYPE("operator '[]=' must have a return type of 'void'"),
@@ -72,6 +75,7 @@ public enum TypeErrorCode implements ErrorCode {
"Type alias cannot reference itself directly of via other typedefs"),
TYPE_VARIABLE_IN_STATIC_CONTEXT("cannot access type variable %s in static context"),
TYPE_NOT_ASSIGNMENT_COMPATIBLE("'%s' is not assignable to '%s'"),
+ TYPE_NOT_ASSIGNMENT_COMPATIBLE_INFERRED(ErrorSeverity.INFO, "'%s' is not assignable to '%s'"),
USE_ASSIGNMENT_ON_SETTER("Use assignment to set field '%s'"),
VOID("expression does not yield a value"),
WRONG_NUMBER_OF_TYPE_ARGUMENTS("%s: wrong number of type arguments (%d), Expected %d");
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698