Skip to main content

Class: FLWORForBinding

Defined in: lang-xquery/src/ast/flwor.ts:33

A single variable binding inside a FLWORFor clause, e.g. $x in expr at $pos.

Implements

Constructors

Constructor

new FLWORForBinding(variable, expr, allowEmpty?, posVar?): FLWORForBinding

Defined in: lang-xquery/src/ast/flwor.ts:34

Parameters

ParameterTypeDefault valueDescription
variableASTVariableundefinedThe iteration variable bound to each item.
exprASTNodeundefinedThe sequence expression being iterated.
allowEmptybooleanfalseWhether allowing empty is specified, preserving empty-sequence bindings.
posVar?ASTVariableundefinedOptional positional variable (at $pos) holding the 1-based item index.

Returns

FLWORForBinding

Properties

allowEmpty

allowEmpty: boolean = false

Defined in: lang-xquery/src/ast/flwor.ts:40

Whether allowing empty is specified, preserving empty-sequence bindings.


expr

expr: ASTNode

Defined in: lang-xquery/src/ast/flwor.ts:38

The sequence expression being iterated.


posVar?

optional posVar?: ASTVariable

Defined in: lang-xquery/src/ast/flwor.ts:42

Optional positional variable (at $pos) holding the 1-based item index.


variable

variable: ASTVariable

Defined in: lang-xquery/src/ast/flwor.ts:36

The iteration variable bound to each item.

Methods

accept()

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

Defined in: lang-xquery/src/ast/flwor.ts:45

Dispatches this node to the matching method on visitor.

Type Parameters

Type Parameter
Ret
Arg

Parameters

ParameterType
visitorXQueryVisitor<Ret, Arg>
arg?Arg

Returns

Ret

Implementation of

ASTNode.accept