| 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 abstract class TypeVariableElement extends Element implements TypedElement { | 1033 abstract class TypeVariableElement extends Element implements TypedElement { |
| 1034 /// The [type] defined by the type variable. | 1034 /// The [type] defined by the type variable. |
| 1035 TypeVariableType get type; | 1035 TypeVariableType get type; |
| 1036 | 1036 |
| 1037 /// The upper bound on the type variable. If not explicitly declared, this is | 1037 /// The upper bound on the type variable. If not explicitly declared, this is |
| 1038 /// `Object`. | 1038 /// `Object`. |
| 1039 DartType get bound; | 1039 DartType get bound; |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 abstract class MetadataAnnotation implements Spannable { | 1042 abstract class MetadataAnnotation implements Spannable { |
| 1043 /// The front-end constant of this metadata annotation. |
| 1043 Constant get value; | 1044 Constant get value; |
| 1044 Element get annotatedElement; | 1045 Element get annotatedElement; |
| 1045 int get resolutionState; | 1046 int get resolutionState; |
| 1046 Token get beginToken; | 1047 Token get beginToken; |
| 1047 Token get endToken; | 1048 Token get endToken; |
| 1048 | 1049 |
| 1049 // TODO(kasperl): Try to get rid of these. | 1050 // TODO(kasperl): Try to get rid of these. |
| 1050 void set annotatedElement(Element value); | 1051 void set annotatedElement(Element value); |
| 1051 void set resolutionState(int value); | |
| 1052 | 1052 |
| 1053 MetadataAnnotation ensureResolved(Compiler compiler); | 1053 MetadataAnnotation ensureResolved(Compiler compiler); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 abstract class VoidElement extends Element {} | 1056 abstract class VoidElement extends Element {} |
| 1057 | 1057 |
| 1058 /// An [Element] that has a type. | 1058 /// An [Element] that has a type. |
| 1059 abstract class TypedElement extends Element { | 1059 abstract class TypedElement extends Element { |
| 1060 DartType get type; | 1060 DartType get type; |
| 1061 } | 1061 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 InterfaceType get declarer; | 1126 InterfaceType get declarer; |
| 1127 | 1127 |
| 1128 /// Returns `true` if this member is static. | 1128 /// Returns `true` if this member is static. |
| 1129 bool get isStatic; | 1129 bool get isStatic; |
| 1130 | 1130 |
| 1131 /// 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 |
| 1132 /// by a field. | 1132 /// by a field. |
| 1133 bool get isDeclaredByField; | 1133 bool get isDeclaredByField; |
| 1134 } | 1134 } |
| 1135 | 1135 |
| OLD | NEW |