Skip to main content

Class: SubscriptExpr

Defined in: lang-cypher/src/ast/expression.ts:171

Subscript or slice expression: expr[idx] for index access or expr[from..to] for a range slice.

Implements​

Constructors​

Constructor​

new SubscriptExpr(expr, subscript): SubscriptExpr

Defined in: lang-cypher/src/ast/expression.ts:172

Parameters​

ParameterTypeDescription
exprASTNodeThe list or map being indexed.
subscript[ASTNode, ASTNode] | [ASTNode]Single-element tuple for index access; two-element tuple [from, to] for a slice.

Returns​

SubscriptExpr

Properties​

expr​

expr: ASTNode

Defined in: lang-cypher/src/ast/expression.ts:174

The list or map being indexed.


subscript​

subscript: [ASTNode, ASTNode] | [ASTNode]

Defined in: lang-cypher/src/ast/expression.ts:176

Single-element tuple for index access; two-element tuple [from, to] for a slice.

Methods​

accept()​

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

Defined in: lang-cypher/src/ast/expression.ts:179

Dispatches this node to the matching method on visitor.

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorCypherVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept