interfaceProgramStatement
interface ProgramStatement
extends Node
Public API: explicitly declared with
@visibility public.A statement of the stored program language: a compound statement, a flow control statement, a cursor statement or a condition statement.
Such a statement is derived at its position in a program, where the parameters, local variables, labels, conditions and cursors declared around it are in scope. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-compound-statements.html.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE PROCEDURE p() BEGIN END');
$create->statement->body instanceof \SqlSemantics\Platform\MySql\Statement\Routine\Program\ProgramStatement // => trueMethods§
public function deriveProgram(Derivation $derivation, ProgramScope $scope): voidDerives the facts of the statement in the scope of its position.
Parameters
$derivation | Derivation | |
$scope | ProgramScope |
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Implemented by 16
- GetDiagnostics packages/sql-semantics-mysql/src/Statement/Routine/Condition/Diagnostics/GetDiagnostics.php:27
- Resignal packages/sql-semantics-mysql/src/Statement/Routine/Condition/Resignal.php:29
- Signal packages/sql-semantics-mysql/src/Statement/Routine/Condition/Signal.php:29
- Block packages/sql-semantics-mysql/src/Statement/Routine/Program/Block.php:31
- CloseCursor packages/sql-semantics-mysql/src/Statement/Routine/Program/Cursor/CloseCursor.php:27
- FetchCursor packages/sql-semantics-mysql/src/Statement/Routine/Program/Cursor/FetchCursor.php:29
- OpenCursor packages/sql-semantics-mysql/src/Statement/Routine/Program/Cursor/OpenCursor.php:26
- IfStatement packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/IfStatement.php:30
- Iterate packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/Iterate.php:27
- Leave packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/Leave.php:27
- Loop packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/Loop.php:31
- RepeatLoop packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/RepeatLoop.php:32
- ReturnStatement packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/ReturnStatement.php:26
- SearchedCase packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/SearchedCase.php:29
- SimpleCase packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/SimpleCase.php:32
- WhileLoop packages/sql-semantics-mysql/src/Statement/Routine/Program/Flow/WhileLoop.php:32
Type checks 2
Type declarations 15
- type SqlSemantics\Platform\MySql\Lowering\Routine\Program\FlowRule packages/sql-semantics-mysql/src/Lowering/Routine/Program/FlowRule.php:180
- type SqlSemantics\Platform\MySql\Lowering\Routine\Program\StatementRule packages/sql-semantics-mysql/src/Lowering/Routine/Program/StatementRule.php:72
- type SqlSemantics\Platform\MySql\Lowering\Routine\Program\StatementRule packages/sql-semantics-mysql/src/Lowering/Routine/Program/StatementRule.php:118
- type SqlSemantics\Platform\MySql\Lowering\Routine\Program\StatementRule packages/sql-semantics-mysql/src/Lowering/Routine/Program/StatementRule.php:130
- type SqlSemantics\Platform\MySql\Rules\Routine\ProgramFacts packages/sql-semantics-mysql/src/Rules/Routine/ProgramFacts.php:57
- type SqlSemantics\Platform\MySql\Rules\Routine\ProgramFacts packages/sql-semantics-mysql/src/Rules/Routine/ProgramFacts.php:65
- type SqlSemantics\Platform\MySql\Rules\Routine\ProgramFacts packages/sql-semantics-mysql/src/Rules/Routine/ProgramFacts.php:91
- type SqlSemantics\Platform\MySql\Rules\Routine\ProgramFacts packages/sql-semantics-mysql/src/Rules/Routine/ProgramFacts.php:102
- type SqlSemantics\Platform\MySql\Rules\Routine\StatementSequence packages/sql-semantics-mysql/src/Rules/Routine/StatementSequence.php:45
- type SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:46
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateEvent packages/sql-semantics-mysql/src/Statement/Routine/CreateEvent.php:45
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateFunction packages/sql-semantics-mysql/src/Statement/Routine/CreateFunction.php:47
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateProcedure packages/sql-semantics-mysql/src/Statement/Routine/CreateProcedure.php:45
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateTrigger packages/sql-semantics-mysql/src/Statement/Routine/CreateTrigger.php:44
- type SqlSemantics\Platform\MySql\Statement\Routine\Program\HandlerDeclaration packages/sql-semantics-mysql/src/Statement/Routine/Program/HandlerDeclaration.php:39