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

Unified Diff: runtime/bin/vmservice/observatory/lib/src/elements/class_tree.dart

Issue 500093003: Remove service.Class.children, and (mostly) as a side-effect sort the class hierarchy view. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: build Created 6 years, 4 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: runtime/bin/vmservice/observatory/lib/src/elements/class_tree.dart
diff --git a/runtime/bin/vmservice/observatory/lib/src/elements/class_tree.dart b/runtime/bin/vmservice/observatory/lib/src/elements/class_tree.dart
index c4d16132ddb926b9364de8c2dce1c406f658f815..c9e11532f06398fc256b285da5558a9f9c14e611 100644
--- a/runtime/bin/vmservice/observatory/lib/src/elements/class_tree.dart
+++ b/runtime/bin/vmservice/observatory/lib/src/elements/class_tree.dart
@@ -24,11 +24,11 @@ class ClassTreeRow extends TableTreeRow {
// Child rows already created.
return;
}
- for (var subClass in cls.children) {
- if (subClass.isPatch) {
+ for (var subclass in cls.subclasses) {
+ if (subclass.isPatch) {
continue;
}
- var row = new ClassTreeRow(isolate, subClass, this);
+ var row = new ClassTreeRow(isolate, subclass, this);
children.add(row);
}
}
@@ -37,7 +37,7 @@ class ClassTreeRow extends TableTreeRow {
}
bool hasChildren() {
- return cls.children.length > 0;
+ return cls.subclasses.length > 0;
}
}

Powered by Google App Engine
This is Rietveld 408576698