Executes the operations to handle the end of the source scanning
$this
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; }