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

Breadcrumb

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

function DocLexer::nextTokenIsAdjacent

Whether the next token starts immediately, or if there were non-captured symbols before that

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php, line 69

Class

DocLexer
Simple lexer for docblock annotations.

Namespace

Doctrine\Common\Annotations

Code

public function nextTokenIsAdjacent() : bool {
    return $this->token === null || $this->lookahead !== null && $this->lookahead->position - $this->token->position === strlen($this->token->value);
}

API Navigation

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