Skip to main content

Class: ASTVariable

Defined in: lang-xquery/src/ast/expression.ts:55

An XQuery variable reference ($name); parts holds the variable name components.

Remarks

original is always null - use parts to access the variable name. If the first part is "param" it is replaced with the internal boundParam sentinel.

Extends

Constructors

Constructor

new ASTVariable(name): ASTVariable

Defined in: lang-xquery/src/ast/expression.ts:56

Parameters

ParameterType
nameXQueryIdentifier

Returns

ASTVariable

Overrides

XQueryIdentifier.constructor

Properties

aggregate?

optional aggregate?: AggregateCall

Defined in: core/dist/ast.d.ts:76

Set when this identifier refers to an aggregate call in a GROUP BY context.

Inherited from

XQueryIdentifier.aggregate


original

original: string

Defined in: lang-xquery/src/ast/expression.ts:37

The raw lexed name string (e.g. "xs:integer"); parts holds the split components.

Inherited from

XQueryIdentifier.original


parts

parts: (string | number | symbol)[]

Defined in: core/dist/ast.d.ts:78

Ordered sequence of name parts that form the qualified identifier.

Inherited from

XQueryIdentifier.parts

Methods

[iterator]()

[iterator](): ArrayIterator<string | number | symbol>

Defined in: core/dist/ast.d.ts:80

Iterates over parts in order.

Returns

ArrayIterator<string | number | symbol>

Inherited from

XQueryIdentifier.[iterator]


accept()

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

Defined in: lang-xquery/src/ast/expression.ts:64

ASTNode.accept

Type Parameters

Type Parameter
Ret
Arg

Parameters

ParameterType
visitorXQueryVisitor<Ret, Arg>
arg?Arg

Returns

Ret

Overrides

XQueryIdentifier.accept


equals()

equals(other): boolean

Defined in: core/dist/ast.d.ts:86

Returns true when other has the same parts in the same order.

Parameters

ParameterType
otherASTIdentifier

Returns

boolean

Inherited from

XQueryIdentifier.equals


fromParts()

static fromParts(parts): ASTIdentifier

Defined in: core/dist/ast.d.ts:84

Creates an ASTIdentifier from a pre-built parts array.

Parameters

ParameterType
parts(string | number | symbol)[]

Returns

ASTIdentifier

Inherited from

XQueryIdentifier.fromParts