PDepend\Source\Language\PHP\AbstractPHPParser::parseOptionalMemberPrimaryPrefix PHP Метод

parseOptionalMemberPrimaryPrefix() приватный Метод

This method parses an optional member primary expression. It will parse the primary expression when an object operator can be found at the actual token stream position. Otherwise this method simply returns the input {@link \PDepend\Source\AST\ASTNode} instance.
С версии: 0.9.6
private parseOptionalMemberPrimaryPrefix ( PDepend\Source\AST\ASTNode $node ) : PDepend\Source\AST\ASTNode
$node PDepend\Source\AST\ASTNode This node represents primary prefix left expression. It will be the first child of the parsed member primary expression.
Результат PDepend\Source\AST\ASTNode
    private function parseOptionalMemberPrimaryPrefix(ASTNode $node)
    {
        $this->consumeComments();
        if ($this->tokenizer->peek() === Tokens::T_OBJECT_OPERATOR) {
            return $this->parseMemberPrimaryPrefix($node);
        }
        return $node;
    }
AbstractPHPParser