public function render(Syntax\Node\Node
$node) { //Throw exception if no formatter has been specified
if (!
$this->formatter
) { throw new \
Exception("Formatter not set"
);
} //Reset indentation level
$this->renderOpts->indLevel = 0;
//Start rendering
return $this->
renderNode($node);
} /**
* Renders a node
*
* @param Syntax\Node\Node $node Node to render
* @param bool $addSemicolon True to add semicolon after node
* rendered code
*
* @return string
*/