else { $body =
$this->
parseStatementList(true
);
} $node =
$this->
createNode( "Program",
$body ?:
$this->scanner->
getPosition() );
$node->
setSourceType($this->sourceType
);
if ($body) { $node->
setBody($body);
} $program =
$this->
completeNode($node);
if ($this->scanner->
getToken()) { $this->
error();
} //Execute scanner end operations
$this->scanner->
consumeEnd();
//Emit the EndParsing event and pass the resulting program node as
//event data
$this->eventsEmitter &&
$this->eventsEmitter->
fire(