| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /// Enum for the visit methods added in [ResolvedVisitor]. | 7 /// Enum for the visit methods added in [ResolvedVisitor]. |
| 8 // TODO(johnniwinther): Remove this. | 8 // TODO(johnniwinther): Remove this. |
| 9 enum ResolvedKind { | 9 enum ResolvedKind { |
| 10 ASSERT, | 10 ASSERT, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 internalError(Spannable node, String reason); | 117 internalError(Spannable node, String reason); |
| 118 | 118 |
| 119 R visitNode(Node node) { | 119 R visitNode(Node node) { |
| 120 internalError(node, "Unhandled node"); | 120 internalError(node, "Unhandled node"); |
| 121 return null; | 121 return null; |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 | 124 |
| 125 // TODO(johnniwinther): Remove this. Currently need by the old dart2dart | |
| 126 // backend. | |
| 127 abstract class OldResolvedVisitor<R> extends BaseResolvedVisitor<R> { | |
| 128 OldResolvedVisitor(TreeElements elements) : super(elements); | |
| 129 | |
| 130 R visitSend(Send node) { | |
| 131 return _oldDispatch(node, this); | |
| 132 } | |
| 133 } | |
| 134 | |
| 135 abstract class NewResolvedVisitor<R> extends BaseResolvedVisitor<R> | 125 abstract class NewResolvedVisitor<R> extends BaseResolvedVisitor<R> |
| 136 with SendResolverMixin, | 126 with SendResolverMixin, |
| 137 GetBulkMixin<R, dynamic>, | 127 GetBulkMixin<R, dynamic>, |
| 138 SetBulkMixin<R, dynamic>, | 128 SetBulkMixin<R, dynamic>, |
| 139 ErrorBulkMixin<R, dynamic>, | 129 ErrorBulkMixin<R, dynamic>, |
| 140 InvokeBulkMixin<R, dynamic>, | 130 InvokeBulkMixin<R, dynamic>, |
| 141 IndexSetBulkMixin<R, dynamic>, | 131 IndexSetBulkMixin<R, dynamic>, |
| 142 CompoundBulkMixin<R, dynamic>, | 132 CompoundBulkMixin<R, dynamic>, |
| 143 UnaryBulkMixin<R, dynamic>, | 133 UnaryBulkMixin<R, dynamic>, |
| 144 BaseBulkMixin<R, dynamic>, | 134 BaseBulkMixin<R, dynamic>, |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 | 688 |
| 699 @override | 689 @override |
| 700 R errorUnresolvedSuperIndex( | 690 R errorUnresolvedSuperIndex( |
| 701 Send node, | 691 Send node, |
| 702 Element function, | 692 Element function, |
| 703 Node index, | 693 Node index, |
| 704 ResolvedKindVisitor<R> visitor) { | 694 ResolvedKindVisitor<R> visitor) { |
| 705 return visitor.visitSuperSend(node); | 695 return visitor.visitSuperSend(node); |
| 706 } | 696 } |
| 707 } | 697 } |
| OLD | NEW |