classDocument
final class Document
Restricted visibility: declared "@visibility SqlFormatter". Code outside that scope must not name this declaration.
Builds a canonical token stream without changing the parser's immutable tree.
Properties§
public list<Token> $tokenspublic string $trailingRetained directives after the last SQL token.
public list<list<int>> $candidatesMethods§
Preserves directive ownership before applying grammar-specific reductions.
Calls 15
- new Trivia line 36
- method-call Node::tokens() line 41
- method-call Trivia::clean() line 42
- new Token line 52
- method-call Visitor::tokens() line 55
- new Visitor line 55
- function-call
countline 56 - function-call
array_popline 58 - method-call Reductions::candidates() line 62
- new Reductions line 62
- function-call
array_fill_keysline 63 - function-call
array_mergeline 63 - method-call Shape::of() line 64
- new Shape line 64
- function-call
array_columnline 64
public function signature(): stringVerifies canonical terminal kinds, spellings, and retained directives.
Returns
stringTest cases 3
Calls 1
- function-call
serializeline 72
Private surface 1§
Implementation details, listed for orientation only.
private ?string $shapeTest cases 17§
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 15
GroupingTestcallsKeywordsTestcallsReductionsTestcallsRendererTestcallsRulesTestcallsSettingsTestcallsShapeTest::testOfDistinguishesAliasAndStringConcatenationGrammarOwnerscallsSpacingTestcallsTriviaTestcallsVisitorTestcallsFormatterTestcallsFormatterTestcallsDialectTestcallsDialectTestcallsDialectTestcalls