Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractLexer.php

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\Lexer

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal