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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 DartType get type; | 783 DartType get type; |
784 FunctionSignature get functionSignature; | 784 FunctionSignature get functionSignature; |
785 FunctionElement get redirectionTarget; | 785 FunctionElement get redirectionTarget; |
786 FunctionElement get defaultImplementation; | 786 FunctionElement get defaultImplementation; |
787 | 787 |
788 FunctionElement get patch; | 788 FunctionElement get patch; |
789 FunctionElement get origin; | 789 FunctionElement get origin; |
790 | 790 |
791 bool get isRedirectingFactory; | 791 bool get isRedirectingFactory; |
792 | 792 |
| 793 void setAbstract(); |
| 794 |
793 /** | 795 /** |
794 * Compute the type of the target of a redirecting constructor or factory | 796 * Compute the type of the target of a redirecting constructor or factory |
795 * for an instantiation site with type [:newType:]. | 797 * for an instantiation site with type [:newType:]. |
796 * | 798 * |
797 * TODO(karlklose): get rid of this method and resolve the target type | 799 * TODO(karlklose): get rid of this method and resolve the target type |
798 * during resolution when we correctly resolve chains of redirections. | 800 * during resolution when we correctly resolve chains of redirections. |
799 */ | 801 */ |
800 InterfaceType computeTargetType(Compiler compiler, | 802 InterfaceType computeTargetType(Compiler compiler, |
801 InterfaceType newType); | 803 InterfaceType newType); |
802 | 804 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 int get resolutionState; | 981 int get resolutionState; |
980 Token get beginToken; | 982 Token get beginToken; |
981 Token get endToken; | 983 Token get endToken; |
982 | 984 |
983 // TODO(kasperl): Try to get rid of these. | 985 // TODO(kasperl): Try to get rid of these. |
984 void set annotatedElement(Element value); | 986 void set annotatedElement(Element value); |
985 void set resolutionState(int value); | 987 void set resolutionState(int value); |
986 | 988 |
987 MetadataAnnotation ensureResolved(Compiler compiler); | 989 MetadataAnnotation ensureResolved(Compiler compiler); |
988 } | 990 } |
OLD | NEW |