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

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

Issue 8576007: Expect 'extends' in type parameters declaration and recover, issue 341 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Better recovering, more tests. 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 d82b70acf004d01b20b37b358206ae4493bf7828..be5b9cb459b9d42f837f9ea96614c519e09fb971 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -30,6 +30,7 @@ public enum ParserErrorCode implements ErrorCode {
EXPECTED_COMMA_OR_RIGHT_BRACE("Expected ',' or '}'"),
EXPECTED_COMMA_OR_RIGHT_PAREN("Expected ',' or ')', but got '%s'"),
EXPECTED_EOS("Unexpected token '%s' (expected end of file)"),
+ EXPECTED_EXTENDS("Expected 'extends'"),
EXPECTED_IDENTIFIER("Expected identifier"),
EXPECTED_LEFT_PAREN("'(' expected"),
EXPECTED_PERIOD_OR_LEFT_BRACKET("Expected '.' or '['"),
@@ -62,6 +63,7 @@ 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 source was not parsed because of previous parsing problem"),
zundel 2011/11/18 18:04:33 (Missing 'the' and 'a') This part of the source ..
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'"),

Powered by Google App Engine
This is Rietveld 408576698