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

Flattens the recursive list productions of stored programs.

Rule: MYSQL-ROUTINE-SEQUENCE-001. Scope: every list rule of the routine family; the rule that reads a list names its productions. Each node along the list spine must match one of them; the nonterminal members are answered in source order and the separator tokens (commas, and the semicolons that end the statements of a compound statement) are dropped, since the writer adds them back. Terminates: an explicit stack visits each spine node once. 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 source order.

Parameters

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

Returns

list<Node>

Throws

ImplementationGap When a spine node matches none of the productions
Test cases 3
Called from 8
Calls 5

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 8
Method calls 8