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> $tokens
public string $trailing

Retained directives after the last SQL token.

public list<list<int>> $candidates

Methods§

public function __construct(Node $tree, Settings $settings)

Preserves directive ownership before applying grammar-specific reductions.

Parameters

$treeNode
$settingsSettings
Calls 15
public function signature(): string

Verifies canonical terminal kinds, spellings, and retained directives.

Returns

string
Test cases 3
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private ?string $shape

Test 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

Relations§

Instantiated in 1
Type declarations 1