$closureNode
$closureNode : \PhpParser\Node\Expr\Closure
This is a visitor that extends the nikic/php-parser library and looks for a closure node and its location.
$closureNode : \PhpParser\Node\Expr\Closure
beforeTraverse(array $nodes) : null|array<mixed,\PhpParser\Node>
Called once before traversal.
Return value semantics:
array | $nodes | Array of nodes |
Array of nodes
enterNode(\PhpParser\Node $node) : null|integer|\PhpParser\Node
Called when entering a node.
Return value semantics:
\PhpParser\Node | $node | Node |
Node
leaveNode(\PhpParser\Node $node) : null|false|integer|\PhpParser\Node|array<mixed,\PhpParser\Node>
Called when leaving a node.
Return value semantics:
\PhpParser\Node | $node | Node |
Node
afterTraverse(array $nodes) : null|array<mixed,\PhpParser\Node>
Called once after traversal.
Return value semantics:
array | $nodes | Array of nodes |
Array of nodes