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

Unified Diff: pkg/kernel/lib/class_hierarchy.dart

Issue 2919833002: Remove the ClassHierarchy.rootClass getter. (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
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/method_call.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/class_hierarchy.dart
diff --git a/pkg/kernel/lib/class_hierarchy.dart b/pkg/kernel/lib/class_hierarchy.dart
index 08283d8029ae26e62c5aff99a64c4f9826f14c03..4c79bacab42d57ced1c29b620b729c33f195023b 100644
--- a/pkg/kernel/lib/class_hierarchy.dart
+++ b/pkg/kernel/lib/class_hierarchy.dart
@@ -21,8 +21,6 @@ abstract class ClassHierarchy {
/// The iterable is ordered so that classes occur after their super classes.
Iterable<Class> get classes;
- Class get rootClass;
-
/// Returns the index of [class_] in the [classes] list.
int getClassIndex(Class class_);
@@ -136,8 +134,6 @@ class ClosedWorldClassHierarchy implements ClassHierarchy {
ClosedWorldClassHierarchy(Program program)
: this._internal(program, _countClasses(program));
- Class get rootClass => classes[0];
-
@override
int getClassIndex(Class class_) => _infoFor[class_].topologicalIndex;
@@ -472,6 +468,7 @@ class ClosedWorldClassHierarchy implements ClassHierarchy {
// Run a downward traversal from the root, compute preorder numbers for
// each class, and build their subtype sets as interval lists.
+ var rootClass = classes[0];
_topDownSortVisit(_infoFor[rootClass]);
for (int i = 0; i < classes.length; ++i) {
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/method_call.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698