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

Wires the SQLite grammar releases, lowering rules and spelling rules into the analysis.

Methods§

public static function shared(): self

Shares the parser cache within this database package.

Returns

self
Test cases 33
Called from 3
Calls 1
public function profile(
    ?string $version,
    ?Mode $mode,
    ParameterStyle $parameters,
): LanguageProfile

Fixes the profile of a shipped SQLite release; SQLite reads SQL under no session mode.

Parameters

$version?string
$mode?Mode
$parametersParameterStyle

Throws

InvalidArgumentException When the release is not shipped, a mode is given, or the installed grammar artifacts differ from the pinned ones
Test cases 17
Called from 1
Calls 9
public function lower(Node $tree, LanguageProfile $profile, Leaves $leaves): list<Statement>

Lowers a parse tree into its statements.

Parameters

$treeNode
$profileLanguageProfile
$leavesLeaves

Returns

list<Statement>
Test cases 1
Called from 1
Calls 3
public function codec(LanguageProfile $profile): Codec

Answers the name codec.

Parameters

Returns

Test cases 1
Calls 1
public function leafKeys(LanguageProfile $profile): LeafKeys

Answers the token comparison keys.

Parameters

Returns

Test cases 1
Called from 1
Calls 1
public function context(
    LanguageProfile $profile,
    list<string>|null $searchPath,
    list<Table> $tables,
    bool $complete,
): AnalysisContext

Creates a context: SQLite searches temp, then main, then the attached schemas, and compares names without regard to ASCII case.

Parameters

$profileLanguageProfile
$searchPathlist<string>|null
$tableslist<Table>
$completebool

Throws

InvalidArgumentException When the path does not start with main
Test cases 2
Called from 2
Calls 6
public function statementNamespace(): string

Answers the namespace of the SQLite statement values.

Returns

string
Test cases 1
Called from 1

Private surface 2§

Implementation details, listed for orientation only.

private static ?self $shared = null
private array<string, SqlParser> $parsers = []

Test cases 51§

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

Dedicated tests 20
Other tests reaching this symbol 31

Relations§

Static calls 3
Method calls 8
Type declarations 1