Module

x/ts_morph/mod.ts>BreakStatement

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
class BreakStatement
extends Statement<ts.BreakStatement>
import { BreakStatement } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";

Methods

getLabel(): Identifier | undefined

Gets this break statement's label or undefined if it does not exist.

getLabelOrThrow(message?: string | (() => string)): Identifier

Gets this break statement's label or throw if it does not exist.

getParent(): NodeParentType<ts.BreakStatement>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.BreakStatement>>