| 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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 DartType get type; | 742 DartType get type; |
| 743 FunctionSignature get functionSignature; | 743 FunctionSignature get functionSignature; |
| 744 FunctionElement get redirectionTarget; | 744 FunctionElement get redirectionTarget; |
| 745 FunctionElement get defaultImplementation; | 745 FunctionElement get defaultImplementation; |
| 746 | 746 |
| 747 FunctionElement get patch; | 747 FunctionElement get patch; |
| 748 FunctionElement get origin; | 748 FunctionElement get origin; |
| 749 | 749 |
| 750 bool get isRedirectingFactory; | 750 bool get isRedirectingFactory; |
| 751 | 751 |
| 752 /** |
| 753 * Compute the type of the target of a redirecting constructor or factory |
| 754 * for an instantiation site with type [:newType:]. |
| 755 * |
| 756 * TODO(karlklose): get rid of this method and resolve the target type |
| 757 * during resolution when we correctly resolve chains of redirections. |
| 758 */ |
| 759 InterfaceType computeTargetType(Compiler compiler, |
| 760 InterfaceType newType); |
| 761 |
| 752 // TODO(kasperl): These are bit fishy. Do we really need them? | 762 // TODO(kasperl): These are bit fishy. Do we really need them? |
| 753 void set patch(FunctionElement value); | 763 void set patch(FunctionElement value); |
| 754 void set origin(FunctionElement value); | 764 void set origin(FunctionElement value); |
| 755 void set defaultImplementation(FunctionElement value); | 765 void set defaultImplementation(FunctionElement value); |
| 756 | 766 |
| 757 void setPatch(FunctionElement patchElement); | 767 void setPatch(FunctionElement patchElement); |
| 758 FunctionSignature computeSignature(Compiler compiler); | 768 FunctionSignature computeSignature(Compiler compiler); |
| 759 int requiredParameterCount(Compiler compiler); | 769 int requiredParameterCount(Compiler compiler); |
| 760 int optionalParameterCount(Compiler compiler); | 770 int optionalParameterCount(Compiler compiler); |
| 761 int parameterCount(Compiler compiler); | 771 int parameterCount(Compiler compiler); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 int get resolutionState; | 934 int get resolutionState; |
| 925 Token get beginToken; | 935 Token get beginToken; |
| 926 Token get endToken; | 936 Token get endToken; |
| 927 | 937 |
| 928 // TODO(kasperl): Try to get rid of these. | 938 // TODO(kasperl): Try to get rid of these. |
| 929 void set annotatedElement(Element value); | 939 void set annotatedElement(Element value); |
| 930 void set resolutionState(int value); | 940 void set resolutionState(int value); |
| 931 | 941 |
| 932 MetadataAnnotation ensureResolved(Compiler compiler); | 942 MetadataAnnotation ensureResolved(Compiler compiler); |
| 933 } | 943 } |
| OLD | NEW |