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

Unified Diff: pkg/kernel/test/reify/suite.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/test/reify/suite.dart
diff --git a/pkg/kernel/test/reify/suite.dart b/pkg/kernel/test/reify/suite.dart
index 3bfe378a33e464720cbdd6f95c9e80bcbe792cb5..eacc9833016b75a4b1b0e9b9436afb6907e04fdb 100644
--- a/pkg/kernel/test/reify/suite.dart
+++ b/pkg/kernel/test/reify/suite.dart
@@ -13,6 +13,8 @@ import 'package:analyzer/src/generated/sdk.dart' show DartSdk;
import 'package:analyzer/src/kernel/loader.dart'
show DartLoader, DartOptions, createDartSdk;
+import 'package:kernel/class_hierarchy.dart' show ClosedWorldClassHierarchy;
+
import 'package:kernel/core_types.dart' show CoreTypes;
import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget;
@@ -194,8 +196,9 @@ class NotReifiedKernel extends Step<TestDescription, Program, TestContext> {
return fail(program, "$error");
}
var coreTypes = new CoreTypes(program);
+ var hierarchy = new ClosedWorldClassHierarchy(program);
target
- ..performModularTransformations(coreTypes, program)
+ ..performModularTransformations(coreTypes, hierarchy, program)
..performGlobalTransformations(coreTypes, program);
return pass(program);
} catch (e, s) {

Powered by Google App Engine
This is Rietveld 408576698