classOperatorRule
final class OperatorRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.
Lowers the binary and prefix operator productions.
Rule: SQLITE-EXPR-OPERATOR-001. Scope: the expr productions of the binary operators, the IS family and the prefix operators. The operator is kept by its spelling and the operands in written order; the structure the parser chose is the structure built. Terminates: every operand is a strict subtree. Source: https://sqlite.org/lang_expr.html#operators_and_parse_affecting_attributes. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Calls 1
- new PredicateRule line 37
Lowers an operator expression, or passes the form on to the predicate rules.
Parameters
$form | Form |
Returns
Called from 1
Calls 13
- new Binary line 50
- static-call BinaryOperator::from() line 50
- function-call
strtoupperline 50 - method-call Form::token() line 50
- method-call Form::node() line 50
- class-const BinaryOperator::Is() line 51
- class-const BinaryOperator::IsNot() line 52
- class-const BinaryOperator::IsDistinctFrom() line 53
- class-const BinaryOperator::IsNotDistinctFrom() line 54
- new Unary line 55
- class-const UnaryOperator::Not() line 55
- static-call UnaryOperator::from() line 56
- method-call PredicateRule::expression() line 57
Private surface 2§
Implementation details, listed for orientation only.
private PredicateRule $predicatesprivate Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
OperatorRuleTestcalls