final class Operators
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers operator names.

Rule: PG-OPERATOR-NAME-001. Scope: all_Op, MathOp, qual_Op, qual_all_Op, any_operator, and the operator tokens the expression grammar writes inline. Constructor: OperatorName. The name is the operator text; the token != is the operator <>, as the scanner converts it. OPERATOR(schema.op) keeps its qualifiers and the fact that the syntax was used. Termination: the qualifier chain is walked iteratively. Source: https://www.postgresql.org/docs/17/sql-syntax-lexical.html#SQL-SYNTAX-OPERATORS. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function symbol(Token $operator): Name

Private surface 3§

Implementation details, listed for orientation only.

private const SYMBOLS = ['+' => '+', '-' => '-', '*' => '*', '/' => '/', '%' => '%', '^' => '^', '<' =>…
private const MATH = ['MathOp: +', 'MathOp: -', 'MathOp: *', 'MathOp: /', 'MathOp: %', 'MathOp: ^', …
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 1
Type declarations 1