Skip to main content

Class: ASTSubscript

Defined in: lang-sql/src/ast/expression.ts:156

Array subscript or slice expression (expr[from] or expr[from:to]).

Implements​

Constructors​

Constructor​

new ASTSubscript(expr, from, to?): ASTSubscript

Defined in: lang-sql/src/ast/expression.ts:157

Parameters​

ParameterTypeDescription
exprASTNodeThe array-valued expression being subscripted.
fromASTNodeLower bound (1-based) of the subscript or slice.
to?ASTNodeUpper bound of the slice; undefined for a plain element subscript.

Returns​

ASTSubscript

Properties​

expr​

expr: ASTNode

Defined in: lang-sql/src/ast/expression.ts:159

The array-valued expression being subscripted.


from​

from: ASTNode

Defined in: lang-sql/src/ast/expression.ts:161

Lower bound (1-based) of the subscript or slice.


to?​

optional to?: ASTNode

Defined in: lang-sql/src/ast/expression.ts:163

Upper bound of the slice; undefined for a plain element subscript.

Methods​

accept()​

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

Defined in: lang-sql/src/ast/expression.ts:166

Dispatches this node to the matching method on visitor.

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorSQLVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept