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

Distinguishes expression grouping from row constructors, subqueries, and argument lists.

Methods§

public function __construct(private array<string, list<string>> $rules)

Parameters

$rulesarray<string, list<string>>Parenthesis owner to expression children
public function pairs(Node $tree): list<array{int, int}>

Returns expression parentheses from the innermost group outward.

Parameters

$treeNode

Returns

list<array{int, int}>
Called from 2
Calls 6

Private surface 1§

Implementation details, listed for orientation only.

private array<string, list<string>> $rules

Test cases 17§

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

Dedicated tests 1
Other tests reaching this symbol 16

Relations§

Instantiated in 3
Method calls 1
Type declarations 2