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

Unified Diff: pkg/kernel/lib/clone.dart

Issue 2750013002: [kernel] Debugging of switch statement (Closed)
Patch Set: Take #2: Update switch case to include list of positions Created 3 years, 9 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: pkg/kernel/lib/clone.dart
diff --git a/pkg/kernel/lib/clone.dart b/pkg/kernel/lib/clone.dart
index ce207f7d642916448b4e4fc07ee6239176781f23..1c006d2197c2ff02208b342385ae2d3aa685e83a 100644
--- a/pkg/kernel/lib/clone.dart
+++ b/pkg/kernel/lib/clone.dart
@@ -282,8 +282,10 @@ class CloneVisitor extends TreeVisitor {
visitSwitchStatement(SwitchStatement node) {
for (SwitchCase switchCase in node.cases) {
- switchCases[switchCase] =
- new SwitchCase(switchCase.expressions.map(clone).toList(), null);
+ switchCases[switchCase] = new SwitchCase(
+ switchCase.expressions.map(clone).toList(),
+ new List<int>.from(switchCase.expressionsOffsets),
+ null);
}
return new SwitchStatement(
clone(node.expression), node.cases.map(clone).toList());

Powered by Google App Engine
This is Rietveld 408576698