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

Lowers the bit_expr level: the arithmetic and bit operators and interval arithmetic.

Rule: MYSQL-BIT-EXPR-001. Scope: bit_expr. Every operator production is left recursive; the left spine is walked in a loop and the operations are built from the innermost outwards. % and MOD are one operator. Constructs: Arithmetic, IntervalArithmetic. Terminates: the spine loop descends one left child per step; every other child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/arithmetic-functions.html, https://dev.mysql.com/doc/refman/8.4/en/bit-functions.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to

Private surface 3§

Implementation details, listed for orientation only.

private const OPERATORS = ['bit_expr: bit_expr | bit_expr' => \SqlSemantics\Platform\MySql\Statement\Expr…
private const INTERVALS = ['bit_expr: bit_expr + INTERVAL_SYM expr interval' => false, 'bit_expr: bit_exp…
private Lowering $lowering

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 2
Method calls 3