final class ListRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Dml". Code outside that scope must not name this declaration.

Flattens the list productions of the dml family.

Rule: MYSQL-DML-LIST-001. A list nonterminal is left or right recursive; every node of its spine must match one of the productions the caller names, and the members are the nonterminal children that are not the spine, in written order. Separators are punctuation of the list. Terminates: an explicit work stack over the finite tree. Source: the statement pages of the callers. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function items(Node $list, list<string> $signatures): list<Node>

Answers the members of a list in written order.

Parameters

$listNode
$signatureslist<string>The productions of the list nonterminal

Returns

list<Node>

Throws

ImplementationGap When a node of the spine matches another production
Called from 14
Calls 5

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 14
Method calls 14