Module

x/ts_morph/ts_morph.d.ts>CaseBlock

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

Methods

Gets the clauses.

getParent(): NodeParentType<ts.CaseBlock>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.CaseBlock>>
removeClause(index: number): this

Removes the clause at the specified index.

removeClauses(indexRange: [number, number]): this

Removes the clauses in the specified range.