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

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

Rule: MYSQL-EXPRESSION-ENTRY-001. Scope: expr, bool_pri, predicate, bit_expr, simple_expr, operators, CASE, casts, intervals, row constructors, subquery expressions and MATCH. A method delegates to the rule class of the level it lowers: MYSQL-CONDITION-001, MYSQL-PREDICATE-001, MYSQL-BIT-EXPR-001, MYSQL-SIMPLE-EXPR-001, MYSQL-EXPRESSION-LIST-001 and MYSQL-INTERVAL-UNIT-001. Source: https://dev.mysql.com/doc/refman/8.4/en/expressions.html. Status: Implemented.

Properties§

public Lowering $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function expression(Node $expression): Scalar

Lowers an expression: a node of expr.

Parameters

$expressionNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 2
public function bitExpression(Node $expression): Scalar

Lowers an arithmetic or bit expression: a node of bit_expr.

Parameters

$expressionNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function simpleExpression(Node $expression): Scalar

Lowers a primary expression: a node of simple_expr.

Parameters

$expressionNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function expressions(Node $list): list<Scalar>

Lowers a comma-separated expression list: a node of expr_list or opt_expr_list; an absent list is empty.

Parameters

$listNode

Returns

list<Scalar>

Throws

ImplementationGap When a production has no rule
Calls 2
public function intervalUnit(Node $unit): IntervalUnit

Lowers an interval unit: a node of interval or interval_time_stamp.

Parameters

$unitNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 2
public function interval(Node $quantity, Node $unit): Interval

Lowers the interval INTERVAL quantity unit from the node of its quantity (expr) and of its unit (interval).

Parameters

$quantityNode
$unitNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 3

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1