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 0c1f544c8400af206fd246d41fef69d2f9574dc8..26f3b3a01fba3760919e1a9c8c81d8464dfe8058 100644 |
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
@@ -879,11 +879,13 @@ class KernelVisitor extends Object |
} |
List<ir.DartType> typeArguments = |
computeTypesFromTypes(node.typeArguments, expected: 2); |
- return new ir.MapLiteral(entries, |
- keyType: typeArguments.first, |
- valueType: typeArguments.last, |
- // TODO(ahe): Should Constness be validated? |
- isConst: node.isConst); |
+ return associateNode( |
+ new ir.MapLiteral(entries, |
+ keyType: typeArguments.first, |
+ valueType: typeArguments.last, |
+ // TODO(ahe): Should Constness be validated? |
+ isConst: node.isConst), |
+ node); |
} |
@override |