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

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

Issue 10824045: Fix for issue 3915 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/Resolver.java
===================================================================
--- compiler/java/com/google/dart/compiler/resolver/Resolver.java (revision 9937)
+++ compiler/java/com/google/dart/compiler/resolver/Resolver.java (working copy)
@@ -68,6 +68,7 @@
import com.google.dart.compiler.ast.DartVariableStatement;
import com.google.dart.compiler.ast.DartWhileStatement;
import com.google.dart.compiler.ast.Modifiers;
+import com.google.dart.compiler.ast.NodeList;
import com.google.dart.compiler.common.HasSourceInfo;
import com.google.dart.compiler.common.SourceInfo;
import com.google.dart.compiler.parser.Token;
@@ -964,8 +965,8 @@
}
private void recordSwitchMamberLabel(DartSwitchMember x) {
- DartLabel label = x.getLabel();
- if (label != null) {
+ List<DartLabel> labels = x.getLabels();
+ for (DartLabel label : labels) {
LabelElement labelElement = Elements.switchMemberLabelElement(label, label.getName(),
innermostFunction);
recordElement(label.getLabel(), labelElement);

Powered by Google App Engine
This is Rietveld 408576698