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

Breadcrumb

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

function ParserAbstract::handleHaltCompiler

File

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

Class

ParserAbstract

Namespace

PhpParser

Code

protected function handleHaltCompiler() : string {
    // Prevent the lexer from returning any further tokens.
    $nextToken = $this->tokens[$this->tokenPos + 1];
    $this->tokenPos = \count($this->tokens) - 2;
    // Return text after __halt_compiler.
    return $nextToken->id === \T_INLINE_HTML ? $nextToken->text : '';
}

API Navigation

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