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

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

Issue 10536143: Detect continue inside of case statement with no label (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed problem with function definitions inside case stmts Created 8 years, 6 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 cb03b752e4c4ce35cb2a32a2e06e9d54902eb526..d6b3af708143dfa0347094b4845a7ccedc136ba5 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -24,6 +24,7 @@ public enum ParserErrorCode implements ErrorCode {
BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME("Built-in identifier can not be used as type alias name"),
BUILT_IN_IDENTIFIER_AS_TYPE_VARIABLE_NAME("Built-in identifier can not be used as type variable name"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
+ CONTINUE_IN_CASE_MUST_HAVE_LABEL("'continue' in case statement must have a label as a target."),
CONTINUE_OUTSIDE_OF_LOOP("'continue' used outside of loop or case statement"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_CLOSURE(
"Default values cannot be specified in closure parameter"),

Powered by Google App Engine
This is Rietveld 408576698