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 library entities; | 5 library entities; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 | 8 |
9 /// Abstract interface for entities. | 9 /// Abstract interface for entities. |
10 /// | 10 /// |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 /// Whether this is a setter. | 86 /// Whether this is a setter. |
87 bool get isSetter; | 87 bool get isSetter; |
88 | 88 |
89 /// Whether this member is assignable, i.e. a non-final field. | 89 /// Whether this member is assignable, i.e. a non-final field. |
90 bool get isAssignable; | 90 bool get isAssignable; |
91 | 91 |
92 /// Whether this member is constant, i.e. a constant field or constructor. | 92 /// Whether this member is constant, i.e. a constant field or constructor. |
93 bool get isConst; | 93 bool get isConst; |
94 | 94 |
| 95 /// Whether this member is abstract, i.e. an abstract method, getter or |
| 96 /// setter. |
| 97 bool get isAbstract; |
| 98 |
95 /// The enclosing class if this is a constructor, instance member or | 99 /// The enclosing class if this is a constructor, instance member or |
96 /// static member of a class. | 100 /// static member of a class. |
97 ClassEntity get enclosingClass; | 101 ClassEntity get enclosingClass; |
98 | 102 |
99 /// The enclosing library if this is a library member, otherwise the | 103 /// The enclosing library if this is a library member, otherwise the |
100 /// enclosing library of the [enclosingClass]. | 104 /// enclosing library of the [enclosingClass]. |
101 LibraryEntity get library; | 105 LibraryEntity get library; |
102 } | 106 } |
103 | 107 |
104 /// Stripped down super interface for field like entities. | 108 /// Stripped down super interface for field like entities. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 Entity get executableContext; | 151 Entity get executableContext; |
148 | 152 |
149 /// The outermost member that contains this element. | 153 /// The outermost member that contains this element. |
150 /// | 154 /// |
151 /// For top level, static or instance members, the member context is the | 155 /// For top level, static or instance members, the member context is the |
152 /// element itself. For parameters, local variables and nested closures, the | 156 /// element itself. For parameters, local variables and nested closures, the |
153 /// member context is the top level, static or instance member in which it is | 157 /// member context is the top level, static or instance member in which it is |
154 /// defined. | 158 /// defined. |
155 MemberEntity get memberContext; | 159 MemberEntity get memberContext; |
156 } | 160 } |
OLD | NEW |