OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.resolution.send_structure; | 5 library dart2js.resolution.send_structure; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
9 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 case AccessKind.SUPER_SETTER: | 762 case AccessKind.SUPER_SETTER: |
763 return visitor.visitSuperSetterSet( | 763 return visitor.visitSuperSetterSet( |
764 node, | 764 node, |
765 semantics.element, | 765 semantics.element, |
766 node.arguments.single, | 766 node.arguments.single, |
767 arg); | 767 arg); |
768 case AccessKind.CONSTANT: | 768 case AccessKind.CONSTANT: |
769 // TODO(johnniwinther): Should this be a valid case? | 769 // TODO(johnniwinther): Should this be a valid case? |
770 break; | 770 break; |
771 case AccessKind.UNRESOLVED_SUPER: | 771 case AccessKind.UNRESOLVED_SUPER: |
772 // TODO(johnniwinther): Handle this separately. | 772 return visitor.visitUnresolvedSuperSet( |
| 773 node, |
| 774 semantics.element, |
| 775 node.arguments.single, |
| 776 arg); |
773 case AccessKind.UNRESOLVED: | 777 case AccessKind.UNRESOLVED: |
774 return visitor.visitUnresolvedSet( | 778 return visitor.visitUnresolvedSet( |
775 node, | 779 node, |
776 semantics.element, | 780 semantics.element, |
777 node.arguments.single, | 781 node.arguments.single, |
778 arg); | 782 arg); |
779 case AccessKind.INVALID: | 783 case AccessKind.INVALID: |
780 return visitor.errorInvalidSet( | 784 return visitor.errorInvalidSet( |
781 node, | 785 node, |
782 semantics.element, | 786 semantics.element, |
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3014 ThisConstructorInvokeStructure( | 3018 ThisConstructorInvokeStructure( |
3015 this.node, this.constructor, this.callStructure); | 3019 this.node, this.constructor, this.callStructure); |
3016 | 3020 |
3017 R dispatch(SemanticDeclarationVisitor<R, A> visitor, A arg) { | 3021 R dispatch(SemanticDeclarationVisitor<R, A> visitor, A arg) { |
3018 return visitor.visitThisConstructorInvoke( | 3022 return visitor.visitThisConstructorInvoke( |
3019 node, constructor, node.argumentsNode, callStructure, arg); | 3023 node, constructor, node.argumentsNode, callStructure, arg); |
3020 } | 3024 } |
3021 | 3025 |
3022 bool get isConstructorInvoke => true; | 3026 bool get isConstructorInvoke => true; |
3023 } | 3027 } |
OLD | NEW |