@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildClosureUse
Function: buildClosureUse()
ts
function buildClosureUse(
variable,
options,
attributes?): PhpClosureUse;Builds a PHP closure use node.
Parameters
variable
The variable being used in the closure.
options
Optional configuration for the use (by reference).
byRef?
boolean
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpClosureUse node.
