} //Check if there are open templates
if (count($this->openTemplates
)) { $this->
error("Unterminated template"
);
} } //Register comments and consume them
if ($this->comments &&
$comments) { $this->
commentsForCurrentToken($comments);
} //Emit the EndReached event when at the end of the source
$this->eventsEmitter &&
$this->eventsEmitter->
fire( "EndReached"
);
return null;
} $startPosition =
$this->
getPosition(true
);