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

Unified Diff: runtime/observatory/lib/src/elements/instance_view.dart

Issue 1807263004: Improve class-tree, class-view, and instance-view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code review Created 4 years, 9 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/observatory/lib/src/elements/instance_view.dart
diff --git a/runtime/observatory/lib/src/elements/instance_view.dart b/runtime/observatory/lib/src/elements/instance_view.dart
index 96a3b746ceb3b74bf89921d54cb15e1ca44b4800..dda1cc5210d8a42ad6bc6bc2ce71a0b2edfb481b 100644
--- a/runtime/observatory/lib/src/elements/instance_view.dart
+++ b/runtime/observatory/lib/src/elements/instance_view.dart
@@ -15,6 +15,19 @@ class InstanceViewElement extends ObservatoryElement {
InstanceViewElement.created() : super.created();
+ instanceChanged(oldValue) {
+ if (instance != null) {
+ // We load typeClass and typeArguments because we want to
+ // display this info.
+ if (instance.typeClass != null) {
+ instance.typeClass.load();
+ }
+ if (instance.typeArguments != null) {
+ instance.typeArguments.load();
+ }
+ }
+ }
+
Future<ServiceObject> evaluate(String expression) {
return instance.evaluate(expression);
}
« no previous file with comments | « runtime/observatory/lib/src/elements/class_view.html ('k') | runtime/observatory/lib/src/elements/instance_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698