| 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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 DartType get type; | 732 DartType get type; |
| 733 FunctionSignature get functionSignature; | 733 FunctionSignature get functionSignature; |
| 734 FunctionElement get redirectionTarget; | 734 FunctionElement get redirectionTarget; |
| 735 FunctionElement get defaultImplementation; | 735 FunctionElement get defaultImplementation; |
| 736 | 736 |
| 737 FunctionElement get patch; | 737 FunctionElement get patch; |
| 738 FunctionElement get origin; | 738 FunctionElement get origin; |
| 739 | 739 |
| 740 bool get isRedirectingFactory; | 740 bool get isRedirectingFactory; |
| 741 | 741 |
| 742 /** |
| 743 * Compute the type of the target of a redirecting constructor or factory |
| 744 * for an instantiation site with type [:newType:]. |
| 745 * |
| 746 * TODO(karlklose): get rid of this method and resolve the target type |
| 747 * during resolution when we correctly resolve chains of redirections. |
| 748 */ |
| 749 InterfaceType computeTargetType(Compiler compiler, |
| 750 InterfaceType newType); |
| 751 |
| 742 // TODO(kasperl): These are bit fishy. Do we really need them? | 752 // TODO(kasperl): These are bit fishy. Do we really need them? |
| 743 void set patch(FunctionElement value); | 753 void set patch(FunctionElement value); |
| 744 void set origin(FunctionElement value); | 754 void set origin(FunctionElement value); |
| 745 void set defaultImplementation(FunctionElement value); | 755 void set defaultImplementation(FunctionElement value); |
| 746 | 756 |
| 747 void setPatch(FunctionElement patchElement); | 757 void setPatch(FunctionElement patchElement); |
| 748 FunctionSignature computeSignature(Compiler compiler); | 758 FunctionSignature computeSignature(Compiler compiler); |
| 749 int requiredParameterCount(Compiler compiler); | 759 int requiredParameterCount(Compiler compiler); |
| 750 int optionalParameterCount(Compiler compiler); | 760 int optionalParameterCount(Compiler compiler); |
| 751 int parameterCount(Compiler compiler); | 761 int parameterCount(Compiler compiler); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 int get resolutionState; | 924 int get resolutionState; |
| 915 Token get beginToken; | 925 Token get beginToken; |
| 916 Token get endToken; | 926 Token get endToken; |
| 917 | 927 |
| 918 // TODO(kasperl): Try to get rid of these. | 928 // TODO(kasperl): Try to get rid of these. |
| 919 void set annotatedElement(Element value); | 929 void set annotatedElement(Element value); |
| 920 void set resolutionState(int value); | 930 void set resolutionState(int value); |
| 921 | 931 |
| 922 MetadataAnnotation ensureResolved(Compiler compiler); | 932 MetadataAnnotation ensureResolved(Compiler compiler); |
| 923 } | 933 } |
| OLD | NEW |