protected function parseNode(Node $node)
{
if ($node instanceof Node\Expr) {
$this->parseExprNode($node);
return;
}
$type = $node->getType();
if (method_exists($this, 'parse' . $type)) {
$this->{'parse' . $type}($node);
return;
}
throw new \RuntimeException("Unknown Stmt Node Encountered : " . $type);
}