Skip to main content

Class: AssignNode

Implements

Constructors

new AssignNode()

new AssignNode(token, name, expression): AssignNode

Parameters

token: Token

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

name: string

expression: Expression

Returns

AssignNode

Defined in

src/builtin/tags/assign.ts:45

Properties

expression

readonly expression: Expression

Defined in

src/builtin/tags/assign.ts:48


name

readonly name: string

Defined in

src/builtin/tags/assign.ts:47


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/assign.ts:46

Methods

children()

children(): ChildNode[]

Return an array of child nodes.

Returns

ChildNode[]

Implementation of

Node.children

Defined in

src/builtin/tags/assign.ts:64


render()

render(context): Promise<void>

Render this node to the given output stream.

Parameters

context: RenderContext

The active render context.

Returns

Promise<void>

Implementation of

Node.render

Defined in

src/builtin/tags/assign.ts:51


renderSync()

renderSync(context): void

A synchronous version of render.

Parameters

context: RenderContext

Returns

void

See

render

Implementation of

Node.renderSync

Defined in

src/builtin/tags/assign.ts:60