final class Lists
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Flattens the recursive list productions of a grammar without recursing on the list spine.

Methods§

public function elements(Node $list): list<Node|Token>

Answers the children along a left- or right-recursive list, in source order.

A child that has the same rule name as the list is the continuation of the list and is expanded in place; every other child, separators included, is returned.

Parameters

$listNode

Returns

list<Node|Token>
Called from 3
Calls 2
public function items(Node $list): list<Node>

Answers the nonterminal items of a recursive list, dropping separator tokens.

Parameters

$listNode

Returns

list<Node>
Called from 51
Calls 1

Relations§

Instantiated in 53
Method calls 53