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

Unified Diff: pkg/kernel/test/type_subtype_test.dart

Issue 2930973002: Remove ClassHierarchy factory constructor. (Closed)
Patch Set: Created 3 years, 6 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/test/treeshaker_membench.dart ('k') | pkg/kernel/test/typecheck.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/type_subtype_test.dart
diff --git a/pkg/kernel/test/type_subtype_test.dart b/pkg/kernel/test/type_subtype_test.dart
index 7e1b5fdd85f529a1c91afabf548b5e98f47ed256..b6d7b373075d673573677a20f43689d033814783 100644
--- a/pkg/kernel/test/type_subtype_test.dart
+++ b/pkg/kernel/test/type_subtype_test.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'package:kernel/src/incremental_class_hierarchy.dart';
import 'package:test/test.dart';
import 'package:kernel/ast.dart';
import 'package:kernel/class_hierarchy.dart';
@@ -171,8 +172,7 @@ MockSubtypeTester makeSubtypeTester(Map<String, List<String>> testcase) {
}
}
}
- var program = new Program(libraries: [environment.dummyLibrary]);
- var hierarchy = new ClassHierarchy(program);
+ var hierarchy = new IncrementalClassHierarchy();
return new MockSubtypeTester(hierarchy, objectClass.rawType,
functionClass.rawType, futureClass, futureOrClass, environment);
}
« no previous file with comments | « pkg/kernel/test/treeshaker_membench.dart ('k') | pkg/kernel/test/typecheck.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698