final class SqlKeywordSequence

Finds where a run of keywords was written, at the level of the statement itself.

A clause is opened by words that only mean what they say when the statement itself says them: an ORDER BY inside a subquery orders the subquery, not the statement around it. Only a run written entirely outside parentheses counts.

Methods§

public function positionIn(
    list<SqlToken> $tokens,
    non-empty-list<string> $keywords,
    int $from,
): int|null

Test cases 6§

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

Dedicated tests 5
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Method calls 5
Type declarations 1