Skip to main content
Module

x/ts_morph/ts_morph.d.ts>TryStatement

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class TryStatement
extends TryStatementBase<ts.TryStatement>
import { TryStatement } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Methods

Gets this try statement's catch clause or undefined if none exists.

Gets this try statement's catch clause or throws if none exists.

getFinallyBlock(): Block | undefined

Gets this try statement's finally block or undefined if none exists.

Gets this try statement's finally block or throws if none exists.

getParent(): NodeParentType<ts.TryStatement>
getParentOrThrow(): NonNullable<NodeParentType<ts.TryStatement>>

Gets this try statement's try block.