classGrouping
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
$rules | array<string, list<string>> | Parenthesis owner to expression children |
Private surface 1§
Implementation details, listed for orientation only.
private array<string, list<string>> $rulesTest cases 17§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
GroupingTestcalls
Other tests reaching this symbol 16
DocumentTestcallsKeywordsTestcallsReductionsTestcallsRendererTestcallsRulesTestcallsSettingsTest::testInjectedSeparatorPrecedesLexerProbingcallsShapeTestcallsSpacingTestcallsTriviaTestcallsVisitorTestcallsDialectTest::testCompactRulesCanProvideAnIndependentGrammarcallsFormatterTestcallsFormatterTestcallsDialectTestcallsDialectTestcallsDialectTestcalls
Relations§
Instantiated in 3
- new SqlFormatter\Platform\MySql\Dialect::compactRules() packages/sql-formatter/src/Platform/MySql/Dialect.php:49
- new SqlFormatter\Platform\PostgreSql\Dialect::compactRules() packages/sql-formatter/src/Platform/PostgreSql/Dialect.php:49
- new SqlFormatter\Platform\Sqlite\Dialect::compactRules() packages/sql-formatter/src/Platform/Sqlite/Dialect.php:49