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

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

Issue 2940283002: [kernel] Fix assert message. (Closed)
Patch Set: Created 3 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: pkg/kernel/lib/clone.dart
diff --git a/pkg/kernel/lib/clone.dart b/pkg/kernel/lib/clone.dart
index 6ad1936bb5e48445e1ef44aa75c86065605f24d9..71e2da2b0f85b81c26650a3f335e267f6a4f8e77 100644
--- a/pkg/kernel/lib/clone.dart
+++ b/pkg/kernel/lib/clone.dart
@@ -270,7 +270,9 @@ class CloneVisitor extends TreeVisitor {
visitAssertStatement(AssertStatement node) {
return new AssertStatement(
- clone(node.condition), cloneOptional(node.message));
+ clone(node.condition), cloneOptional(node.message))
+ ..conditionStartOffset = node.conditionStartOffset
+ ..conditionEndOffset = node.conditionEndOffset;
}
visitLabeledStatement(LabeledStatement node) {

Powered by Google App Engine
This is Rietveld 408576698