Skip to main content

Class: CycleNode

Implements

Constructors

new CycleNode()

new CycleNode(token, args, group?): CycleNode

Parameters

token: Token

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

args: Expression[]

group?: Expression

Returns

CycleNode

Defined in

src/builtin/tags/cycle.ts:50

Properties

args

readonly args: Expression[]

Defined in

src/builtin/tags/cycle.ts:52


group?

readonly optional group: Expression

Defined in

src/builtin/tags/cycle.ts:53


token

readonly token: Token

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

Implementation of

Node.token

Defined in

src/builtin/tags/cycle.ts:51

Methods

children()

children(): ChildNode[]

Return an array of child nodes.

Returns

ChildNode[]

Implementation of

Node.children

Defined in

src/builtin/tags/cycle.ts:108


cycle()

protected cycle(context, out, groupName, args): void

Parameters

context: RenderContext

out: RenderStream

groupName: unknown

args: unknown[]

Returns

void

Defined in

src/builtin/tags/cycle.ts:56


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>

Implementation of

Node.render

Defined in

src/builtin/tags/cycle.ts:87


renderSync()

renderSync(context, out): void

A synchronous version of render.

Parameters

context: RenderContext

out: RenderStream

Returns

void

See

render

Implementation of

Node.renderSync

Defined in

src/builtin/tags/cycle.ts:102