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

The entry point of the routine family: functions, procedures, aggregates, operators, operator classes and the generic object commands.

Rule: PG-ROUTINE-001. Every other family reaches the routine rules through these methods: PG-FUNCTION-LOWER-001, PG-ROUTINE-OPTION-LOWER-001, PG-SIGNATURE-LOWER-001, PG-DEFINE-LOWER-001, PG-OPCLASS-LOWER-001, PG-DROP-LOWER-001, PG-COMMENT-LOWER-001, PG-RENAME-LOWER-001, PG-ALTER-OBJECT-LOWER-001 and PG-OBJECT-LOWER-001. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function statement(Node $statement): Statement
public function functionSignature(Node $signature): RoutineSignature

Lowers function_with_argtypes: a routine named with or without its argument types.

Parameters

$signatureNode
Calls 2
public function functionSignatures(Node $list): list<RoutineSignature>

Lowers function_with_argtypes_list.

Parameters

$listNode

Returns

Calls 2
public function aggregateSignature(Node $signature): AggregateSignature

Lowers aggregate_with_argtypes.

Parameters

$signatureNode
Calls 2
public function aggregateSignatures(Node $list): list<AggregateSignature>

Lowers aggregate_with_argtypes_list.

Parameters

$listNode

Returns

Calls 2
public function operatorSignature(Node $signature): OperatorSignature

Lowers operator_with_argtypes.

Parameters

$signatureNode
Calls 2
public function operatorSignatures(Node $list): list<OperatorSignature>

Lowers operator_with_argtypes_list.

Parameters

$listNode

Returns

Calls 2
public function objectKind(Node $kind): ObjectKind

Lowers an object kind: object_type_any_name, object_type_name, drop_type_name or object_type_name_on_any_name.

Parameters

$kindNode

Returns

Calls 2
public function attributeChanges(
    Node $list,
    class-string<KnownAttribute> $command,
): list<AttributeChange>

Lowers operator_def_list: the attributes written in ALTER OPERATOR ... SET and ALTER TYPE ... SET, read as the command whose attribute set is given reads them.

Parameters

$listNode
$commandclass-string<KnownAttribute>

Returns

Calls 2

Private surface 1§

Implementation details, listed for orientation only.

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
Method calls 1
Type declarations 1