interfaceDeclaration
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.
$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 // => trueTest 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
- ConditionDeclaration packages/sql-semantics-mysql/src/Statement/Routine/Program/ConditionDeclaration.php:25
- CursorDeclaration packages/sql-semantics-mysql/src/Statement/Routine/Program/Cursor/CursorDeclaration.php:26
- HandlerDeclaration packages/sql-semantics-mysql/src/Statement/Routine/Program/HandlerDeclaration.php:27
- VariableDeclaration packages/sql-semantics-mysql/src/Statement/Routine/Program/VariableDeclaration.php:43