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

parseMemberPrefixOrFunctionPostfix() private method

A member primary prefix can be a method call: $object->foo(); clazz::foo(); a property access: $object->foo; clazz::$foo; or a class constant access: clazz::FOO; A function postfix represents any kind of function call: $function(); func();
Since: 0.9.6
private parseMemberPrefixOrFunctionPostfix ( ) : PDepend\Source\AST\ASTNode
return PDepend\Source\AST\ASTNode
    private function parseMemberPrefixOrFunctionPostfix()
    {
        $this->tokenStack->push();
        $this->tokenStack->push();
        $qName = $this->parseQualifiedName();
        // Remove comments
        $this->consumeComments();
        // Get next token type
        $tokenType = $this->tokenizer->peek();
        switch ($tokenType) {
            case Tokens::T_DOUBLE_COLON:
                $node = $this->builder->buildAstClassOrInterfaceReference($qName);
                $node = $this->setNodePositionsAndReturn($node);
                $node = $this->parseStaticMemberPrimaryPrefix($node);
                break;
            case Tokens::T_PARENTHESIS_OPEN:
                $node = $this->builder->buildAstIdentifier($qName);
                $node = $this->setNodePositionsAndReturn($node);
                $node = $this->parseFunctionPostfix($node);
                break;
            default:
                $node = $this->builder->buildAstConstant($qName);
                $node = $this->setNodePositionsAndReturn($node);
                break;
        }
        return $this->setNodePositionsAndReturn($node);
    }
AbstractPHPParser