function AbstractLexer::moveNext
Moves to the next token in the input string.
@psalm-assert-if-true !null $this->lookahead
Return value
bool
3 calls to AbstractLexer::moveNext()
- AbstractLexer::skipUntil in vendor/
doctrine/ lexer/ src/ AbstractLexer.php - Tells the lexer to skip input tokens until it sees a token with the given value.
- EmailLexer::moveNext in vendor/
egulias/ email-validator/ src/ EmailLexer.php - moveNext
- EmailLexer::moveNext in vendor/
egulias/ email-validator/ src/ EmailLexer.php - moveNext
1 method overrides AbstractLexer::moveNext()
- EmailLexer::moveNext in vendor/
egulias/ email-validator/ src/ EmailLexer.php - moveNext
File
-
vendor/
doctrine/ lexer/ src/ AbstractLexer.php, line 178
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function moveNext() {
$this->peek = 0;
$this->token = $this->lookahead;
$this->lookahead = isset($this->tokens[$this->position]) ? $this->tokens[$this->position++] : null;
return $this->lookahead !== null;
}