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

Unified Diff: runtime/observatory/lib/src/models/objects/field.dart

Issue 2287793002: Converted Observatory field-view element (Closed)
Patch Set: Fixed tests Created 4 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/observatory/lib/src/models/objects/field.dart
diff --git a/runtime/observatory/lib/src/models/objects/field.dart b/runtime/observatory/lib/src/models/objects/field.dart
index 152c920866c71a2d602c06a93382ae46d15ef464..188f223cde3259ff224f52baf6deb8bdc941f249 100644
--- a/runtime/observatory/lib/src/models/objects/field.dart
+++ b/runtime/observatory/lib/src/models/objects/field.dart
@@ -27,3 +27,21 @@ abstract class FieldRef extends ObjectRef {
/// Is this field static?
bool get isStatic;
}
+
+enum GuardClassKind {
+ unknown,
+ single,
+ dynamic
+}
+
+abstract class Field extends Object implements FieldRef {
+ /// [optional] The value of this field, if the field is static.
+ InstanceRef get staticValue;
+
+ /// [optional] The location of this field in the source code.
+ SourceLocation get location;
+
+ GuardClassKind get guardClassKind;
+ ClassRef get guardClass;
+ bool get guardNullable;
+}
« no previous file with comments | « runtime/observatory/lib/src/elements/service_view.html ('k') | runtime/observatory/lib/src/models/repositories/class.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698