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.

Telling a program statement from other statementsdoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE PROCEDURE p() BEGIN END');
    $create->statement->body instanceof \SqlSemantics\Platform\MySql\Statement\Routine\Program\ProgramStatement // => true

Methods§

public function deriveProgram(Derivation $derivation, ProgramScope $scope): void

Derives the facts of the statement in the scope of its position.

Parameters

$derivationDerivation
$scopeProgramScope

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§

Implemented by 16
Type checks 2
Type declarations 15