Pinq\Parsing\PhpParser\AST::parseFunctionCallNode PHP Method

parseFunctionCallNode() private method

private parseFunctionCallNode ( PhpParser\Node\Expr\FuncCall $node )
$node PhpParser\Node\Expr\FuncCall
    private function parseFunctionCallNode(Node\Expr\FuncCall $node)
    {
        $nameExpression = $this->parseNameNode($node->name);
        if ($nameExpression instanceof O\TraversalExpression || $nameExpression instanceof O\VariableExpression) {
            return Expression::invocation($nameExpression, $this->parseNodes($node->args));
        } else {
            return Expression::functionCall($nameExpression, $this->parseNodes($node->args));
        }
    }