| 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.send_structure; | 5 library dart2js.send_structure; |
| 6 | 6 |
| 7 import 'access_semantics.dart'; | 7 import 'access_semantics.dart'; |
| 8 import 'operators.dart'; | 8 import 'operators.dart'; |
| 9 import 'semantic_visitor.dart'; | 9 import 'semantic_visitor.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 // TODO(johnniwinther): Should this be a valid case? | 704 // TODO(johnniwinther): Should this be a valid case? |
| 705 break; | 705 break; |
| 706 case AccessKind.UNRESOLVED_SUPER: | 706 case AccessKind.UNRESOLVED_SUPER: |
| 707 // TODO(johnniwinther): Handle this separately. | 707 // TODO(johnniwinther): Handle this separately. |
| 708 case AccessKind.UNRESOLVED: | 708 case AccessKind.UNRESOLVED: |
| 709 return visitor.errorUnresolvedSet( | 709 return visitor.errorUnresolvedSet( |
| 710 node, | 710 node, |
| 711 semantics.element, | 711 semantics.element, |
| 712 node.arguments.single, | 712 node.arguments.single, |
| 713 arg); | 713 arg); |
| 714 break; | |
| 715 case AccessKind.COMPOUND: | 714 case AccessKind.COMPOUND: |
| 716 // This is not a valid case. | 715 // This is not a valid case. |
| 717 break; | 716 break; |
| 718 } | 717 } |
| 719 throw new SpannableAssertionFailure(node, "Invalid setter: ${semantics}"); | 718 throw new SpannableAssertionFailure(node, "Invalid setter: ${semantics}"); |
| 720 } | 719 } |
| 721 | 720 |
| 722 String toString() => 'set($selector,$semantics)'; | 721 String toString() => 'set($selector,$semantics)'; |
| 723 } | 722 } |
| 724 | 723 |
| (...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2163 final ConstructorElement constructor; | 2162 final ConstructorElement constructor; |
| 2164 final Selector selector; | 2163 final Selector selector; |
| 2165 | 2164 |
| 2166 ThisConstructorInvokeStructure(this.constructor, this.selector); | 2165 ThisConstructorInvokeStructure(this.constructor, this.selector); |
| 2167 | 2166 |
| 2168 R dispatch(SemanticDeclarationVisitor<R, A> visitor, Send node, A arg) { | 2167 R dispatch(SemanticDeclarationVisitor<R, A> visitor, Send node, A arg) { |
| 2169 return visitor.visitThisConstructorInvoke( | 2168 return visitor.visitThisConstructorInvoke( |
| 2170 node, constructor, node.argumentsNode, selector, arg); | 2169 node, constructor, node.argumentsNode, selector, arg); |
| 2171 } | 2170 } |
| 2172 } | 2171 } |
| OLD | NEW |