| 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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 } | 754 } |
| 755 | 755 |
| 756 abstract class TypedefElement extends Element | 756 abstract class TypedefElement extends Element |
| 757 implements TypeDeclarationElement { | 757 implements TypeDeclarationElement { |
| 758 TypedefType get thisType; | 758 TypedefType get thisType; |
| 759 TypedefType get rawType; | 759 TypedefType get rawType; |
| 760 DartType get alias; | 760 DartType get alias; |
| 761 FunctionSignature get functionSignature; | 761 FunctionSignature get functionSignature; |
| 762 Link<DartType> get typeVariables; | 762 Link<DartType> get typeVariables; |
| 763 | 763 |
| 764 bool get isResolved; | |
| 765 | |
| 766 // TODO(kasperl): Try to get rid of these setters. | 764 // TODO(kasperl): Try to get rid of these setters. |
| 767 void set alias(DartType value); | 765 void set alias(DartType value); |
| 768 void set functionSignature(FunctionSignature value); | 766 void set functionSignature(FunctionSignature value); |
| 769 | 767 |
| 770 void checkCyclicReference(Compiler compiler); | 768 void checkCyclicReference(Compiler compiler); |
| 771 } | 769 } |
| 772 | 770 |
| 773 abstract class VariableElement extends Element implements TypedElement { | 771 abstract class VariableElement extends Element implements TypedElement { |
| 774 Expression get initializer; | 772 Expression get initializer; |
| 775 } | 773 } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 abstract class TypeDeclarationElement extends Element { | 863 abstract class TypeDeclarationElement extends Element { |
| 866 GenericType get thisType; | 864 GenericType get thisType; |
| 867 GenericType get rawType; | 865 GenericType get rawType; |
| 868 | 866 |
| 869 /** | 867 /** |
| 870 * The type variables declared on this declaration. The type variables are not | 868 * The type variables declared on this declaration. The type variables are not |
| 871 * available until the type of the element has been computed through | 869 * available until the type of the element has been computed through |
| 872 * [computeType]. | 870 * [computeType]. |
| 873 */ | 871 */ |
| 874 Link<DartType> get typeVariables; | 872 Link<DartType> get typeVariables; |
| 873 |
| 874 bool get isResolved; |
| 875 } | 875 } |
| 876 | 876 |
| 877 abstract class ClassElement extends TypeDeclarationElement | 877 abstract class ClassElement extends TypeDeclarationElement |
| 878 implements ScopeContainerElement { | 878 implements ScopeContainerElement { |
| 879 int get id; | 879 int get id; |
| 880 | 880 |
| 881 /// The length of the longest inheritance path from [:Object:]. | 881 /// The length of the longest inheritance path from [:Object:]. |
| 882 int get hierarchyDepth; | 882 int get hierarchyDepth; |
| 883 | 883 |
| 884 InterfaceType get rawType; | 884 InterfaceType get rawType; |
| 885 InterfaceType get thisType; | 885 InterfaceType get thisType; |
| 886 | 886 |
| 887 ClassElement get superclass; | 887 ClassElement get superclass; |
| 888 | 888 |
| 889 DartType get supertype; | 889 DartType get supertype; |
| 890 OrderedTypeSet get allSupertypesAndSelf; | 890 OrderedTypeSet get allSupertypesAndSelf; |
| 891 Link<DartType> get allSupertypes; | 891 Link<DartType> get allSupertypes; |
| 892 Link<DartType> get interfaces; | 892 Link<DartType> get interfaces; |
| 893 | 893 |
| 894 bool get hasConstructor; | 894 bool get hasConstructor; |
| 895 Link<Element> get constructors; | 895 Link<Element> get constructors; |
| 896 | 896 |
| 897 ClassElement get patch; | 897 ClassElement get patch; |
| 898 ClassElement get origin; | 898 ClassElement get origin; |
| 899 ClassElement get declaration; | 899 ClassElement get declaration; |
| 900 ClassElement get implementation; | 900 ClassElement get implementation; |
| 901 | 901 |
| 902 int get supertypeLoadState; | 902 int get supertypeLoadState; |
| 903 int get resolutionState; | 903 int get resolutionState; |
| 904 bool get isResolved; | |
| 905 String get nativeTagInfo; | 904 String get nativeTagInfo; |
| 906 | 905 |
| 907 bool get isMixinApplication; | 906 bool get isMixinApplication; |
| 908 bool get isUnnamedMixinApplication; | 907 bool get isUnnamedMixinApplication; |
| 909 bool get hasBackendMembers; | 908 bool get hasBackendMembers; |
| 910 bool get hasLocalScopeMembers; | 909 bool get hasLocalScopeMembers; |
| 911 | 910 |
| 912 // TODO(kasperl): These are bit fishy. Do we really need them? | 911 // TODO(kasperl): These are bit fishy. Do we really need them? |
| 913 void set supertype(DartType value); | 912 void set supertype(DartType value); |
| 914 void set interfaces(Link<DartType> value); | 913 void set interfaces(Link<DartType> value); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 InterfaceType get declarer; | 1126 InterfaceType get declarer; |
| 1128 | 1127 |
| 1129 /// Returns `true` if this member is static. | 1128 /// Returns `true` if this member is static. |
| 1130 bool get isStatic; | 1129 bool get isStatic; |
| 1131 | 1130 |
| 1132 /// Returns `true` if this member is a getter or setter implicitly declared | 1131 /// Returns `true` if this member is a getter or setter implicitly declared |
| 1133 /// by a field. | 1132 /// by a field. |
| 1134 bool get isDeclaredByField; | 1133 bool get isDeclaredByField; |
| 1135 } | 1134 } |
| 1136 | 1135 |
| OLD | NEW |