Skip to main content

Class: DefaultNSDeclaration

Defined in: lang-xquery/src/ast/prolog.ts:39

XQuery declare default element/function namespace "uri" declaration.

Implements

Constructors

Constructor

new DefaultNSDeclaration(uri, type): DefaultNSDeclaration

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

Parameters

ParameterTypeDescription
uriASTStringLiteralThe namespace URI to use as the default.
type"function" | "element"Whether this sets the default element or function namespace.

Returns

DefaultNSDeclaration

Properties

type

type: "function" | "element"

Defined in: lang-xquery/src/ast/prolog.ts:44

Whether this sets the default element or function namespace.


uri

uri: ASTStringLiteral

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

The namespace URI to use as the default.

Methods

accept()

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

Defined in: lang-xquery/src/ast/prolog.ts:47

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