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

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

Issue 2287793002: Converted Observatory field-view element (Closed)
Patch Set: Fixed tests Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file 3 // BSD-style license that can be found in the LICENSE file
4 4
5 part of models; 5 part of models;
6 6
7 abstract class FieldRef extends ObjectRef { 7 abstract class FieldRef extends ObjectRef {
8 /// The name of this field. 8 /// The name of this field.
9 String get name; 9 String get name;
10 10
11 /// The owner of this field, which can be either a Library or a 11 /// The owner of this field, which can be either a Library or a
12 /// Class. 12 /// Class.
13 ObjectRef get dartOwner; 13 ObjectRef get dartOwner;
14 14
15 /// The declared type of this field. 15 /// The declared type of this field.
16 /// 16 ///
17 /// The value will always be of one of the kinds: 17 /// The value will always be of one of the kinds:
18 /// Type, TypeRef, TypeParameter, BoundedType. 18 /// Type, TypeRef, TypeParameter, BoundedType.
19 InstanceRef get declaredType; 19 InstanceRef get declaredType;
20 20
21 /// Is this field const? 21 /// Is this field const?
22 bool get isConst; 22 bool get isConst;
23 23
24 /// Is this field final? 24 /// Is this field final?
25 bool get isFinal; 25 bool get isFinal;
26 26
27 /// Is this field static? 27 /// Is this field static?
28 bool get isStatic; 28 bool get isStatic;
29 } 29 }
30
31 enum GuardClassKind {
32 unknown,
33 single,
34 dynamic
35 }
36
37 abstract class Field extends Object implements FieldRef {
38 /// [optional] The value of this field, if the field is static.
39 InstanceRef get staticValue;
40
41 /// [optional] The location of this field in the source code.
42 SourceLocation get location;
43
44 GuardClassKind get guardClassKind;
45 ClassRef get guardClass;
46 bool get guardNullable;
47 }
OLDNEW
« 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