classDialect
final class Dialect
implements Dialect
Restricted visibility: declared "@visibility SqlFormatter". Code outside that scope must not name this declaration.
Declares Sqlite grammar ownership and lexical formatting behavior.
Methods§
public function syntaxRules(): RulesDescribes layout roles across the supported grammar releases.
Returns
Test cases 15
BlockTest::testRenderFormatsNestedBlockscallsElementsTest::testWriteFormatsCaseBranchescallsHeadersTest::testLengthIncludesInterwordSpacescallsHeadersTest::testWidthExcludesNestedQueryHeaderscallsHeadersTest::testWriteAlignsRiverHeadercallsRendererTest::testRenderExpandedPreservesSpellingcallsAnalyzerTest::testVisitKeepsTokensInSourceOrdercallsDocumentTest::testFromDistinguishesFunctionAndProjectionCommascallsExpressionsTest::testMarkDistinguishesRangeAndBooleanConjunctionscallsExpressionsTest::testMarkRecordsCaseAndUnarySigncallsHeadersTest::testMarkDoesNotTreatIdentifierAsClausecallsHeadersTest::testMarkRecognizesLongestHeadercallsListsTest::testMarkKeepsFunctionArgumentCommasInlinecallsMarkersTest::testApplyPreservesBetweenConjunctioncallsDialectTest::testSyntaxRulesDeclareClauseOwnershipcalls
public function compactRules(): SettingsComposes canonicalization rules without depending on another platform.
Returns
Test cases 5
DocumentTest::testSignatureIgnoresOptionalSyntaxButPreservesOperatorAssociationcallsKeywordsTest::testFallbackPreservesSqliteIdentifierSpellingcallsRulesTest::testDefaultDoesNotDropSetAllOrDescendingOrderingcallsTriviaTest::testBlockEndRespectsTheDialectNestingRulescallsDialectTest::testCompactRulesNormalizeDeclaredTerminalAliasescalls
Test cases 37§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 35
DocumentTest::testSignatureIgnoresOptionalSyntaxButPreservesOperatorAssociationcallsGroupingTestcallsKeywordsTest::testFallbackPreservesSqliteIdentifierSpellingcallsReductionsTestcallsRendererTestcallsRulesTest::testDefaultDoesNotDropSetAllOrDescendingOrderingcallsShapeTestcallsSpacingTestcallsTriviaTest::testBlockEndRespectsTheDialectNestingRulescallsVisitorTestcallsFormatOptionsTestcallsFormattingExceptionTestcallsBlockTest::testRenderFormatsNestedBlockscallsElementsTest::testWriteFormatsCaseBranchescallsHeadersTest::testLengthIncludesInterwordSpacescallsHeadersTest::testWidthExcludesNestedQueryHeaderscallsHeadersTest::testWriteAlignsRiverHeadercallsPolicyTestcallsRendererTest::testRenderExpandedPreservesSpellingcallsSpacingTestcallsWriterTestcallsStyleTestcallsAnalyzerTest::testVisitKeepsTokensInSourceOrdercallsBracketsTestcallsDocumentTest::testFromDistinguishesFunctionAndProjectionCommascallsExpressionsTest::testMarkDistinguishesRangeAndBooleanConjunctionscallsExpressionsTest::testMarkRecordsCaseAndUnarySigncallsFingerprintTestcallsHeadersTest::testMarkDoesNotTreatIdentifierAsClausecallsHeadersTest::testMarkRecognizesLongestHeadercallsListsTest::testMarkKeepsFunctionArgumentCommasInlinecallsMarkersTest::testApplyPreservesBetweenConjunctioncallsRulesTestcallsDialectFactoryTest::testForParserUsesEachBuiltInImplementationcallsFormatterTestcalls