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

Breadcrumb

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

function ParserAbstract::maybeCreateNop

File

vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php, line 942

Class

ParserAbstract

Namespace

PhpParser

Code

protected function maybeCreateNop(int $tokenStartPos, int $tokenEndPos) : ?Nop {
    if ($this->getCommentBeforeToken($tokenStartPos) === null) {
        return null;
    }
    return new Nop($this->getAttributes($tokenStartPos, $tokenEndPos));
}

API Navigation

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