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

parseLiteral() protected method

This method parses a simple literal and configures the position properties.
Since: 0.9.10
protected parseLiteral ( ) : PDepend\Source\AST\ASTLiteral
return PDepend\Source\AST\ASTLiteral
    protected function parseLiteral()
    {
        $token = $this->consumeToken($this->tokenizer->peek());
        $node = $this->builder->buildAstLiteral($token->image);
        $node->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn);
        return $node;
    }
AbstractPHPParser