@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildConst
Function: buildConst()
ts
function buildConst(
name,
value,
attributes?): PhpConst;Builds a PHP constant node.
Parameters
name
The identifier for the constant.
value
The expression representing the constant's value.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpConst node.
