The function name node of the php call whose arguments contain `node` — ≤4 parent hops to a function_call_expression; member/scoped calls abort (method-call HOFs never qualify). (function-ref.ts:822)
(node: Node)
| 1478 | /// ≤4 parent hops to a function_call_expression; member/scoped calls abort |
| 1479 | /// (method-call HOFs never qualify). (function-ref.ts:822) |
| 1480 | fn php_enclosing_call_name(node: Node) -> Option<Node> { |
| 1481 | let mut cur = node.parent(); |
| 1482 | for _ in 0..4 { |
| 1483 | let c = cur?; |
| 1484 | if c.kind() == "function_call_expression" { |
| 1485 | return c.child_by_field_name("function"); |
| 1486 | } |
| 1487 | if matches!(c.kind(), "member_call_expression" | "scoped_call_expression") { |
| 1488 | return None; |
| 1489 | } |
| 1490 | cur = c.parent(); |
| 1491 | } |
| 1492 | None |
| 1493 | } |
| 1494 | |
| 1495 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1496 | for i in 0..node.named_child_count() { |
no outgoing calls
no test coverage detected