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
| Parameter | Type | Description |
|---|---|---|
type | ConstructorType | The kind of node to construct. |
content | ASTNode[] | Expressions computing the node's content. |
name? | ASTNode | XQueryIdentifier | Expression 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?
optionalname?: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
| Parameter | Type |
|---|---|
visitor | XQueryVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret