Index: pkg/kernel/lib/transformations/erasure.dart |
diff --git a/pkg/kernel/lib/transformations/erasure.dart b/pkg/kernel/lib/transformations/erasure.dart |
index d2cb413e9e994b17ccca167f626badcb1cb39fe5..7923928edfa41ea9dbc8a0d3995b2b3c67f092f4 100644 |
--- a/pkg/kernel/lib/transformations/erasure.dart |
+++ b/pkg/kernel/lib/transformations/erasure.dart |
@@ -5,6 +5,18 @@ library kernel.transformations.erasure; |
import '../ast.dart'; |
import '../type_algebra.dart'; |
+import '../core_types.dart'; |
+ |
+Program transformProgram(CoreTypes coreTypes, Program program) { |
+ program.accept(new Erasure()); |
+} |
+ |
+void transformLibraries(CoreTypes coreTypes, List<Library> libraries) { |
+ Erasure erasure = new Erasure(); |
+ for (Library library in libraries) { |
+ library.accept(erasure); |
+ } |
+} |
/// This pass is a temporary measure to run strong mode code in the VM, which |
/// does not yet have the necessary runtime support. |