classSequence
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
$lowering | Lowering | The lowering this rule belongs to |
Answers the members of a list in source order.
Parameters
$list | Node | |
$signatures | list<string> | The productions of the list rule |
Returns
list<Node>Throws
ImplementationGap When a spine node matches none of the productionsTest cases 3
Called from 8
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\CharacteristicRule::characteristics() packages/sql-semantics-mysql/src/Lowering/Routine/CharacteristicRule.php:69
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Condition\ConditionRule::handled() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/ConditionRule.php:74
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Condition\DiagnosticsRule::items() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/DiagnosticsRule.php:115
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\ParameterRule::parameters() packages/sql-semantics-mysql/src/Lowering/Routine/ParameterRule.php:61
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\BlockRule::block() packages/sql-semantics-mysql/src/Lowering/Routine/Program/BlockRule.php:81
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\BlockRule::names() packages/sql-semantics-mysql/src/Lowering/Routine/Program/BlockRule.php:133
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\FlowRule::choice() packages/sql-semantics-mysql/src/Lowering/Routine/Program/FlowRule.php:110
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\StatementRule::statements() packages/sql-semantics-mysql/src/Lowering/Routine/Program/StatementRule.php:106
Calls 5
- function-call
array_popline 45 - method-call Lowering::form() line 50
- function-call
in_arrayline 51 - static-call ImplementationGap::production() line 52
- function-call
countline 54
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 8
- new SqlSemantics\Platform\MySql\Lowering\Routine\CharacteristicRule::characteristics() packages/sql-semantics-mysql/src/Lowering/Routine/CharacteristicRule.php:69
- new SqlSemantics\Platform\MySql\Lowering\Routine\Condition\ConditionRule::handled() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/ConditionRule.php:74
- new SqlSemantics\Platform\MySql\Lowering\Routine\Condition\DiagnosticsRule::items() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/DiagnosticsRule.php:115
- new SqlSemantics\Platform\MySql\Lowering\Routine\ParameterRule::parameters() packages/sql-semantics-mysql/src/Lowering/Routine/ParameterRule.php:61
- new SqlSemantics\Platform\MySql\Lowering\Routine\Program\BlockRule::block() packages/sql-semantics-mysql/src/Lowering/Routine/Program/BlockRule.php:81
- new SqlSemantics\Platform\MySql\Lowering\Routine\Program\BlockRule::names() packages/sql-semantics-mysql/src/Lowering/Routine/Program/BlockRule.php:133
- new SqlSemantics\Platform\MySql\Lowering\Routine\Program\FlowRule::choice() packages/sql-semantics-mysql/src/Lowering/Routine/Program/FlowRule.php:110
- new SqlSemantics\Platform\MySql\Lowering\Routine\Program\StatementRule::statements() packages/sql-semantics-mysql/src/Lowering/Routine/Program/StatementRule.php:106
Method calls 8
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\CharacteristicRule::characteristics() packages/sql-semantics-mysql/src/Lowering/Routine/CharacteristicRule.php:69
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Condition\ConditionRule::handled() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/ConditionRule.php:74
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Condition\DiagnosticsRule::items() packages/sql-semantics-mysql/src/Lowering/Routine/Condition/DiagnosticsRule.php:115
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\ParameterRule::parameters() packages/sql-semantics-mysql/src/Lowering/Routine/ParameterRule.php:61
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\BlockRule::block() packages/sql-semantics-mysql/src/Lowering/Routine/Program/BlockRule.php:81
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\BlockRule::names() packages/sql-semantics-mysql/src/Lowering/Routine/Program/BlockRule.php:133
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\FlowRule::choice() packages/sql-semantics-mysql/src/Lowering/Routine/Program/FlowRule.php:110
- method-call SqlSemantics\Platform\MySql\Lowering\Routine\Program\StatementRule::statements() packages/sql-semantics-mysql/src/Lowering/Routine/Program/StatementRule.php:106