classTriviaScanner
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): voidSkips every whitespace and comment at the cursor.
Parameters
$scan | Scan | The tokenization in progress |
Throws
LexicalException When a block comment never closesTest cases 1
Called from 1
Calls 1
- method-call TriviaScanner::blockComment() line 36
public function blockComment(Scan $scan): voidSkips a block comment and the comments nested in it.
Parameters
$scan | Scan | The tokenization in progress, positioned on the comment |
Throws
LexicalException When the comment never closesTest cases 2
Called from 1
Calls 1
- static-call LexicalException::unterminated() line 54
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
PostgreSqlLexerTestcallsPostgreSqlParserTestcalls