interface Declaration
    extends Node
Public API: explicitly declared with @visibility public.

A DECLARE statement at the start of a BEGIN ... END block: local variables, a condition, a cursor or a handler.

Source: https://dev.mysql.com/doc/refman/8.4/en/declare.html.

Reading the declarations of a blockdoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE PROCEDURE p() BEGIN DECLARE a INT; END');
    $create->statement->body->declarations[0] instanceof \SqlSemantics\Platform\MySql\Statement\Routine\Program\Declaration // => true

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Implemented by 4
Constant reads 1
Type declarations 1