| Index: pkg/analyzer2dart/lib/src/cps_generator.dart
|
| diff --git a/pkg/analyzer2dart/lib/src/cps_generator.dart b/pkg/analyzer2dart/lib/src/cps_generator.dart
|
| index a8c7698a88efa3462f72e5910877e925e2173a0b..ec3209215c9646f1e4bae3687a6594f2e32c0c79 100644
|
| --- a/pkg/analyzer2dart/lib/src/cps_generator.dart
|
| +++ b/pkg/analyzer2dart/lib/src/cps_generator.dart
|
| @@ -304,6 +304,25 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
|
| }
|
|
|
| @override
|
| + ir.Node visitListLiteral(ListLiteral node) {
|
| + dart2js.InterfaceType type = converter.convertType(node.staticType);
|
| + // TODO(johnniwinther): Use `build` instead of `(e) => build(e)` when issue
|
| + // 18630 has been resolved.
|
| + Iterable<ir.Primitive> values = node.elements.map((e) => build(e));
|
| + return irBuilder.buildListLiteral(type, values);
|
| + }
|
| +
|
| + @override
|
| + ir.Node visitMapLiteral(MapLiteral node) {
|
| + dart2js.InterfaceType type = converter.convertType(node.staticType);
|
| + return irBuilder.buildMapLiteral(
|
| + type,
|
| + node.entries.map((e) => e.key),
|
| + node.entries.map((e) => e.value),
|
| + build);
|
| + }
|
| +
|
| + @override
|
| visitForStatement(ForStatement node) {
|
| // TODO(johnniwinther): Support `for` as a jump target.
|
| SubbuildFunction buildInitializer;
|
|
|