final class RoutineRules
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

The entry rules of the routine family: the methods other families and the statement dispatcher call.

Rule: MYSQL-ROUTINE-ENTRY-001. Scope: stored procedures, functions, triggers, events, loadable functions and compound statements. The method names, parameters and return types are fixed by the family plan. A method delegates to the rule classes of this family. Terminates: constant dispatch. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-compound-statements.html. Status: Implemented.

Properties§

public Lowering $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Node $statement): Statement

Lowers a stored program statement: a node of one of the statement rules this family owns.

Parameters

$statementNode

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Called from 1
Calls 7
public function definition(Form $form): Statement

Lowers a production of alter or drop that MYSQL-DEFINITION-ROUTES-001 routes to this family.

The form may also be that of one of the 8.0 statement rules alter_procedure_stmt, alter_function_stmt, alter_event_stmt and drop_*_stmt of stored programs.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Called from 2
Calls 8
public function create(Node $tail, ?Account $definer): Statement

Lowers CREATE of a stored program: a node of trigger_tail, sp_tail, sf_tail, event_tail or udf_tail, and the definer.

Parameters

$tailNode
$definer?Account

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Calls 9

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 1
Method calls 2
Type declarations 1