@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildArg
Function: buildArg()
ts
function buildArg(
value,
options,
attributes?): PhpArg;Builds a PHP argument node.
Parameters
value
The expression representing the argument's value.
options
Optional configuration for the argument (by reference, unpack, name).
byRef?
boolean
name?
PhpIdentifier | null
unpack?
boolean
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpArg node.
