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

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

Issue 2750013002: [kernel] Debugging of switch statement (Closed)
Patch Set: Addressed comments 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
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/clone.dart
diff --git a/pkg/kernel/lib/clone.dart b/pkg/kernel/lib/clone.dart
index ce207f7d642916448b4e4fc07ee6239176781f23..7bd4f6d0ea10abba4ecc2ad1f47cdfc2d64b4ecc 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.expressionOffsets),
+ null);
}
return new SwitchStatement(
clone(node.expression), node.cases.map(clone).toList());
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698