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

Breadcrumb

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

function Scanner::consumeEnd

Executes the operations to handle the end of the source scanning

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Scanner.php, line 919

Class

Scanner
Base class for scanners.

Namespace

Peast\Syntax

Code

public function consumeEnd() {
    
    //Consume final comments
    if ($this->comments) {
        $this->consumeCommentsForCurrentToken();
    }
    
    //Emit the EndReached event when at the end of the source
    $this->eventsEmitter && $this->eventsEmitter
        ->fire("EndReached");
    return $this;
}

API Navigation

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