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 | 875 |
876 Element validateConstructorLookupResults(Selector selector, | 876 Element validateConstructorLookupResults(Selector selector, |
877 Element result, | 877 Element result, |
878 Element noMatch(Element)); | 878 Element noMatch(Element)); |
879 | 879 |
880 Element lookupConstructor(Selector selector, [Element noMatch(Element)]); | 880 Element lookupConstructor(Selector selector, [Element noMatch(Element)]); |
881 Element lookupFactoryConstructor(Selector selector, | 881 Element lookupFactoryConstructor(Selector selector, |
882 [Element noMatch(Element)]); | 882 [Element noMatch(Element)]); |
883 | 883 |
884 void forEachMember(void f(ClassElement enclosingClass, Element member), | 884 void forEachMember(void f(ClassElement enclosingClass, Element member), |
885 {includeBackendMembers: false, | 885 {bool includeBackendMembers: false, |
886 includeSuperAndInjectedMembers: false}); | 886 bool includeSuperAndInjectedMembers: false}); |
887 | 887 |
888 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), | 888 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), |
889 {includeSuperAndInjectedMembers: false}); | 889 {bool includeSuperAndInjectedMembers: false}); |
890 | 890 |
891 /// Similar to [forEachInstanceField] but visits static fields. | 891 /// Similar to [forEachInstanceField] but visits static fields. |
892 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); | 892 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); |
893 | 893 |
894 void forEachBackendMember(void f(Element member)); | 894 void forEachBackendMember(void f(Element member)); |
895 | 895 |
896 Link<DartType> computeTypeParameters(Compiler compiler); | 896 Link<DartType> computeTypeParameters(Compiler compiler); |
897 } | 897 } |
898 | 898 |
899 abstract class MixinApplicationElement extends ClassElement { | 899 abstract class MixinApplicationElement extends ClassElement { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 int get resolutionState; | 947 int get resolutionState; |
948 Token get beginToken; | 948 Token get beginToken; |
949 Token get endToken; | 949 Token get endToken; |
950 | 950 |
951 // TODO(kasperl): Try to get rid of these. | 951 // TODO(kasperl): Try to get rid of these. |
952 void set annotatedElement(Element value); | 952 void set annotatedElement(Element value); |
953 void set resolutionState(int value); | 953 void set resolutionState(int value); |
954 | 954 |
955 MetadataAnnotation ensureResolved(Compiler compiler); | 955 MetadataAnnotation ensureResolved(Compiler compiler); |
956 } | 956 } |
OLD | NEW |