classListRule
final class ListRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
Lowers comma-separated expression lists.
Rule: MYSQL-EXPRESSION-LIST-001. Scope: expr_list, opt_expr_list. An absent list is empty; the elements keep their order. Terminates: the list spine is flattened in a loop. Source: https://dev.mysql.com/doc/refman/8.4/en/expressions.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
public function expressions(Node $list): list<Scalar>Lowers a node of expr_list or opt_expr_list.
Parameters
$list | Node |
Returns
list<Scalar>Throws
ImplementationGap When a production has no ruleTest cases 1
Called from 1
Calls 4
- method-call Lowering::form() line 41
- static-call ImplementationGap::production() line 50
- method-call Lists::items() line 53
- new Lists line 53
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.