Skip to main content

Class: ComputedConstructor

Defined in: lang-xquery/src/ast/constructor.ts:82

Computed XML node constructor, e.g. element { name } { content }.

Implements

Constructors

Constructor

new ComputedConstructor(type, content, name?): ComputedConstructor

Defined in: lang-xquery/src/ast/constructor.ts:83

Parameters

ParameterTypeDescription
typeConstructorTypeThe kind of node to construct.
contentASTNode[]Expressions computing the node's content.
name?ASTNode | XQueryIdentifierExpression computing the node name, absent for node kinds that have no name (e.g. text, comment).

Returns

ComputedConstructor

Properties

content

content: ASTNode[]

Defined in: lang-xquery/src/ast/constructor.ts:87

Expressions computing the node's content.


name?

optional name?: ASTNode | XQueryIdentifier

Defined in: lang-xquery/src/ast/constructor.ts:89

Expression computing the node name, absent for node kinds that have no name (e.g. text, comment).


type

type: ConstructorType

Defined in: lang-xquery/src/ast/constructor.ts:85

The kind of node to construct.

Methods

accept()

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

Defined in: lang-xquery/src/ast/constructor.ts:92

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