| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 elements; | 5 library elements; |
| 6 | 6 |
| 7 | 7 |
| 8 import '../tree/tree.dart'; | 8 import '../tree/tree.dart'; |
| 9 import '../util/util.dart'; | 9 import '../util/util.dart'; |
| 10 import '../resolution/resolution.dart'; | 10 import '../resolution/resolution.dart'; |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 * this distinction, we can print the raw type with type arguments only when | 1049 * this distinction, we can print the raw type with type arguments only when |
| 1050 * the input source has used explicit type arguments. | 1050 * the input source has used explicit type arguments. |
| 1051 */ | 1051 */ |
| 1052 GenericType get rawType; | 1052 GenericType get rawType; |
| 1053 | 1053 |
| 1054 /** | 1054 /** |
| 1055 * The type variables declared on this declaration. The type variables are not | 1055 * The type variables declared on this declaration. The type variables are not |
| 1056 * available until the type of the element has been computed through | 1056 * available until the type of the element has been computed through |
| 1057 * [computeType]. | 1057 * [computeType]. |
| 1058 */ | 1058 */ |
| 1059 Link<DartType> get typeVariables; | 1059 List<DartType> get typeVariables; |
| 1060 | 1060 |
| 1061 bool get isResolved; | 1061 bool get isResolved; |
| 1062 | 1062 |
| 1063 int get resolutionState; | 1063 int get resolutionState; |
| 1064 | 1064 |
| 1065 void ensureResolved(Compiler compiler); | 1065 void ensureResolved(Compiler compiler); |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 abstract class ClassElement extends TypeDeclarationElement | 1068 abstract class ClassElement extends TypeDeclarationElement |
| 1069 implements ScopeContainerElement { | 1069 implements ScopeContainerElement { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 | 1154 |
| 1155 void forEachInstanceField(void f(ClassElement enclosingClass, | 1155 void forEachInstanceField(void f(ClassElement enclosingClass, |
| 1156 FieldElement field), | 1156 FieldElement field), |
| 1157 {bool includeSuperAndInjectedMembers: false}); | 1157 {bool includeSuperAndInjectedMembers: false}); |
| 1158 | 1158 |
| 1159 /// Similar to [forEachInstanceField] but visits static fields. | 1159 /// Similar to [forEachInstanceField] but visits static fields. |
| 1160 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); | 1160 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); |
| 1161 | 1161 |
| 1162 void forEachBackendMember(void f(Element member)); | 1162 void forEachBackendMember(void f(Element member)); |
| 1163 | 1163 |
| 1164 Link<DartType> computeTypeParameters(Compiler compiler); | 1164 List<DartType> computeTypeParameters(Compiler compiler); |
| 1165 | 1165 |
| 1166 /// Looks up the member [name] in this class. | 1166 /// Looks up the member [name] in this class. |
| 1167 Member lookupClassMember(Name name); | 1167 Member lookupClassMember(Name name); |
| 1168 | 1168 |
| 1169 /// Calls [f] with each member of this class. | 1169 /// Calls [f] with each member of this class. |
| 1170 void forEachClassMember(f(Member member)); | 1170 void forEachClassMember(f(Member member)); |
| 1171 | 1171 |
| 1172 /// Looks up the member [name] in the interface of this class. | 1172 /// Looks up the member [name] in the interface of this class. |
| 1173 MemberSignature lookupInterfaceMember(Name name); | 1173 MemberSignature lookupInterfaceMember(Name name); |
| 1174 | 1174 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 bool get isDeclaredByField; | 1361 bool get isDeclaredByField; |
| 1362 | 1362 |
| 1363 /// Returns `true` if this member is abstract. | 1363 /// Returns `true` if this member is abstract. |
| 1364 bool get isAbstract; | 1364 bool get isAbstract; |
| 1365 | 1365 |
| 1366 /// If abstract, [implementation] points to the overridden concrete member, | 1366 /// If abstract, [implementation] points to the overridden concrete member, |
| 1367 /// if any. Otherwise [implementation] points to the member itself. | 1367 /// if any. Otherwise [implementation] points to the member itself. |
| 1368 Member get implementation; | 1368 Member get implementation; |
| 1369 } | 1369 } |
| 1370 | 1370 |
| OLD | NEW |