Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>SyntaxList

Compile your Deno project to run on Node.js.
Go to Latest
class SyntaxList
extends Node<ts.SyntaxList>
import { SyntaxList } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.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.