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

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

Issue 2616703006: Preserve isConst when cloning. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | 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 4cfb9e8e4489dad5fd80d39bb45b16c8c1d25d89..8ef08210c46f6d038fa113f0e3a2ed780897d6d1 100644
--- a/pkg/kernel/lib/clone.dart
+++ b/pkg/kernel/lib/clone.dart
@@ -119,11 +119,13 @@ class CloneVisitor extends TreeVisitor {
}
visitStaticInvocation(StaticInvocation node) {
- return new StaticInvocation(node.target, clone(node.arguments));
+ return new StaticInvocation(node.target, clone(node.arguments),
+ isConst: node.isConst);
}
visitConstructorInvocation(ConstructorInvocation node) {
- return new ConstructorInvocation(node.target, clone(node.arguments));
+ return new ConstructorInvocation(node.target, clone(node.arguments),
+ isConst: node.isConst);
}
visitNot(Not node) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698