Skip to main content

Class: BoundFunction

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

XQuery partial-application expression that pre-binds selected arguments of a function, e.g. fn(?, 1) produces a new single-argument function.

Implements

Constructors

Constructor

new BoundFunction(nameOrExpr, boundArgs): BoundFunction

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

Parameters

ParameterTypeDescription
nameOrExprASTNodeThe function reference or expression being partially applied.
boundArgs[number, ASTNode][]Pairs of (0-based parameter index, argument expression) for each pre-bound argument.

Returns

BoundFunction

Properties

boundArgs

boundArgs: [number, ASTNode][]

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

Pairs of (0-based parameter index, argument expression) for each pre-bound argument.


nameOrExpr

nameOrExpr: ASTNode

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

The function reference or expression being partially applied.

Methods

accept()

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

Defined in: lang-xquery/src/ast/function.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