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

Breadcrumb

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

function TokenIterator::hasParentheses

* Whether the given position is immediately surrounded by parenthesis.

File

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

Class

TokenIterator

Namespace

PHPStan\PhpDocParser\Parser

Code

public function hasParentheses(int $startPos, int $endPos) : bool {
    return $this->hasTokenImmediatelyBefore($startPos, Lexer::TOKEN_OPEN_PARENTHESES) && $this->hasTokenImmediatelyAfter($endPos, Lexer::TOKEN_CLOSE_PARENTHESES);
}

API Navigation

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