protected function parseStmt_ClassMethod(Stmt\ClassMethod $node)
{
if (!$this->currentClass instanceof Operand) {
throw new \RuntimeException("Unknown current class");
}
$this->script->functions[] = $func = new Func($node->name, $node->type | ($node->byRef ? Func::FLAG_RETURNS_REF : 0), $this->parseExprNode($node->returnType), $this->currentClass);
if ($node->stmts !== null) {
$this->parseFunc($func, $node->params, $node->stmts, null);
} else {
$func->params = $this->parseParameterList($func, $node->params);
$func->cfg = null;
}
$this->block->children[] = $class_method = new Op\Stmt\ClassMethod($func, $this->mapAttributes($node));
$func->callableOp = $class_method;
}