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

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

Issue 532063002: Teach the Observatory about Contexts. Factor out object graph information from the instance view. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/instance_ref.dart
diff --git a/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.dart b/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.dart
index 78c443699a3184b5b5712d8ae139fc95e7c50b55..19a87e1ee68eccbcf072c4effaeb3c041e35b2da 100644
--- a/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.dart
+++ b/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.dart
@@ -36,7 +36,7 @@ class InstanceRefElement extends ServiceRefElement {
return expandEvent;
}
- void expandEvent(bool expand, var done) {
+ void expandEvent(bool expand, Function onDone) {
assert(ref is Instance);
if (expand) {
ref.reload().then((result) {
@@ -46,12 +46,12 @@ class InstanceRefElement extends ServiceRefElement {
}
ref = result;
notifyPropertyChange(#ref, 0, 1);
- }).whenComplete(done);
+ }).whenComplete(onDone);
} else {
Instance refMap = ref;
refMap.fields = null;
refMap.elements = null;
- done();
+ onDone();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698