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

parseStaticReference() private method

This method parses a {@link \PDepend\Source\AST\ASTStaticReference} node.
Since: 0.9.6
private parseStaticReference ( PDepend\Source\Tokenizer\Token $token ) : PDepend\Source\AST\ASTStaticReference
$token PDepend\Source\Tokenizer\Token The "static" keyword token.
return PDepend\Source\AST\ASTStaticReference
    private function parseStaticReference(Token $token)
    {
        // Strip optional comments
        $this->consumeComments();
        if ($this->classOrInterface === null) {
            throw new InvalidStateException($token->startLine, (string) $this->compilationUnit, 'The keyword "static" was used outside of a class/method scope.');
        }
        $ref = $this->builder->buildAstStaticReference($this->classOrInterface);
        $ref->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn);
        return $ref;
    }
AbstractPHPParser