Skip to main content

Class: ASTLiteral<T>

Defined in: packages/core/src/ast.ts:19

A literal constant value parsed from a query, carrying both the raw source text and the typed value.

Extended by​

Type Parameters​

Type Parameter
T

Implements​

Constructors​

Constructor​

new ASTLiteral<T>(original, value): ASTLiteral<T>

Defined in: packages/core/src/ast.ts:20

Parameters​

ParameterTypeDescription
originalstringRaw source text of the literal as it appeared in the query.
valueTParsed runtime value.

Returns​

ASTLiteral<T>

Properties​

original​

original: string

Defined in: packages/core/src/ast.ts:22

Raw source text of the literal as it appeared in the query.


value​

value: T

Defined in: packages/core/src/ast.ts:24

Parsed runtime value.

Methods​

accept()​

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: packages/core/src/ast.ts:28

Dispatches this node to the matching method on visitor.

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorASTVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept