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

Unified Diff: runtime/observatory/lib/src/service/object.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
« no previous file with comments | « runtime/observatory/lib/src/elements/isolate_view.html ('k') | runtime/vm/object_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 3345716b8f415656ffbc285ccb45efc4e4746b7e..5e4b7957f5a77928d20d8fbdf0c0e7e4d4850bc9 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -2179,6 +2179,9 @@ class Class extends HeapObject {
@reflectable final interfaces = new ObservableList<Instance>();
@reflectable final subclasses = new ObservableList<Class>();
+ @observable Instance superType;
+ @observable Instance mixin;
+
bool get canCache => true;
bool get immutable => false;
@@ -2242,6 +2245,9 @@ class Class extends HeapObject {
if (superclass != null && superclass.name == "Object") {
superclass._addSubclass(this);
}
+ superType = map['superType'];
+ mixin = map['mixin'];
+
error = map['error'];
traceAllocations =
@@ -2291,11 +2297,17 @@ class Instance extends HeapObject {
@observable bool valueAsStringIsTruncated;
@observable ServiceFunction function; // If a closure.
@observable Context context; // If a closure.
- @observable String name; // If a Type.
@observable int length; // If a List, Map or TypedData.
@observable Instance pattern; // If a RegExp.
- @observable var typeClass;
+ @observable String name;
+ @observable Class typeClass;
+ @observable Class parameterizedClass;
+ @observable ServiceObject typeArguments;
+ @observable int parameterIndex;
+ @observable Instance targetType;
+ @observable Instance bound;
+
@observable var fields;
@observable var nativeFields;
@observable var elements; // If a List.
@@ -2439,6 +2451,12 @@ class Instance extends HeapObject {
}
}
typeClass = map['typeClass'];
+ parameterizedClass = map['parameterizedClass'];
+ typeArguments = map['typeArguments'];
+ parameterIndex = map['parameterIndex'];
+ targetType = map['targetType'];
+ bound = map['bound'];
+
referent = map['mirrorReferent'];
key = map['propertyKey'];
value = map['propertyValue'];
« no previous file with comments | « runtime/observatory/lib/src/elements/isolate_view.html ('k') | runtime/vm/object_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698