@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildAttribute
Function: buildAttribute()
ts
function buildAttribute(
name,
args,
attributes?): PhpAttribute;Builds a PHP attribute node.
Parameters
name
The name of the attribute (e.g., PhpName or PhpIdentifier).
args
PhpArg[]
An array of PhpArg nodes representing the attribute's arguments.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpAttribute node.
