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

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

Issue 457803002: Initial UI for Metrics in Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/inbound_reference.dart
diff --git a/runtime/bin/vmservice/observatory/lib/src/elements/inbound_reference.dart b/runtime/bin/vmservice/observatory/lib/src/elements/inbound_reference.dart
index cb738b5662d45e774c2355fe0db8e72279daa884..9efa1bf63cc5bf325259f8fa291c73aa12fd63a5 100644
--- a/runtime/bin/vmservice/observatory/lib/src/elements/inbound_reference.dart
+++ b/runtime/bin/vmservice/observatory/lib/src/elements/inbound_reference.dart
@@ -13,11 +13,11 @@ import 'service_ref.dart';
class InboundReferenceElement extends ServiceRefElement {
InboundReferenceElement.created() : super.created();
- dynamic get slot => ref['slot'];
+ dynamic get slot => (ref as ServiceMap)['slot'];
bool get slotIsArrayIndex => slot is num;
bool get slotIsField => slot is ServiceMap && slot['type'] == '@Field';
- ServiceObject get source => ref['source'];
+ ServiceObject get source => (ref as ServiceMap)['source'];
// I.e., inbound references to 'source' for recursive pointer chasing.
@observable ObservableList inboundReferences;
@@ -32,7 +32,7 @@ class InboundReferenceElement extends ServiceRefElement {
dynamic expander() {
return expandEvent;
}
-
+
void expandEvent(bool expand, var done) {
assert(ref is ServiceMap);
if (expand) {

Powered by Google App Engine
This is Rietveld 408576698