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

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

Issue 2940283002: [kernel] Fix assert message. (Closed)
Patch Set: Address comments 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
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | runtime/lib/errors_patch.dart » ('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 6ad1936bb5e48445e1ef44aa75c86065605f24d9..1e32f928d0e4ce8d81acbba9566a82e2e4201027 100644
--- a/pkg/kernel/lib/clone.dart
+++ b/pkg/kernel/lib/clone.dart
@@ -269,8 +269,10 @@ class CloneVisitor extends TreeVisitor {
}
visitAssertStatement(AssertStatement node) {
- return new AssertStatement(
- clone(node.condition), cloneOptional(node.message));
+ return new AssertStatement(clone(node.condition),
+ conditionStartOffset: node.conditionStartOffset,
+ conditionEndOffset: node.conditionEndOffset,
+ message: cloneOptional(node.message));
}
visitLabeledStatement(LabeledStatement node) {
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | runtime/lib/errors_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698