Module

x/ts_morph/mod.ts>SyntaxList

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

Methods

addChildText(textOrWriterFunction: string | WriterFunction | ReadonlyArray<string | WriterFunction>): Node<ts.Node>[]

Adds text at the end of the current children.

getParent(): NodeParentType<ts.SyntaxList>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.SyntaxList>>
insertChildText(index: number, textOrWriterFunction: string | WriterFunction | ReadonlyArray<string | WriterFunction>): Node<ts.Node>[]

Inserts text at the specified child index.