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

Breadcrumb

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

function TokenIterator::tryConsumeTokenValue

@phpstan-impure

File

vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.php, line 177

Class

TokenIterator

Namespace

PHPStan\PhpDocParser\Parser

Code

public function tryConsumeTokenValue(string $tokenValue) : bool {
    if ($this->tokens[$this->index][Lexer::VALUE_OFFSET] !== $tokenValue) {
        return false;
    }
    $this->index++;
    $this->skipIrrelevantTokens();
    return true;
}
RSS feed
Powered by Drupal