| 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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 void addImport(Element element, Import import, DiagnosticListener listener); | 734 void addImport(Element element, Import import, DiagnosticListener listener); |
| 735 Element lookupLocalMember(String memberName); | 735 Element lookupLocalMember(String memberName); |
| 736 } | 736 } |
| 737 | 737 |
| 738 abstract class TypedefElement extends Element | 738 abstract class TypedefElement extends Element |
| 739 implements TypeDeclarationElement { | 739 implements TypeDeclarationElement { |
| 740 TypedefType get thisType; | 740 TypedefType get thisType; |
| 741 TypedefType get rawType; | 741 TypedefType get rawType; |
| 742 DartType get alias; | 742 DartType get alias; |
| 743 FunctionSignature get functionSignature; | 743 FunctionSignature get functionSignature; |
| 744 Link<DartType> get typeVariables; | 744 List<DartType> get typeVariables; |
| 745 | 745 |
| 746 bool get isResolved; | 746 bool get isResolved; |
| 747 | 747 |
| 748 // TODO(kasperl): Try to get rid of these setters. | 748 // TODO(kasperl): Try to get rid of these setters. |
| 749 void set alias(DartType value); | 749 void set alias(DartType value); |
| 750 void set functionSignature(FunctionSignature value); | 750 void set functionSignature(FunctionSignature value); |
| 751 | 751 |
| 752 void checkCyclicReference(Compiler compiler); | 752 void checkCyclicReference(Compiler compiler); |
| 753 } | 753 } |
| 754 | 754 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 */ | 851 */ |
| 852 abstract class TypeDeclarationElement extends Element { | 852 abstract class TypeDeclarationElement extends Element { |
| 853 GenericType get thisType; | 853 GenericType get thisType; |
| 854 GenericType get rawType; | 854 GenericType get rawType; |
| 855 | 855 |
| 856 /** | 856 /** |
| 857 * The type variables declared on this declaration. The type variables are not | 857 * The type variables declared on this declaration. The type variables are not |
| 858 * available until the type of the element has been computed through | 858 * available until the type of the element has been computed through |
| 859 * [computeType]. | 859 * [computeType]. |
| 860 */ | 860 */ |
| 861 Link<DartType> get typeVariables; | 861 List<DartType> get typeVariables; |
| 862 } | 862 } |
| 863 | 863 |
| 864 abstract class ClassElement extends TypeDeclarationElement | 864 abstract class ClassElement extends TypeDeclarationElement |
| 865 implements ScopeContainerElement { | 865 implements ScopeContainerElement { |
| 866 int get id; | 866 int get id; |
| 867 | 867 |
| 868 /// The length of the longest inheritance path from [:Object:]. | 868 /// The length of the longest inheritance path from [:Object:]. |
| 869 int get hierarchyDepth; | 869 int get hierarchyDepth; |
| 870 | 870 |
| 871 InterfaceType get rawType; | 871 InterfaceType get rawType; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 | 955 |
| 956 void forEachInstanceField(void f(ClassElement enclosingClass, | 956 void forEachInstanceField(void f(ClassElement enclosingClass, |
| 957 FieldElement field), | 957 FieldElement field), |
| 958 {bool includeSuperAndInjectedMembers: false}); | 958 {bool includeSuperAndInjectedMembers: false}); |
| 959 | 959 |
| 960 /// Similar to [forEachInstanceField] but visits static fields. | 960 /// Similar to [forEachInstanceField] but visits static fields. |
| 961 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); | 961 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); |
| 962 | 962 |
| 963 void forEachBackendMember(void f(Element member)); | 963 void forEachBackendMember(void f(Element member)); |
| 964 | 964 |
| 965 Link<DartType> computeTypeParameters(Compiler compiler); | 965 List<DartType> computeTypeParameters(Compiler compiler); |
| 966 | 966 |
| 967 /// Looks up the member [name] in this class. | 967 /// Looks up the member [name] in this class. |
| 968 Member lookupClassMember(Name name); | 968 Member lookupClassMember(Name name); |
| 969 | 969 |
| 970 /// Calls [f] with each member of this class. | 970 /// Calls [f] with each member of this class. |
| 971 void forEachClassMember(f(Member member)); | 971 void forEachClassMember(f(Member member)); |
| 972 | 972 |
| 973 /// Looks up the member [name] in the interface of this class. | 973 /// Looks up the member [name] in the interface of this class. |
| 974 MemberSignature lookupInterfaceMember(Name name); | 974 MemberSignature lookupInterfaceMember(Name name); |
| 975 | 975 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 InterfaceType get declarer; | 1109 InterfaceType get declarer; |
| 1110 | 1110 |
| 1111 /// Returns `true` if this member is static. | 1111 /// Returns `true` if this member is static. |
| 1112 bool get isStatic; | 1112 bool get isStatic; |
| 1113 | 1113 |
| 1114 /// Returns `true` if this member is a getter or setter implicitly declared | 1114 /// Returns `true` if this member is a getter or setter implicitly declared |
| 1115 /// by a field. | 1115 /// by a field. |
| 1116 bool get isDeclaredByField; | 1116 bool get isDeclaredByField; |
| 1117 } | 1117 } |
| 1118 | 1118 |
| OLD | NEW |