final class ReferenceReader
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Reference Reader.

Methods§

public function referencesFromClause(string $clause): list<array{name: string, start: int, unqualifiedStart: int, end: int}>
public function closingToken(list<SqlToken> $tokens, int $openingIndex): ?SqlToken
public function referenceAt(
    string $sql,
    list<SqlToken> $tokens,
    int $index,
): array{name: string, start: int, unqualifiedStart: int, end: int}|null

Parameters

$sqlstring
$tokenslist<SqlToken>
$indexint

Returns

array{name: string, start: int, unqualifiedStart: int, end: int}|null
Test cases 1
Called from 1
Calls 2
public function identifierComponentAt(
    list<SqlToken> $tokens,
    int $index,
): array{string, int, int, int, int}|null
public function matchesKeywordSequence(
    list<SqlToken> $tokens,
    int $index,
    non-empty-list<string> $keywords,
): bool
public function parenthesizedReferences(
    string $clause,
    list<SqlToken> $tokens,
    int $index,
): list<array{name: string, start: int, unqualifiedStart: int, end: int}>

Parameters

$clausestring
$tokenslist<SqlToken>
$indexint

Returns

list<array{name: string, start: int, unqualifiedStart: int, end: int}>
Test cases 1
Called from 1
Calls 5

Test cases 25§

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

Dedicated tests 7
Other tests reaching this symbol 18

Relations§

Instantiated in 3
Method calls 3