Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
index 8fcf8ab924ee7f276522cac2e8b55a62f7fdb52d..0e7f886e1fc01d176db999cf028411bee2f2da84 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
@@ -617,7 +617,7 @@ class CodeGenerator extends tree_ir.StatementVisitor |
js.Expression argumentNames = new js.ArrayInitializer( |
node.selector.namedArguments.map(js.string).toList(growable: false)); |
return buildStaticHelperInvocation(glue.createInvocationMirrorMethod, |
- <js.Expression>[name, internalName, kind, arguments, argumentNames]); |
+ [name, internalName, kind, arguments, argumentNames]); |
} |
@override |
@@ -703,21 +703,6 @@ class CodeGenerator extends tree_ir.StatementVisitor |
return glue.generateTypeRepresentation(node.dartType, arguments); |
} |
- js.Node handleForeignCode(tree_ir.ForeignCode node) { |
- registry.registerStaticUse(node.dependency); |
- return node.codeTemplate.instantiate(visitExpressionList(node.arguments)); |
- } |
- |
- @override |
- js.Expression visitForeignExpression(tree_ir.ForeignExpression node) { |
- return handleForeignCode(node); |
- } |
- |
- @override |
- visitForeignStatement(tree_ir.ForeignStatement node) { |
- return handleForeignCode(node); |
- } |
- |
@override |
js.Expression visitApplyBuiltinOperator(tree_ir.ApplyBuiltinOperator node) { |
List<js.Expression> args = visitExpressionList(node.arguments); |