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

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

This method parses an optional member primary expression. It will parse the primary expression when a double colon operator can be found at the actual token stream position. Otherwise this method simply returns the input {@link \PDepend\Source\AST\ASTNode} instance.
С версии: 1.0.1
private parseOptionalStaticMemberPrimaryPrefix ( 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 parseOptionalStaticMemberPrimaryPrefix(ASTNode $node)
    {
        $this->consumeComments();
        if ($this->tokenizer->peek() === Tokens::T_DOUBLE_COLON) {
            return $this->parseStaticMemberPrimaryPrefix($node);
        }
        return $node;
    }
AbstractPHPParser