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
| Parameter | Type | Default value | Description |
|---|---|---|---|
variable | CypherIdentifier | undefined | Iteration variable bound to each source element. |
source | ASTNode | undefined | List expression to iterate over. |
where | ASTNode | null | Optional filter predicate; null if omitted. |
expr | ASTNode | null | Optional 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
| Parameter | Type |
|---|---|
visitor | CypherVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret