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

parseSelfReference() защищенный Метод

This method parses a {@link \PDepend\Source\AST\ASTSelfReference} node.
С версии: 0.9.6
protected parseSelfReference ( PDepend\Source\Tokenizer\Token $token ) : PDepend\Source\AST\ASTSelfReference
$token PDepend\Source\Tokenizer\Token The "self" keyword token.
Результат PDepend\Source\AST\ASTSelfReference
    protected function parseSelfReference(Token $token)
    {
        if ($this->classOrInterface === null) {
            throw new InvalidStateException($token->startLine, (string) $this->compilationUnit, 'The keyword "self" was used outside of a class/method scope.');
        }
        $ref = $this->builder->buildAstSelfReference($this->classOrInterface);
        $ref->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn);
        return $ref;
    }
AbstractPHPParser