final class Tree
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Navigates grammar boundaries without flattening nested query or expression scopes.

Methods§

public static function outer(Node $node, list<string> $names): list<Node>

Parameters

$nodeNode
$nameslist<string>Nonterminals at which traversal stops

Returns

list<Node>
Test cases 3
Called from 50
Calls 3
public static function child(Node $node, list<string> $names): ?Node

Parameters

$nodeNode
$nameslist<string>Names to find among immediate children

Returns

Test cases 1
Called from 32
Calls 1
public static function text(Node|Token $node): string

Returns terminal spellings for diagnostics, without reparsing SQL.

Parameters

$nodeNode|Token

Returns

string
Test cases 3
Called from 23
Calls 2
public static function unsupported(Node|Token $node, string $context): never

Parameters

$nodeNode|Token
$contextstring

Returns

never
Test cases 1
Called from 53
Calls 2

Test cases 65§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 6
Other tests reaching this symbol 59

Relations§

Static calls 165