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

parseParenthesisExpressionOrPrimaryPrefix() protected method

(new MyClass())->bar();
Since: 1.0.0
protected parseParenthesisExpressionOrPrimaryPrefix ( ) : PDepend\Source\AST\ASTNode
return PDepend\Source\AST\ASTNode
    protected function parseParenthesisExpressionOrPrimaryPrefix()
    {
        $expr = $this->parseParenthesisExpression();
        $this->consumeComments();
        if (Tokens::T_OBJECT_OPERATOR === $this->tokenizer->peek()) {
            return $this->parseMemberPrimaryPrefix($expr->getChild(0));
        }
        return $expr;
    }
AbstractPHPParser