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

parseMethodOrPropertyPostfix() private method

This method parses a method- or property-postfix expression. This expression will contain the given node as method or property identifier.
Since: 0.9.6
private parseMethodOrPropertyPostfix ( PDepend\Source\AST\ASTNode $node ) : PDepend\Source\AST\ASTNode
$node PDepend\Source\AST\ASTNode The identifier for the parsed postfix expression node. This node will be the first child of the returned postfix node instance.
return PDepend\Source\AST\ASTNode
    private function parseMethodOrPropertyPostfix(ASTNode $node)
    {
        // Strip optional comments
        $this->consumeComments();
        switch ($this->tokenizer->peek()) {
            case Tokens::T_PARENTHESIS_OPEN:
                $postfix = $this->parseMethodPostfix($node);
                break;
            default:
                $postfix = $this->parsePropertyPostfix($node);
                break;
        }
        return $this->parseOptionalMemberPrimaryPrefix($postfix);
    }
AbstractPHPParser