Skip to main content

Class: ListComprehension

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

List comprehension [variable IN source WHERE filter | projection].

Implements

Constructors

Constructor

new ListComprehension(variable, source, where?, expr?): ListComprehension

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

Parameters

ParameterTypeDefault valueDescription
variableCypherIdentifierundefinedIteration variable bound to each source element.
sourceASTNodeundefinedList expression to iterate over.
whereASTNodenullOptional filter predicate; null if omitted.
exprASTNodenullOptional projection expression; null means each source element is returned as-is.

Returns

ListComprehension

Properties

expr

expr: ASTNode = null

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

Optional projection expression; null means each source element is returned as-is.


source

source: ASTNode

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

List expression to iterate over.


variable

variable: CypherIdentifier

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

Iteration variable bound to each source element.


where

where: ASTNode = null

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

Optional filter predicate; null if omitted.

Methods

accept()

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

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

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