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 part of dart2js.semantics_visitor_test; | 5 part of dart2js.semantics_visitor_test; |
6 | 6 |
7 class SemanticSendTestVisitor extends SemanticTestVisitor { | 7 class SemanticSendTestVisitor extends SemanticTestVisitor { |
8 | 8 |
9 SemanticSendTestVisitor(TreeElements elements) : super(elements); | 9 SemanticSendTestVisitor(TreeElements elements) : super(elements); |
10 | 10 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 @override | 292 @override |
293 visitLocalFunctionInvoke( | 293 visitLocalFunctionInvoke( |
294 Send node, | 294 Send node, |
295 LocalFunctionElement function, | 295 LocalFunctionElement function, |
296 NodeList arguments, | 296 NodeList arguments, |
297 CallStructure callStructure, | 297 CallStructure callStructure, |
298 arg) { | 298 arg) { |
299 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, | 299 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, |
300 element: function, arguments: arguments, selector: callStructure)); | 300 element: function, arguments: arguments, selector: callStructure)); |
301 apply(arguments, arg); | 301 super.visitLocalFunctionInvoke( |
| 302 node, function, arguments, callStructure, arg); |
302 } | 303 } |
303 | 304 |
304 @override | 305 @override |
| 306 visitLocalFunctionIncompatibleInvoke( |
| 307 Send node, |
| 308 LocalFunctionElement function, |
| 309 NodeList arguments, |
| 310 CallStructure callStructure, |
| 311 arg) { |
| 312 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INCOMPATIBLE_INVOKE, |
| 313 element: function, arguments: arguments, selector: callStructure)); |
| 314 super.visitLocalFunctionInvoke( |
| 315 node, function, arguments, callStructure, arg); |
| 316 } |
| 317 |
| 318 @override |
305 visitLocalVariableGet( | 319 visitLocalVariableGet( |
306 Send node, | 320 Send node, |
307 LocalVariableElement variable, | 321 LocalVariableElement variable, |
308 arg) { | 322 arg) { |
309 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, | 323 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, |
310 element: variable)); | 324 element: variable)); |
311 } | 325 } |
312 | 326 |
313 @override | 327 @override |
314 visitLocalVariableInvoke( | 328 visitLocalVariableInvoke( |
(...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2920 Send node, | 2934 Send node, |
2921 ConstantExpression constant, | 2935 ConstantExpression constant, |
2922 NodeList arguments, | 2936 NodeList arguments, |
2923 CallStructure callStructure, | 2937 CallStructure callStructure, |
2924 arg) { | 2938 arg) { |
2925 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE, | 2939 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE, |
2926 constant: constant.getText())); | 2940 constant: constant.getText())); |
2927 super.visitConstantInvoke(node, constant, arguments, callStructure, arg); | 2941 super.visitConstantInvoke(node, constant, arguments, callStructure, arg); |
2928 } | 2942 } |
2929 } | 2943 } |
OLD | NEW |