Skip to main content

Function: getThrowStatementFromConsequent()

getThrowStatementFromConsequent(node: Readonly<Statement>): ThrowStatement | null

Defined in: _internal/throw-consequent.ts:58

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.