@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildUse
Function: buildUse()
ts
function buildUse(
type,
uses,
attributes?): PhpStmtUse;Builds a PHP use statement node.
Parameters
type
number
The type of use statement (e.g., USE_NORMAL, USE_FUNCTION, USE_CONST).
uses
An array of PhpStmtUseUse nodes representing the used items.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpStmtUse node.
