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 '../dart_types.dart'; | 7 import '../dart_types.dart'; |
8 import '../diagnostics/spannable.dart' show | 8 import '../diagnostics/spannable.dart' show |
9 SpannableAssertionFailure; | 9 SpannableAssertionFailure; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
11 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
12 import '../tree/tree.dart'; | 12 import '../tree/tree.dart'; |
13 import '../universe/universe.dart'; | 13 import '../universe/call_structure.dart' show |
| 14 CallStructure; |
| 15 import '../universe/selector.dart' show |
| 16 Selector; |
14 | 17 |
15 import 'access_semantics.dart'; | 18 import 'access_semantics.dart'; |
16 import 'operators.dart'; | 19 import 'operators.dart'; |
17 import 'semantic_visitor.dart'; | 20 import 'semantic_visitor.dart'; |
18 | 21 |
19 /// Interface for the structure of the semantics of a [Send] or [NewExpression] | 22 /// Interface for the structure of the semantics of a [Send] or [NewExpression] |
20 /// node. | 23 /// node. |
21 abstract class SemanticSendStructure<R, A> { | 24 abstract class SemanticSendStructure<R, A> { |
22 /// Calls the matching visit method on [visitor] with [node] and [arg]. | 25 /// Calls the matching visit method on [visitor] with [node] and [arg]. |
23 R dispatch(SemanticSendVisitor<R, A> visitor, Node node, A arg); | 26 R dispatch(SemanticSendVisitor<R, A> visitor, Node node, A arg); |
(...skipping 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2976 ThisConstructorInvokeStructure( | 2979 ThisConstructorInvokeStructure( |
2977 this.node, this.constructor, this.callStructure); | 2980 this.node, this.constructor, this.callStructure); |
2978 | 2981 |
2979 R dispatch(SemanticDeclarationVisitor<R, A> visitor, A arg) { | 2982 R dispatch(SemanticDeclarationVisitor<R, A> visitor, A arg) { |
2980 return visitor.visitThisConstructorInvoke( | 2983 return visitor.visitThisConstructorInvoke( |
2981 node, constructor, node.argumentsNode, callStructure, arg); | 2984 node, constructor, node.argumentsNode, callStructure, arg); |
2982 } | 2985 } |
2983 | 2986 |
2984 bool get isConstructorInvoke => true; | 2987 bool get isConstructorInvoke => true; |
2985 } | 2988 } |
OLD | NEW |