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

Flattens the recursive list rules of the table definition family and checks every production of the spine.

Rule: MYSQL-TABLE-DEFINITION-LIST-001. A list node and every nested node of the same rule must match one of the list productions the caller names; the nodes of the rules the caller asks for are returned in source order, separators and noise rules left out. Terminates: an explicit stack over strict subtrees. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html. 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<string> $items): list<Node>

Answers the item nodes of a list in source order.

Parameters

$listNode
$signatureslist<string>The productions of the list rule
$itemslist<string>The rule names of the items to return

Returns

list<Node>

Throws

ImplementationGap When a spine node matches another production
Test cases 2
Called from 8
Calls 4

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 8
Method calls 8