public function visit(Ast $ast) { if ($method = $this->getMethodByClass($ast)) { return call_user_func($method, $ast); } return TRUE; }