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