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

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

Issue 10716005: Fixes the scope of case labels so that duplicate case labels are properly detected (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/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 a9dca33279c1c81021f9570f8273f03835cad7ee..748ae1da28ce0b4e0b4d37e62876f8b6491e6dac 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -79,6 +79,7 @@ public enum ResolverErrorCode implements ErrorCode {
DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"),
DUPLICATE_FUNCTION_EXPRESSION_WARNING(ErrorSeverity.WARNING,
"Function expression '%s' is hiding '%s' at %s"),
+ DUPLICATE_LABEL_IN_SWITCH_STATEMENT("Duplicate label in switch statement"),
DUPLICATE_LOCAL_VARIABLE_ERROR("Duplicate local variable '%s'"),
DUPLICATE_LOCAL_VARIABLE_WARNING(ErrorSeverity.WARNING,
"Local variable '%s' is hiding '%s' at %s"),

Powered by Google App Engine
This is Rietveld 408576698