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

Breadcrumb

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

function Lexer::isUnterminatedComment

1 call to Lexer::isUnterminatedComment()
Lexer::postprocessTokens in vendor/nikic/php-parser/lib/PhpParser/Lexer.php

File

vendor/nikic/php-parser/lib/PhpParser/Lexer.php, line 60

Class

Lexer

Namespace

PhpParser

Code

private function isUnterminatedComment(Token $token) : bool {
    return $token->is([
        \T_COMMENT,
        \T_DOC_COMMENT,
    ]) && substr($token->text, 0, 2) === '/*' && substr($token->text, -2) !== '*/';
}
RSS feed
Powered by Drupal