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;
}