classListRule
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
$lowering | Lowering | The lowering this rule belongs to |
Answers the members of a list in written order.
Parameters
$list | Node | |
$signatures | list<string> | The productions of the list nonterminal |
Returns
list<Node>Throws
ImplementationGap When a node of the spine matches another productionCalled from 14
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ChangeRule::options() packages/sql-semantics-mysql/src/Lowering/Dml/ChangeRule.php:167
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ChangeRule::wildTargets() packages/sql-semantics-mysql/src/Lowering/Dml/ChangeRule.php:216
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\FormatRule::fields() packages/sql-semantics-mysql/src/Lowering/Dml/FormatRule.php:85
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\FormatRule::lines() packages/sql-semantics-mysql/src/Lowering/Dml/FormatRule.php:110
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\Insert\InsertSourceRule::rows() packages/sql-semantics-mysql/src/Lowering/Dml/Insert/InsertSourceRule.php:138
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\Insert\InsertSourceRule::columns() packages/sql-semantics-mysql/src/Lowering/Dml/Insert/InsertSourceRule.php:158
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\InvocationRule::arguments() packages/sql-semantics-mysql/src/Lowering/Dml/InvocationRule.php:106
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\InvocationRule::variables() packages/sql-semantics-mysql/src/Lowering/Dml/InvocationRule.php:176
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\LoadRule::columns() packages/sql-semantics-mysql/src/Lowering/Dml/LoadRule.php:267
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\LoadRule::assignments() packages/sql-semantics-mysql/src/Lowering/Dml/LoadRule.php:296
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\TargetRule::tables() packages/sql-semantics-mysql/src/Lowering/Dml/TargetRule.php:53
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\TargetRule::wildcards() packages/sql-semantics-mysql/src/Lowering/Dml/TargetRule.php:77
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ValueRule::row() packages/sql-semantics-mysql/src/Lowering/Dml/ValueRule.php:67
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ValueRule::assignments() packages/sql-semantics-mysql/src/Lowering/Dml/ValueRule.php:99
Calls 5
- function-call
array_popline 44 - method-call Lowering::form() line 49
- function-call
in_arrayline 50 - static-call ImplementationGap::production() line 51
- function-call
countline 53
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ListRuleTestcalls
Relations§
Instantiated in 14
- new SqlSemantics\Platform\MySql\Lowering\Dml\ChangeRule::options() packages/sql-semantics-mysql/src/Lowering/Dml/ChangeRule.php:167
- new SqlSemantics\Platform\MySql\Lowering\Dml\ChangeRule::wildTargets() packages/sql-semantics-mysql/src/Lowering/Dml/ChangeRule.php:216
- new SqlSemantics\Platform\MySql\Lowering\Dml\FormatRule::fields() packages/sql-semantics-mysql/src/Lowering/Dml/FormatRule.php:85
- new SqlSemantics\Platform\MySql\Lowering\Dml\FormatRule::lines() packages/sql-semantics-mysql/src/Lowering/Dml/FormatRule.php:110
- new SqlSemantics\Platform\MySql\Lowering\Dml\Insert\InsertSourceRule::rows() packages/sql-semantics-mysql/src/Lowering/Dml/Insert/InsertSourceRule.php:138
- new SqlSemantics\Platform\MySql\Lowering\Dml\Insert\InsertSourceRule::columns() packages/sql-semantics-mysql/src/Lowering/Dml/Insert/InsertSourceRule.php:158
- new SqlSemantics\Platform\MySql\Lowering\Dml\InvocationRule::arguments() packages/sql-semantics-mysql/src/Lowering/Dml/InvocationRule.php:106
- new SqlSemantics\Platform\MySql\Lowering\Dml\InvocationRule::variables() packages/sql-semantics-mysql/src/Lowering/Dml/InvocationRule.php:176
- new SqlSemantics\Platform\MySql\Lowering\Dml\LoadRule::columns() packages/sql-semantics-mysql/src/Lowering/Dml/LoadRule.php:267
- new SqlSemantics\Platform\MySql\Lowering\Dml\LoadRule::assignments() packages/sql-semantics-mysql/src/Lowering/Dml/LoadRule.php:296
- new SqlSemantics\Platform\MySql\Lowering\Dml\TargetRule::tables() packages/sql-semantics-mysql/src/Lowering/Dml/TargetRule.php:53
- new SqlSemantics\Platform\MySql\Lowering\Dml\TargetRule::wildcards() packages/sql-semantics-mysql/src/Lowering/Dml/TargetRule.php:77
- new SqlSemantics\Platform\MySql\Lowering\Dml\ValueRule::row() packages/sql-semantics-mysql/src/Lowering/Dml/ValueRule.php:67
- new SqlSemantics\Platform\MySql\Lowering\Dml\ValueRule::assignments() packages/sql-semantics-mysql/src/Lowering/Dml/ValueRule.php:99
Method calls 14
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ChangeRule::options() packages/sql-semantics-mysql/src/Lowering/Dml/ChangeRule.php:167
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ChangeRule::wildTargets() packages/sql-semantics-mysql/src/Lowering/Dml/ChangeRule.php:216
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\FormatRule::fields() packages/sql-semantics-mysql/src/Lowering/Dml/FormatRule.php:85
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\FormatRule::lines() packages/sql-semantics-mysql/src/Lowering/Dml/FormatRule.php:110
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\Insert\InsertSourceRule::rows() packages/sql-semantics-mysql/src/Lowering/Dml/Insert/InsertSourceRule.php:138
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\Insert\InsertSourceRule::columns() packages/sql-semantics-mysql/src/Lowering/Dml/Insert/InsertSourceRule.php:158
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\InvocationRule::arguments() packages/sql-semantics-mysql/src/Lowering/Dml/InvocationRule.php:106
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\InvocationRule::variables() packages/sql-semantics-mysql/src/Lowering/Dml/InvocationRule.php:176
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\LoadRule::columns() packages/sql-semantics-mysql/src/Lowering/Dml/LoadRule.php:267
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\LoadRule::assignments() packages/sql-semantics-mysql/src/Lowering/Dml/LoadRule.php:296
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\TargetRule::tables() packages/sql-semantics-mysql/src/Lowering/Dml/TargetRule.php:53
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\TargetRule::wildcards() packages/sql-semantics-mysql/src/Lowering/Dml/TargetRule.php:77
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ValueRule::row() packages/sql-semantics-mysql/src/Lowering/Dml/ValueRule.php:67
- method-call SqlSemantics\Platform\MySql\Lowering\Dml\ValueRule::assignments() packages/sql-semantics-mysql/src/Lowering/Dml/ValueRule.php:99