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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 /// Similar to [forEachInstanceField] but visits static fields. | 924 /// Similar to [forEachInstanceField] but visits static fields. |
925 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); | 925 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); |
926 | 926 |
927 void forEachBackendMember(void f(Element member)); | 927 void forEachBackendMember(void f(Element member)); |
928 | 928 |
929 Link<DartType> computeTypeParameters(Compiler compiler); | 929 Link<DartType> computeTypeParameters(Compiler compiler); |
930 } | 930 } |
931 | 931 |
932 abstract class MixinApplicationElement extends ClassElement { | 932 abstract class MixinApplicationElement extends ClassElement { |
933 ClassElement get mixin; | 933 ClassElement get mixin; |
934 void set mixin(ClassElement value); | 934 InterfaceType get mixinType; |
| 935 void set mixinType(InterfaceType value); |
935 void addConstructor(FunctionElement constructor); | 936 void addConstructor(FunctionElement constructor); |
936 } | 937 } |
937 | 938 |
938 abstract class LabelElement extends Element { | 939 abstract class LabelElement extends Element { |
939 Label get label; | 940 Label get label; |
940 String get labelName; | 941 String get labelName; |
941 TargetElement get target; | 942 TargetElement get target; |
942 | 943 |
943 bool get isTarget; | 944 bool get isTarget; |
944 bool get isBreakTarget; | 945 bool get isBreakTarget; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 int get resolutionState; | 981 int get resolutionState; |
981 Token get beginToken; | 982 Token get beginToken; |
982 Token get endToken; | 983 Token get endToken; |
983 | 984 |
984 // TODO(kasperl): Try to get rid of these. | 985 // TODO(kasperl): Try to get rid of these. |
985 void set annotatedElement(Element value); | 986 void set annotatedElement(Element value); |
986 void set resolutionState(int value); | 987 void set resolutionState(int value); |
987 | 988 |
988 MetadataAnnotation ensureResolved(Compiler compiler); | 989 MetadataAnnotation ensureResolved(Compiler compiler); |
989 } | 990 } |
OLD | NEW |