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
| Parameter | Type | Description |
|---|---|---|
expr | ASTNode | The array-valued expression being subscripted. |
from | ASTNode | Lower bound (1-based) of the subscript or slice. |
to? | ASTNode | Upper 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?
optionalto?: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
| Parameter | Type |
|---|---|
visitor | SQLVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret