PDepend\Source\Language\PHP\AbstractPHPParser::parseArguments PHP Method

parseArguments() protected method

This method parses the arguments passed to a function- or method-call.
Since: 0.9.6
protected parseArguments ( ) : PDepend\Source\AST\ASTArguments
return PDepend\Source\AST\ASTArguments
    protected function parseArguments()
    {
        $this->consumeComments();
        $this->tokenStack->push();
        $arguments = $this->builder->buildAstArguments();
        $this->consumeToken(Tokens::T_PARENTHESIS_OPEN);
        $this->consumeComments();
        if (Tokens::T_PARENTHESIS_CLOSE !== $this->tokenizer->peek()) {
            $arguments = $this->parseExpressionList($arguments);
        }
        $this->consumeToken(Tokens::T_PARENTHESIS_CLOSE);
        return $this->setNodePositionsAndReturn($arguments);
    }
AbstractPHPParser