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

The entry rules of the call family: the methods other families and the statement dispatcher call.

Rule: MYSQL-CALL-ENTRY-001. Scope: function calls, aggregates, window functions and specifications, and JSON_TABLE columns. A function-like expression is handed to the rule of its production: FunctionRule (keyword functions, CHAR, TRIM, POSITION and calls written as name(...)), TemporalRule (clock functions and the temporal special syntaxes), WeightRule (WEIGHT_STRING), JsonRule (JSON_VALUE and the JSON_TABLE columns), AggregateRule (set functions) and WindowRule (window functions and windows). The unit productions function_call_conflict: geometry_function and the two alternatives of set_function_specification forward to their only child. The method names, parameters and return types are fixed by the family plan. Terminates: each method lowers a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/functions.html. Status: Implemented.

Properties§

public Lowering $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
Calls 2
public function call(Node $call): Scalar

Lowers a function-like expression: a node of function_call_keyword, function_call_nonkeyword, function_call_generic, function_call_conflict, sum_expr, set_function_specification or window_func_call.

Parameters

$callNode

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Called from 1
Calls 7
public function function(Form $form): Scalar

Lowers a function call production of function_call_keyword, function_call_nonkeyword, function_call_conflict, geometry_function, grouping_operation or function_call_generic.

Parameters

$formForm

Returns

Throws

ImplementationGap When the production has no rule
Test cases 2
Called from 1
Calls 12
public function currentTimestamp(Node $now): Scalar

Lowers the current timestamp function of a column default or ON UPDATE clause: a node of now.

Parameters

$nowNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 1
Calls 2
public function windowName(Node $name): Name

Lowers a window name: a node of window_name.

Parameters

$nameNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 1
Calls 1
public function windowSpecification(Node $specification): WindowSpecification

Lowers a window specification: a node of window_spec.

Parameters

$specificationNode

Throws

ImplementationGap When a production has no rule
Test cases 1
Calls 1
public function jsonTableColumns(Node $columns): list<JsonTableColumn>

Lowers the COLUMNS clause of JSON_TABLE: a node of columns_clause.

Parameters

$columnsNode

Returns

Throws

ImplementationGap When a production has no rule
Test cases 1
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private FrameRule $frames
private WindowRule $windows

Test cases 7§

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

Dedicated tests 7

Relations§

Instantiated in 1
Type declarations 1