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
ASTNumberLiteralASTStringLiteralASTNumberLiteralASTStringLiteralASTBooleanLiteralASTNumberLiteralASTStringLiteral
Type Parameters
| Type Parameter |
|---|
T |
Implements
Constructors
Constructor
new ASTLiteral<
T>(original,value):ASTLiteral<T>
Defined in: packages/core/src/ast.ts:20
Parameters
| Parameter | Type | Description |
|---|---|---|
original | string | Raw source text of the literal as it appeared in the query. |
value | T | Parsed 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
| Parameter | Type |
|---|---|
visitor | ASTVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret