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

Unified Diff: pkg/compiler/lib/src/kernel/kernel_visitor.dart

Issue 2346543002: kernel -> ssa: implement literal lists (Closed)
Patch Set: dartfmt Created 4 years, 3 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 | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/kernel_visitor.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
index 493b78fc7c703c80ddc2b81dd92c1c0dc96b0432..0c1f544c8400af206fd246d41fef69d2f9574dc8 100644
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
@@ -861,10 +861,12 @@ class KernelVisitor extends Object
for (Expression element in node.elements.nodes) {
elements.add(visitForValue(element));
}
- return new ir.ListLiteral(elements,
- typeArgument: computeTypeFromTypes(node.typeArguments),
- // TODO(ahe): Should constness be validated?
- isConst: node.isConst);
+ return associateNode(
+ new ir.ListLiteral(elements,
+ typeArgument: computeTypeFromTypes(node.typeArguments),
+ // TODO(ahe): Should constness be validated?
+ isConst: node.isConst),
+ node);
}
@override
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698