| 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; | 5 part of dart2js.semantics_visitor; |
| 6 | 6 |
| 7 /// Interface for bulk handling of a [Node] in a semantic visitor. | 7 /// Interface for bulk handling of a [Node] in a semantic visitor. |
| 8 abstract class BulkHandle<R, A> { | 8 abstract class BulkHandle<R, A> { |
| 9 /// Handle [node] either regardless of semantics or to report that [node] is | 9 /// Handle [node] either regardless of semantics or to report that [node] is |
| 10 /// unhandled. [message] contains a message template for the latter case: | 10 /// unhandled. [message] contains a message template for the latter case: |
| (...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 R visitLocalFunctionInvoke( | 1402 R visitLocalFunctionInvoke( |
| 1403 Send node, | 1403 Send node, |
| 1404 LocalFunctionElement function, | 1404 LocalFunctionElement function, |
| 1405 NodeList arguments, | 1405 NodeList arguments, |
| 1406 CallStructure callStructure, | 1406 CallStructure callStructure, |
| 1407 A arg) { | 1407 A arg) { |
| 1408 return bulkHandleInvoke(node, arg); | 1408 return bulkHandleInvoke(node, arg); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 @override | 1411 @override |
| 1412 R visitLocalFunctionIncompatibleInvoke( |
| 1413 Send node, |
| 1414 LocalFunctionElement function, |
| 1415 NodeList arguments, |
| 1416 CallStructure callStructure, |
| 1417 A arg) { |
| 1418 return bulkHandleInvoke(node, arg); |
| 1419 } |
| 1420 |
| 1421 @override |
| 1412 R visitLocalVariableInvoke( | 1422 R visitLocalVariableInvoke( |
| 1413 Send node, | 1423 Send node, |
| 1414 LocalVariableElement variable, | 1424 LocalVariableElement variable, |
| 1415 NodeList arguments, | 1425 NodeList arguments, |
| 1416 CallStructure callStructure, | 1426 CallStructure callStructure, |
| 1417 A arg) { | 1427 A arg) { |
| 1418 return bulkHandleInvoke(node, arg); | 1428 return bulkHandleInvoke(node, arg); |
| 1419 } | 1429 } |
| 1420 | 1430 |
| 1421 @override | 1431 @override |
| (...skipping 2789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4211 Send node, | 4221 Send node, |
| 4212 LocalFunctionElement function, | 4222 LocalFunctionElement function, |
| 4213 NodeList arguments, | 4223 NodeList arguments, |
| 4214 CallStructure callStructure, | 4224 CallStructure callStructure, |
| 4215 A arg) { | 4225 A arg) { |
| 4216 apply(arguments, arg); | 4226 apply(arguments, arg); |
| 4217 return null; | 4227 return null; |
| 4218 } | 4228 } |
| 4219 | 4229 |
| 4220 @override | 4230 @override |
| 4231 R visitLocalFunctionIncompatibleInvoke( |
| 4232 Send node, |
| 4233 LocalFunctionElement function, |
| 4234 NodeList arguments, |
| 4235 CallStructure callStructure, |
| 4236 A arg) { |
| 4237 apply(arguments, arg); |
| 4238 return null; |
| 4239 } |
| 4240 |
| 4241 @override |
| 4221 R visitLocalVariableCompound( | 4242 R visitLocalVariableCompound( |
| 4222 Send node, | 4243 Send node, |
| 4223 LocalVariableElement variable, | 4244 LocalVariableElement variable, |
| 4224 AssignmentOperator operator, | 4245 AssignmentOperator operator, |
| 4225 Node rhs, | 4246 Node rhs, |
| 4226 A arg) { | 4247 A arg) { |
| 4227 apply(rhs, arg); | 4248 apply(rhs, arg); |
| 4228 return null; | 4249 return null; |
| 4229 } | 4250 } |
| 4230 | 4251 |
| (...skipping 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7432 R visitLocalFunctionInvoke( | 7453 R visitLocalFunctionInvoke( |
| 7433 Send node, | 7454 Send node, |
| 7434 LocalFunctionElement function, | 7455 LocalFunctionElement function, |
| 7435 NodeList arguments, | 7456 NodeList arguments, |
| 7436 CallStructure callStructure, | 7457 CallStructure callStructure, |
| 7437 A arg) { | 7458 A arg) { |
| 7438 return handleLocalInvoke(node, function, arguments, callStructure, arg); | 7459 return handleLocalInvoke(node, function, arguments, callStructure, arg); |
| 7439 } | 7460 } |
| 7440 | 7461 |
| 7441 @override | 7462 @override |
| 7463 R visitLocalFunctionIncompatibleInvoke( |
| 7464 Send node, |
| 7465 LocalFunctionElement function, |
| 7466 NodeList arguments, |
| 7467 CallStructure callStructure, |
| 7468 A arg) { |
| 7469 return handleLocalInvoke(node, function, arguments, callStructure, arg); |
| 7470 } |
| 7471 |
| 7472 @override |
| 7442 R visitLocalVariableGet( | 7473 R visitLocalVariableGet( |
| 7443 Send node, | 7474 Send node, |
| 7444 LocalVariableElement variable, | 7475 LocalVariableElement variable, |
| 7445 A arg) { | 7476 A arg) { |
| 7446 return handleLocalGet(node, variable, arg); | 7477 return handleLocalGet(node, variable, arg); |
| 7447 } | 7478 } |
| 7448 | 7479 |
| 7449 @override | 7480 @override |
| 7450 R visitLocalVariableInvoke( | 7481 R visitLocalVariableInvoke( |
| 7451 Send node, | 7482 Send node, |
| (...skipping 3254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10706 NewExpression node, | 10737 NewExpression node, |
| 10707 ConstructorElement constructor, | 10738 ConstructorElement constructor, |
| 10708 InterfaceType type, | 10739 InterfaceType type, |
| 10709 NodeList arguments, | 10740 NodeList arguments, |
| 10710 CallStructure callStructure, | 10741 CallStructure callStructure, |
| 10711 A arg) { | 10742 A arg) { |
| 10712 return handleConstructorInvoke( | 10743 return handleConstructorInvoke( |
| 10713 node, constructor, type, arguments, callStructure, arg); | 10744 node, constructor, type, arguments, callStructure, arg); |
| 10714 } | 10745 } |
| 10715 } | 10746 } |
| OLD | NEW |