PHPCfg\Parser::parseStmt_Function PHP Method

parseStmt_Function() protected method

protected parseStmt_Function ( Function_ $node )
$node PhpParser\Node\Stmt\Function_
    protected function parseStmt_Function(Stmt\Function_ $node)
    {
        $this->script->functions[] = $func = new Func($node->namespacedName->toString(), $node->byRef ? Func::FLAG_RETURNS_REF : 0, $this->parseExprNode($node->returnType), null);
        $this->parseFunc($func, $node->params, $node->stmts, null);
        $this->block->children[] = $function = new Op\Stmt\Function_($func, $this->mapAttributes($node));
        $func->callableOp = $function;
    }
Parser