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

Unified Diff: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java

Issue 8527005: Better redirecting constructor and initializers problems reporting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Report problems for all nodes Created 9 years, 1 month 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/parser/ParserErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
index c62ac12369de86efd59d43bfe046e05df8c6eef4..e2525f6c8d056e14574002452d26385e79d77155 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -39,13 +39,18 @@ public enum ParserErrorCode implements ErrorCode {
FUNCTION_TYPED_PARAMETER_IS_FINAL("Formal parameter with a function type cannot be const"),
FUNCTION_TYPED_PARAMETER_IS_VAR("Formal parameter with a function type cannot be var"),
ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE("Illegal assignment to non-assignable expression"),
- ILLEGAL_NUMBER_OF_ARGUMENTS("Illegal number of arguments"),
+ ILLEGAL_NUMBER_OF_PARAMETERS("Illegal number of parameters"),
INCOMPLETE_STRING_LITERAL("Incomplete string literal"),
INVALID_FIELD_DECLARATION("Wrong syntax for field declaration"),
INVALID_OPERATOR_CHAINING("Cannot chain '%s'"),
MISSING_FUNCTION_NAME("a function name is required for a declaration"),
NON_FINAL_STATIC_MEMBER_IN_INTERFACE("Non-final static members are not allowed in interfaces"),
OPERATOR_CANNOT_BE_STATIC("Operators cannot be static"),
+ REDIRECTING_CONSTRUCTOR_PARAM("Redirecting constructor can not have initializers"),
+ REDIRECTING_CONSTRUCTOR_ITSELF("Redirecting constructor can not have initializers"),
+ REDIRECTING_CONSTRUCTOR_MULTIPLE("Multiple redirecting constructor invocations"),
+ REDIRECTING_CONSTRUCTOR_OTHER("Redirecting constructor can not have initializers"),
+ SUPER_CONSTRUCTOR_MULTIPLE("'super' must be called only once in the initialization list"),
TOP_LEVEL_IS_STATIC("Top-level field or method may not be static"),
UNEXPECTED_TOKEN("Unexpected token '%s'"),
UNEXPECTED_TOKEN_IN_STRING_INTERPOLATION("Unexpected token in string interpolation: %s"),

Powered by Google App Engine
This is Rietveld 408576698