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

Lowers the parameter lists of stored routines and the data types of parameters, variables and return values.

Rule: MYSQL-ROUTINE-PARAMETER-LOWERING-001. Scope: sp_fdparam_list, sp_fdparams, sp_fdparam, sp_pdparam_list, sp_pdparams, sp_pdparam, sp_opt_inout, type_with_opt_collate. The type comes from the type rules, the collation from the leaf rules. Constructs: ParameterList, Parameter. Terminates: the lists are flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function parameter(Node $parameter): Parameter

Lowers one parameter: a node of sp_fdparam or sp_pdparam.

Parameters

$parameterNode

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Called from 1
Calls 6

Private surface 3§

Implementation details, listed for orientation only.

private const MODES = ['sp_opt_inout:' => null, 'sp_opt_inout: IN_SYM' => \SqlSemantics\Platform\MySq…
private const LISTS = ['sp_fdparams: sp_fdparams , sp_fdparam', 'sp_fdparams: sp_fdparam', 'sp_pdpara…
private Lowering $lowering

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 4
Method calls 5