Function: getThrowStatementFromConsequent()
function getThrowStatementFromConsequent(
node: Readonly<Statement>
): ThrowStatement | null;
Defined in: _internal/throw-consequent.ts:57
Extract the throw statement from a throw-only consequent.
Parametersโ
nodeโ
Readonly<Statement>
Consequent statement to inspect.
Returnsโ
ThrowStatement | null
Throw statement when present; otherwise null.