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

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

Issue 10534065: In analyzer, catch use of continue and break in inappropriate places (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: # 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 7106b1605784c14da89a4c4830e43f76546898be..bae0fa87c36ac604826c61f17c2115b90f91d004 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -18,7 +18,9 @@ public enum ParserErrorCode implements ErrorCode {
ABSTRACT_MEMBER_IN_INTERFACE("Abstract members are not allowed in interfaces"),
ABSTRACT_METHOD_WITH_BODY("Abstract method cannot have a body"),
ABSTRACT_TOP_LEVEL_ELEMENT("Only class can be abstract top-level element"),
+ BREAK_OUTSIDE_OF_LOOP("'break' used outside of loop or case statement"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
+ CONTINUE_OUTSIDE_OF_LOOP("'continue' used outside of loop or case statement"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT(
"Default values cannot be specified in abstract method"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_CLOSURE(

Powered by Google App Engine
This is Rietveld 408576698