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

Unified Diff: pkg/kernel/lib/transformations/erasure.dart

Issue 2919003003: Reapply "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: Follow dartanalyzer suggestions Created 3 years, 7 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: 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.

Powered by Google App Engine
This is Rietveld 408576698