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
| Parameter | Type | Default value | Description |
|---|---|---|---|
variable | ASTVariable | undefined | The iteration variable bound to each item. |
expr | ASTNode | undefined | The sequence expression being iterated. |
allowEmpty | boolean | false | Whether allowing empty is specified, preserving empty-sequence bindings. |
posVar? | ASTVariable | undefined | Optional 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?
optionalposVar?: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
| Parameter | Type |
|---|---|
visitor | XQueryVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret