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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 10942019: Issue 2862. Report warning if switch/case does not end with break, continue, return or throw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/resolver/ResolverErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
index a2d6c478059f610334da687df6c8a89e50304f5c..248d3008a22a66cdbb48dbdabd541e060bee90bc 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -188,6 +188,7 @@ public enum ResolverErrorCode implements ErrorCode {
SUPER_IN_STATIC_METHOD("Cannot use 'super' in a static method"),
SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"),
SUPER_ON_TOP_LEVEL("Cannot use 'super' in a top-level element"),
+ SWITCH_CASE_FALL_THROUGH(ErrorSeverity.WARNING, "Switch case should end with break, continue, return or throw"),
THIS_IN_STATIC_METHOD("Cannot use 'this' in a static method"),
THIS_IN_INITIALIZER_AS_EXPRESSION("Cannot reference 'this' as expression in initializer list"),
THIS_ON_TOP_LEVEL("Cannot use 'this' in a top-level element"),

Powered by Google App Engine
This is Rietveld 408576698