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.resolution.send_structure; |
| 6 |
| 7 import '../dart_types.dart'; |
| 8 import '../diagnostics/spannable.dart' show |
| 9 SpannableAssertionFailure; |
| 10 import '../constants/expressions.dart'; |
| 11 import '../elements/elements.dart'; |
| 12 import '../tree/tree.dart'; |
| 13 import '../universe/universe.dart'; |
6 | 14 |
7 import 'access_semantics.dart'; | 15 import 'access_semantics.dart'; |
8 import 'operators.dart'; | 16 import 'operators.dart'; |
9 import 'semantic_visitor.dart'; | 17 import 'semantic_visitor.dart'; |
10 import '../dart_types.dart'; | |
11 import '../constants/expressions.dart'; | |
12 import '../elements/elements.dart'; | |
13 import '../tree/tree.dart'; | |
14 import '../universe/universe.dart'; | |
15 import '../diagnostics/spannable.dart' show | |
16 SpannableAssertionFailure; | |
17 | 18 |
18 /// Interface for the structure of the semantics of a [Send] or [NewExpression] | 19 /// Interface for the structure of the semantics of a [Send] or [NewExpression] |
19 /// node. | 20 /// node. |
20 abstract class SemanticSendStructure<R, A> { | 21 abstract class SemanticSendStructure<R, A> { |
21 /// Calls the matching visit method on [visitor] with [node] and [arg]. | 22 /// Calls the matching visit method on [visitor] with [node] and [arg]. |
22 R dispatch(SemanticSendVisitor<R, A> visitor, Node node, A arg); | 23 R dispatch(SemanticSendVisitor<R, A> visitor, Node node, A arg); |
23 } | 24 } |
24 | 25 |
25 /// Interface for the structure of the semantics of a [Send] node. | 26 /// Interface for the structure of the semantics of a [Send] node. |
26 /// | 27 /// |
(...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2752 ThisConstructorInvokeStructure( | 2753 ThisConstructorInvokeStructure( |
2753 this.node, this.constructor, this.callStructure); | 2754 this.node, this.constructor, this.callStructure); |
2754 | 2755 |
2755 R dispatch(SemanticDeclarationVisitor<R, A> visitor, A arg) { | 2756 R dispatch(SemanticDeclarationVisitor<R, A> visitor, A arg) { |
2756 return visitor.visitThisConstructorInvoke( | 2757 return visitor.visitThisConstructorInvoke( |
2757 node, constructor, node.argumentsNode, callStructure, arg); | 2758 node, constructor, node.argumentsNode, callStructure, arg); |
2758 } | 2759 } |
2759 | 2760 |
2760 bool get isConstructorInvoke => true; | 2761 bool get isConstructorInvoke => true; |
2761 } | 2762 } |
OLD | NEW |