Chromium Code Reviews| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 824 DartType get type; | 824 DartType get type; |
| 825 FunctionSignature get functionSignature; | 825 FunctionSignature get functionSignature; |
| 826 FunctionElement get redirectionTarget; | 826 FunctionElement get redirectionTarget; |
| 827 FunctionElement get defaultImplementation; | 827 FunctionElement get defaultImplementation; |
| 828 | 828 |
| 829 FunctionElement get patch; | 829 FunctionElement get patch; |
| 830 FunctionElement get origin; | 830 FunctionElement get origin; |
| 831 | 831 |
| 832 bool get isRedirectingFactory; | 832 bool get isRedirectingFactory; |
| 833 | 833 |
| 834 /// Used to store a link to the abstract field element representing this | |
| 835 /// element. | |
| 836 AbstractFieldElement abstractField; | |
|
Johnni Winther
2014/04/11 07:34:54
This should be a getter.
sigurdm
2014/04/11 09:11:38
Done.
| |
| 837 | |
| 834 /** | 838 /** |
| 835 * Compute the type of the target of a constructor for an instantiation site | 839 * Compute the type of the target of a constructor for an instantiation site |
| 836 * with type [:newType:]. | 840 * with type [:newType:]. |
| 837 */ | 841 */ |
| 838 InterfaceType computeTargetType(InterfaceType newType); | 842 InterfaceType computeTargetType(InterfaceType newType); |
| 839 | 843 |
| 840 // TODO(kasperl): These are bit fishy. Do we really need them? | 844 // TODO(kasperl): These are bit fishy. Do we really need them? |
| 841 void set patch(FunctionElement value); | 845 void set patch(FunctionElement value); |
| 842 void set origin(FunctionElement value); | 846 void set origin(FunctionElement value); |
| 843 void set defaultImplementation(FunctionElement value); | 847 void set defaultImplementation(FunctionElement value); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1046 int get resolutionState; | 1050 int get resolutionState; |
| 1047 Token get beginToken; | 1051 Token get beginToken; |
| 1048 Token get endToken; | 1052 Token get endToken; |
| 1049 | 1053 |
| 1050 // TODO(kasperl): Try to get rid of these. | 1054 // TODO(kasperl): Try to get rid of these. |
| 1051 void set annotatedElement(Element value); | 1055 void set annotatedElement(Element value); |
| 1052 | 1056 |
| 1053 MetadataAnnotation ensureResolved(Compiler compiler); | 1057 MetadataAnnotation ensureResolved(Compiler compiler); |
| 1054 } | 1058 } |
| 1055 | 1059 |
| 1060 // TODO(johnniwinther): Remove this element. | |
| 1056 abstract class VoidElement extends Element {} | 1061 abstract class VoidElement extends Element {} |
| 1057 | 1062 |
| 1058 /// An [Element] that has a type. | 1063 /// An [Element] that has a type. |
| 1059 abstract class TypedElement extends Element { | 1064 abstract class TypedElement extends Element { |
| 1060 DartType get type; | 1065 DartType get type; |
| 1061 } | 1066 } |
| 1062 | 1067 |
| 1063 /// A [MemberSignature] is a member of an interface. | 1068 /// A [MemberSignature] is a member of an interface. |
| 1064 /// | 1069 /// |
| 1065 /// A signature is either a method or a getter or setter, possibly implicitly | 1070 /// A signature is either a method or a getter or setter, possibly implicitly |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1126 InterfaceType get declarer; | 1131 InterfaceType get declarer; |
| 1127 | 1132 |
| 1128 /// Returns `true` if this member is static. | 1133 /// Returns `true` if this member is static. |
| 1129 bool get isStatic; | 1134 bool get isStatic; |
| 1130 | 1135 |
| 1131 /// Returns `true` if this member is a getter or setter implicitly declared | 1136 /// Returns `true` if this member is a getter or setter implicitly declared |
| 1132 /// by a field. | 1137 /// by a field. |
| 1133 bool get isDeclaredByField; | 1138 bool get isDeclaredByField; |
| 1134 } | 1139 } |
| 1135 | 1140 |
| OLD | NEW |