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

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

Issue 9949016: Adds fixes for the 'super' keyword used by itself in certain situations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed ResolverErrorCode 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 85c9bfa209b2448884c87ae8f7884a1fc93d9ed8..a37e9b5cd5d3817014186f6850c6d68a8cf3decd 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -82,6 +82,11 @@ public enum ParserErrorCode implements ErrorCode {
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."),
+ SUPER_IS_NOT_VALID_AS_A_BOOLEAN_OPERAND("'super' is not valid as a boolean operand"),
+ SUPER_IS_NOT_VALID_ALONE_OR_AS_A_BOOLEAN_OPERAND(
+ "'super' is not valid alone or as a boolean operand"),
TOP_LEVEL_CANNOT_BE_STATIC("Top-level field or method can 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