OLD | NEW |
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 |
(...skipping 10 matching lines...) Expand all Loading... |
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 | 30 |
31 enum GuardClassKind { | 31 enum GuardClassKind { unknown, single, dynamic } |
32 unknown, | |
33 single, | |
34 dynamic | |
35 } | |
36 | 32 |
37 abstract class Field extends Object implements FieldRef { | 33 abstract class Field extends Object implements FieldRef { |
38 /// [optional] The value of this field, if the field is static. | 34 /// [optional] The value of this field, if the field is static. |
39 InstanceRef get staticValue; | 35 InstanceRef get staticValue; |
40 | 36 |
41 /// [optional] The location of this field in the source code. | 37 /// [optional] The location of this field in the source code. |
42 SourceLocation get location; | 38 SourceLocation get location; |
43 | 39 |
44 GuardClassKind get guardClassKind; | 40 GuardClassKind get guardClassKind; |
45 ClassRef get guardClass; | 41 ClassRef get guardClass; |
46 bool get guardNullable; | 42 bool get guardNullable; |
47 } | 43 } |
OLD | NEW |