Skip to main content

Interface: Node

Properties

captureOutput?

readonly optional captureOutput: boolean

Indicates that a node will never produce an output, even if it has output statement child nodes.

Defined in

src/ast.ts:26


children()?

optional children: () => ChildNode[]

Return an array of child nodes.

Returns

ChildNode[]

Defined in

src/ast.ts:44


forceOutput?

readonly optional forceOutput: boolean

Indicates that nodes that do automatic whitespace suppression should output this node regardless of its contents.

Defined in

src/ast.ts:20


token

readonly token: Token

The token that started this node. Used to add line and column numbers to error messages.

Defined in

src/ast.ts:14

Methods

render()

render(context, out): Promise<void>

Render this node to the given output stream.

Parameters

context: RenderContext

The active render context.

out: RenderStream

The stream to output to.

Returns

Promise<void>

Defined in

src/ast.ts:33


renderSync()

renderSync(context, out): void

A synchronous version of render.

Parameters

context: RenderContext

out: RenderStream

Returns

void

See

render

Defined in

src/ast.ts:39