| 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 'modelx.dart'; | 8 import 'modelx.dart'; |
| 9 import '../tree/tree.dart'; | 9 import '../tree/tree.dart'; |
| 10 import '../util/util.dart'; | 10 import '../util/util.dart'; |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 Element lookupFactoryConstructor(Selector selector, | 876 Element lookupFactoryConstructor(Selector selector, |
| 877 [Element noMatch(Element)]); | 877 [Element noMatch(Element)]); |
| 878 | 878 |
| 879 void forEachMember(void f(ClassElement enclosingClass, Element member), | 879 void forEachMember(void f(ClassElement enclosingClass, Element member), |
| 880 {includeBackendMembers: false, | 880 {includeBackendMembers: false, |
| 881 includeSuperAndInjectedMembers: false}); | 881 includeSuperAndInjectedMembers: false}); |
| 882 | 882 |
| 883 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), | 883 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), |
| 884 {includeSuperAndInjectedMembers: false}); | 884 {includeSuperAndInjectedMembers: false}); |
| 885 | 885 |
| 886 /// Similar to [forEachInstanceField] but visits static fields. |
| 887 void forEachStaticField(void f(ClassElement enclosingClass, Element field)); |
| 888 |
| 886 void forEachBackendMember(void f(Element member)); | 889 void forEachBackendMember(void f(Element member)); |
| 887 } | 890 } |
| 888 | 891 |
| 889 abstract class MixinApplicationElement extends ClassElement { | 892 abstract class MixinApplicationElement extends ClassElement { |
| 890 ClassElement get mixin; | 893 ClassElement get mixin; |
| 891 void set mixin(ClassElement value); | 894 void set mixin(ClassElement value); |
| 892 void addConstructor(FunctionElement constructor); | 895 void addConstructor(FunctionElement constructor); |
| 893 } | 896 } |
| 894 | 897 |
| 895 abstract class LabelElement extends Element { | 898 abstract class LabelElement extends Element { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 int get resolutionState; | 940 int get resolutionState; |
| 938 Token get beginToken; | 941 Token get beginToken; |
| 939 Token get endToken; | 942 Token get endToken; |
| 940 | 943 |
| 941 // TODO(kasperl): Try to get rid of these. | 944 // TODO(kasperl): Try to get rid of these. |
| 942 void set annotatedElement(Element value); | 945 void set annotatedElement(Element value); |
| 943 void set resolutionState(int value); | 946 void set resolutionState(int value); |
| 944 | 947 |
| 945 MetadataAnnotation ensureResolved(Compiler compiler); | 948 MetadataAnnotation ensureResolved(Compiler compiler); |
| 946 } | 949 } |
| OLD | NEW |