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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 {includeBackendMembers: false, | 875 {includeBackendMembers: false, |
876 includeSuperAndInjectedMembers: false}); | 876 includeSuperAndInjectedMembers: false}); |
877 | 877 |
878 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), | 878 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), |
879 {includeSuperAndInjectedMembers: false}); | 879 {includeSuperAndInjectedMembers: false}); |
880 | 880 |
881 /// Similar to [forEachInstanceField] but visits static fields. | 881 /// Similar to [forEachInstanceField] but visits static fields. |
882 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); | 882 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); |
883 | 883 |
884 void forEachBackendMember(void f(Element member)); | 884 void forEachBackendMember(void f(Element member)); |
| 885 |
| 886 Link<DartType> computeTypeParameters(Compiler compiler); |
885 } | 887 } |
886 | 888 |
887 abstract class MixinApplicationElement extends ClassElement { | 889 abstract class MixinApplicationElement extends ClassElement { |
888 ClassElement get mixin; | 890 ClassElement get mixin; |
889 void set mixin(ClassElement value); | 891 void set mixin(ClassElement value); |
890 void addConstructor(FunctionElement constructor); | 892 void addConstructor(FunctionElement constructor); |
891 } | 893 } |
892 | 894 |
893 abstract class LabelElement extends Element { | 895 abstract class LabelElement extends Element { |
894 Label get label; | 896 Label get label; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 int get resolutionState; | 937 int get resolutionState; |
936 Token get beginToken; | 938 Token get beginToken; |
937 Token get endToken; | 939 Token get endToken; |
938 | 940 |
939 // TODO(kasperl): Try to get rid of these. | 941 // TODO(kasperl): Try to get rid of these. |
940 void set annotatedElement(Element value); | 942 void set annotatedElement(Element value); |
941 void set resolutionState(int value); | 943 void set resolutionState(int value); |
942 | 944 |
943 MetadataAnnotation ensureResolved(Compiler compiler); | 945 MetadataAnnotation ensureResolved(Compiler compiler); |
944 } | 946 } |
OLD | NEW |