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

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

Issue 10021017: Adds parser recovery for type parameters and type arguments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates for completion to work Created 8 years, 8 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/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 d1fa297ab1734902ab613ae2fee67f2d0fb2b1e9..b3b5e47e8f1d6d7c5432d99bdfde977c5127a1ff 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -69,6 +69,7 @@ public enum ParserErrorCode implements ErrorCode {
INCOMPLETE_STRING_LITERAL("Incomplete string literal"),
INTERFACE_METHOD_WITH_BODY("Interface method can not have a body"),
INVALID_FIELD_DECLARATION("Wrong syntax for field declaration"),
+ INVALID_IDENTIFIER("The token '%s' cannot be used as an identifier"),
INVALID_OPERATOR_CHAINING("Cannot chain '%s'"),
LOCAL_CANNOT_BE_STATIC("Local function can not be static"),
MISSING_FUNCTION_NAME("a function name is required for a declaration"),
@@ -83,7 +84,6 @@ public enum ParserErrorCode implements ErrorCode {
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"),
- SKIPPED_SOURCE("This part of the source was not parsed because of a previous parsing problem"),
SUPER_CONSTRUCTOR_MULTIPLE("'super' must be called only once in the initialization list"),
SUPER_CANNOT_BE_USED_AS_THE_SECOND_OPERAND(
"'super' cannot be used as the second operand in a binary expression."),

Powered by Google App Engine
This is Rietveld 408576698