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

Unified Diff: pkg/kernel/tool/dartk.dart

Issue 2918593003: Pass ClassHierarchy instead of creating it. (Closed)
Patch Set: 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/tool/dartk.dart
diff --git a/pkg/kernel/tool/dartk.dart b/pkg/kernel/tool/dartk.dart
index 35d97243d714d6f362e8f07b2f51ef4607111d8a..e42e9f33db638d7a14bf33ff2e145a9bea6c92f3 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/class_hierarchy.dart';
import 'package:kernel/core_types.dart';
import 'package:kernel/verifier.dart';
import 'package:kernel/kernel.dart';
@@ -407,7 +408,8 @@ Future<CompilerOutcome> batchMain(
// Apply target-specific transformations.
if (target != null && canContinueCompilation) {
CoreTypes coreTypes = new CoreTypes(program);
- target.performModularTransformations(coreTypes, program);
+ ClassHierarchy hierarchy = new ClosedWorldClassHierarchy(program);
+ target.performModularTransformations(coreTypes, hierarchy, program);
runVerifier();
if (options['link']) {
target.performGlobalTransformations(coreTypes, program);

Powered by Google App Engine
This is Rietveld 408576698