classOperatorScanner
final class OperatorScanner
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Reads SQLite's operators and punctuation.
Constants§
public const OPERATORS = ['->>' => 'PTR', '->' => 'PTR', '||' => 'CONCAT', '==' => 'EQ', '<=' => 'LE', '…Terminal by spelling, longest spellings first.
Methods§
Reads the operator at the cursor.
Parameters
$scan | Scan | The tokenization in progress |
Returns
Lexeme The lexemeThrows
LexicalException When the character starts no token at allTest cases 2
Called from 1
Calls 4
- class-const OperatorScanner::OPERATORS() line 40
- function-call
strlenline 42 - method-call Scan::lexeme() line 44
- static-call LexicalException::unexpectedCharacter() line 48
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 3
SqliteLexerTestcallsWordScannerTestcallsSqliteParserTestcalls