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

Unified Diff: sdk/lib/_internal/compiler/implementation/cps_ir/shrinking_reductions.dart

Issue 658103003: Support map and list literals in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use LiteralMapEntry to ensure build order Created 6 years, 2 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
Index: sdk/lib/_internal/compiler/implementation/cps_ir/shrinking_reductions.dart
diff --git a/sdk/lib/_internal/compiler/implementation/cps_ir/shrinking_reductions.dart b/sdk/lib/_internal/compiler/implementation/cps_ir/shrinking_reductions.dart
index 82aead1ac02e1749656b1b13252e264f8adc1b0b..f14ece5a98f9ee8b123bee06c896fb666b410602 100644
--- a/sdk/lib/_internal/compiler/implementation/cps_ir/shrinking_reductions.dart
+++ b/sdk/lib/_internal/compiler/implementation/cps_ir/shrinking_reductions.dart
@@ -371,8 +371,10 @@ class _ParentVisitor extends RecursiveVisitor {
}
processLiteralMap(LiteralMap node) {
- node.values.forEach((Reference ref) => ref.parent = node);
- node.keys.forEach((Reference ref) => ref.parent = node);
+ node.entries.forEach((LiteralMapEntry entry) {
+ entry.key.parent = node;
+ entry.value.parent = node;
+ });
}
processCreateFunction(CreateFunction node) {

Powered by Google App Engine
This is Rietveld 408576698