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

Unified Diff: pkg/kernel/lib/target/flutter.dart

Issue 2904203003: Don't recreate CoreTypes in transformers. Pass it in. (Closed)
Patch Set: Don't create CoreTypes in createOutlines() on InputError. 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
« no previous file with comments | « pkg/kernel/bin/transform.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/target/flutter.dart
diff --git a/pkg/kernel/lib/target/flutter.dart b/pkg/kernel/lib/target/flutter.dart
index 43ed6b2a802222ecd8e66db7c4e828053994cf2a..d5d0996e20666bb3a16cae0ae36675998a11cd11 100644
--- a/pkg/kernel/lib/target/flutter.dart
+++ b/pkg/kernel/lib/target/flutter.dart
@@ -4,10 +4,11 @@
library kernel.target.flutter;
import '../ast.dart';
+import '../core_types.dart';
import '../transformations/continuation.dart' as cont;
import '../transformations/erasure.dart';
-import '../transformations/sanitize_for_vm.dart';
import '../transformations/mixin_full_resolution.dart' as mix;
+import '../transformations/sanitize_for_vm.dart';
import '../transformations/setup_builtin_library.dart' as setup_builtin_library;
import 'targets.dart';
@@ -49,12 +50,12 @@ class FlutterTarget extends Target {
'dart:vmservice_sky',
];
- void performModularTransformations(Program program) {
- mix.transformLibraries(this, program.libraries);
+ void performModularTransformations(CoreTypes coreTypes, Program program) {
+ mix.transformLibraries(this, coreTypes, program.libraries);
}
- void performGlobalTransformations(Program program) {
- cont.transformProgram(program);
+ void performGlobalTransformations(CoreTypes coreTypes, Program program) {
+ cont.transformProgram(coreTypes, program);
// Repair `_getMainClosure()` function in dart:{_builtin,ui} libraries.
setup_builtin_library.transformProgram(program);
« no previous file with comments | « pkg/kernel/bin/transform.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698