@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildThrow
Function: buildThrow()
ts
function buildThrow(expr, attributes?): PhpExprThrow;Builds a PHP throw expression node.
Parameters
expr
The expression representing the throwable object.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprThrow node.
