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

Lowers routine, aggregate and operator signatures and routine parameters.

Rule: PG-SIGNATURE-LOWER-001. Scope: function_with_argtypes, function_with_argtypes_list, func_args, func_args_list, func_arg, arg_class, aggregate_with_argtypes, aggregate_with_argtypes_list, aggr_args, aggr_args_list, aggr_arg, operator_with_argtypes, operator_with_argtypes_list, oper_argtypes. Constructors: RoutineSignature, AggregateSignature, AggregateArguments, OperatorSignature, FunctionParameter. A routine named without parentheses has no argument list; () is an empty one. A parameter keeps the written order of its name and mode and the spelling of IN OUT. The operand types of an operator keep how they are written, including the single type the server rejects. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-dropfunction.html, https://www.postgresql.org/docs/17/sql-dropaggregate.html, https://www.postgresql.org/docs/17/sql-dropoperator.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function function(Node $signature): RoutineSignature

Lowers function_with_argtypes.

Parameters

$signatureNode

Throws

ImplementationGap When the production has no rule
Test cases 2
Called from 7
Calls 7
public function operator(Node $signature): OperatorSignature

Private surface 2§

Implementation details, listed for orientation only.

private const MODES = ['arg_class: IN_P' => \SqlSemantics\Platform\PostgreSql\Statement\Routine\Param…
private Lowering $lowering

Test cases 12§

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

Dedicated tests 12

Relations§

Instantiated in 15
Method calls 24