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

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

Issue 2335203005: kernel -> ssa: implement literal maps (Closed)
Patch Set: 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 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
« 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