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

x/windmill/node_modules/yaml/dist/nodes/Node.d.ts>NodeBase

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class NodeBase
Abstract
import { NodeBase } from "https://deno.land/x/windmill@v1.355.2/node_modules/yaml/dist/nodes/Node.d.ts";

Constructors

new
NodeBase(type: symbol)

Properties

optional
comment: string | null

A comment on or immediately after this

optional
commentBefore: string | null

A comment before this

optional
range: Range | null

The [start, value-end, node-end] character offsets for the part of the source parsed into this node (undefined if not parsed). The value-end and node-end positions are themselves not included in their respective ranges.

optional
spaceBefore: boolean

A blank line before this node and its commentBefore

optional
srcToken: Token

The CST token that was composed into this node.

optional
tag: string

A fully qualified tag, if required

readonly
[NODE_TYPE]: symbol

Methods

Create a copy of this node.

abstract
toJSON(): any

A plain JS representation of this node

abstract
toString(
onComment?: () => void,
onChompKeep?: () => void,
): string