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

Skips the whitespace and comments between PostgreSQL tokens.

Block comments nest, so the depth is counted rather than the first closing marker taken as the end.

Methods§

public function skip(Scan $scan): void

Skips every whitespace and comment at the cursor.

Parameters

$scanScanThe tokenization in progress

Throws

LexicalException When a block comment never closes
Test cases 1
Called from 1
Calls 1
public function blockComment(Scan $scan): void

Skips a block comment and the comments nested in it.

Parameters

$scanScanThe tokenization in progress, positioned on the comment

Throws

LexicalException When the comment never closes
Test cases 2
Called from 1
Calls 1

Test cases 5§

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

Dedicated tests 3
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Method calls 1
Type declarations 1