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 |