Skip to main content

Class: DirectElementConstructor

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

Direct XML element constructor literal, e.g. <tag attr="val">content</tag>.

Implements​

Constructors​

Constructor​

new DirectElementConstructor(name, attributes, content?): DirectElementConstructor

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

Parameters​

ParameterTypeDefault valueDescription
nameXQueryIdentifierundefinedThe element name.
attributes[XQueryIdentifier, DirConstrContent][]undefinedAttribute name-value pairs declared on the element's opening tag.
content(string | ASTNode | ASTNode[])[][]-

Returns​

DirectElementConstructor

Properties​

attributes​

attributes: [XQueryIdentifier, DirConstrContent][]

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

Attribute name-value pairs declared on the element's opening tag.


content​

content: DirConstrContent

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

Child content of the element, including text, nested elements, and enclosed expressions.


name​

name: XQueryIdentifier

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

The element name.

Methods​

accept()​

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

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

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