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

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

Issue 658103003: Support map and list literals in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/cps_ir_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart b/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
index 5cf7f0459563b5753420aec785d7b92dcff4c882..a79927f820200c85d3755e25afe1ddbbf738e3e9 100644
--- a/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
@@ -481,7 +481,7 @@ class LiteralList extends Primitive {
final GenericType type;
final List<Reference> values;
- LiteralList(this.type, List<Primitive> values)
+ LiteralList(this.type, Iterable<Primitive> values)
: this.values = _referenceList(values);
accept(Visitor visitor) => visitor.visitLiteralList(this);
@@ -492,7 +492,7 @@ class LiteralMap extends Primitive {
final List<Reference> keys;
final List<Reference> values;
- LiteralMap(this.type, List<Primitive> keys, List<Primitive> values)
+ LiteralMap(this.type, Iterable<Primitive> keys, Iterable<Primitive> values)
: this.keys = _referenceList(keys),
this.values = _referenceList(values);
@@ -566,7 +566,7 @@ class FunctionDefinition extends Node implements InteriorNode {
bool get isAbstract => body == null;
}
-List<Reference> _referenceList(List<Definition> definitions) {
+List<Reference> _referenceList(Iterable<Definition> definitions) {
return definitions.map((e) => new Reference(e)).toList();
}

Powered by Google App Engine
This is Rietveld 408576698