Skip to main content

Class: EchoNode

Extends

Implements

Constructors

new EchoNode()

new EchoNode(token, expression): EchoNode

Parameters

token: Token

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

expression: Expression

Returns

EchoNode

Inherited from

OutputStatementNode.constructor

Defined in

src/builtin/tags/statement.ts:27

Properties

expression

readonly expression: Expression

Inherited from

OutputStatementNode.expression

Defined in

src/builtin/tags/statement.ts:29


forceOutput

readonly forceOutput: true = true

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

Implementation of

Node.forceOutput

Inherited from

OutputStatementNode.forceOutput

Defined in

src/builtin/tags/statement.ts:26


token

readonly token: Token

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

Implementation of

Node.token

Inherited from

OutputStatementNode.token

Defined in

src/builtin/tags/statement.ts:28

Methods

children()

children(): ChildNode[]

Return an array of child nodes.

Returns

ChildNode[]

Implementation of

Node.children

Inherited from

OutputStatementNode.children

Defined in

src/builtin/tags/statement.ts:60


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

Inherited from

OutputStatementNode.render

Defined in

src/builtin/tags/statement.ts:32


renderSync()

renderSync(context, out): void

A synchronous version of render.

Parameters

context: RenderContext

out: RenderStream

Returns

void

See

render

Implementation of

Node.renderSync

Inherited from

OutputStatementNode.renderSync

Defined in

src/builtin/tags/statement.ts:43


toString()

toString(): string

Returns a string representation of an object.

Returns

string

Overrides

OutputStatementNode.toString

Defined in

src/builtin/tags/echo.ts:32