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

Unified Diff: pkg/compiler/lib/src/world.dart

Issue 2814663002: Use ClassEntity in ClassHierarchyNode (Closed)
Patch Set: Created 3 years, 8 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/compiler/lib/src/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index c5f2755adc74489e3980835fa536e1e8a5b03fb7..d1ac08dd8e7141fea1bf6321e28f94d662b1781c 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -1022,8 +1022,8 @@ class ClosedWorldImpl implements ClosedWorld, ClosedWorldRefiner {
void registerClosureClass(ClosureClassElement cls) {
ClassHierarchyNode parentNode = getClassHierarchyNode(cls.superclass);
- ClassHierarchyNode node =
- _classHierarchyNodes[cls] = new ClassHierarchyNode(parentNode, cls);
+ ClassHierarchyNode node = _classHierarchyNodes[cls] =
+ new ClassHierarchyNode(parentNode, cls, cls.hierarchyDepth);
for (ResolutionInterfaceType type in cls.allSupertypes) {
ClassSet subtypeSet = getClassSet(type.element);
subtypeSet.addSubtype(node);

Powered by Google App Engine
This is Rietveld 408576698