classSettings
final class Settings
Restricted visibility: declared "@visibility SqlFormatter". Code outside that scope must not name this declaration.
Grammar-specific canonicalization inputs, independent of parser selection.
Properties§
public Keywords $keywordspublic Rules $rulespublic Grouping $groupingpublic array<string, string|null> $aliasespublic Closure(string, int, int, int, bool): bool $nestingMethods§
public function __construct(
public Keywords $keywords,
public Rules $rules,
public Grouping $grouping,
public array<string, string|null> $aliases,
public Closure(string, int, int, int, bool): bool $nesting,
public Closure(Token, Token, Token|null): string|null $separator,
)Parameters
$keywords | Keywords | |
$rules | Rules | |
$grouping | Grouping | |
$aliases | array<string, string|null> | Alias rule to required parent, or any parent |
$nesting | Closure(string, int, int, int, bool): bool | Whether an inner block comment nests |
$separator | Closure(Token, Token, Token|null): string|null | Required lexical separator, or the lexer decision |
Test cases 36§
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 35
DocumentTestcallsGroupingTestcallsKeywordsTestcallsReductionsTestcallsRendererTestcallsRulesTestcallsShapeTestcallsSpacingTestcallsTriviaTestcallsVisitorTestcallsDialectTest::testCompactRulesCanProvideAnIndependentGrammarcallsFormatOptionsTestcallsFormatterTestcallsFormattingExceptionTestcallsBlockTestcallsElementsTestcallsHeadersTestcallsPolicyTestcallsRendererTestcallsSpacingTestcallsWriterTestcallsStyleTestcallsAnalyzerTestcallsBracketsTestcallsDocumentTestcallsExpressionsTestcallsFingerprintTestcallsHeadersTestcallsListsTestcallsMarkersTestcallsRulesTestcallsFormatterTestcallsDialectTestcallsDialectTestcallsDialectTestcalls
Relations§
Instantiated in 3
- new SqlFormatter\Platform\MySql\Dialect::compactRules() packages/sql-formatter/src/Platform/MySql/Dialect.php:46
- new SqlFormatter\Platform\PostgreSql\Dialect::compactRules() packages/sql-formatter/src/Platform/PostgreSql/Dialect.php:46
- new SqlFormatter\Platform\Sqlite\Dialect::compactRules() packages/sql-formatter/src/Platform/Sqlite/Dialect.php:46
Type declarations 8
- type SqlFormatter\Core\Compact\Document packages/sql-formatter/src/Core/Compact/Document.php:34
- type SqlFormatter\Core\Compact\Renderer packages/sql-formatter/src/Core/Compact/Renderer.php:29
- type SqlFormatter\Core\Compact\Spacing packages/sql-formatter/src/Core/Compact/Spacing.php:21
- type SqlFormatter\Core\Compact\Visitor packages/sql-formatter/src/Core/Compact/Visitor.php:22
- type SqlFormatter\Core\Dialect packages/sql-formatter/src/Core/Dialect.php:25
- type SqlFormatter\Platform\MySql\Dialect packages/sql-formatter/src/Platform/MySql/Dialect.php:44
- type SqlFormatter\Platform\PostgreSql\Dialect packages/sql-formatter/src/Platform/PostgreSql/Dialect.php:44
- type SqlFormatter\Platform\Sqlite\Dialect packages/sql-formatter/src/Platform/Sqlite/Dialect.php:44