Skip to main content
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@15.1.0/ts_morph.d.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(): NonNullable<NodeParentType<ts.SyntaxList>>
insertChildText(index: number, textOrWriterFunction: string | WriterFunction | ReadonlyArray<string | WriterFunction>): Node<ts.Node>[]

Inserts text at the specified child index.