Index: pkg/kernel/tool/dartk.dart |
diff --git a/pkg/kernel/tool/dartk.dart b/pkg/kernel/tool/dartk.dart |
index b53a1180687ecda444350991e89244047cc8246e..35d97243d714d6f362e8f07b2f51ef4607111d8a 100755 |
--- a/pkg/kernel/tool/dartk.dart |
+++ b/pkg/kernel/tool/dartk.dart |
@@ -12,6 +12,7 @@ import '../bin/util.dart'; |
import 'package:args/args.dart'; |
import 'package:analyzer/src/kernel/loader.dart'; |
import 'package:kernel/application_root.dart'; |
+import 'package:kernel/core_types.dart'; |
import 'package:kernel/verifier.dart'; |
import 'package:kernel/kernel.dart'; |
import 'package:kernel/log.dart'; |
@@ -405,10 +406,11 @@ Future<CompilerOutcome> batchMain( |
// Apply target-specific transformations. |
if (target != null && canContinueCompilation) { |
- target.performModularTransformations(program); |
+ CoreTypes coreTypes = new CoreTypes(program); |
+ target.performModularTransformations(coreTypes, program); |
runVerifier(); |
if (options['link']) { |
- target.performGlobalTransformations(program); |
+ target.performGlobalTransformations(coreTypes, program); |
runVerifier(); |
} |
} |