PDepend\Source\Language\PHP\PHPParserVersion56::parseExpressionVersion56 PHP Method

parseExpressionVersion56() protected method

In this method we implement parsing of PHP 5.6 specific expressions.
Since: 2.3
protected parseExpressionVersion56 ( ) : PDepend\Source\AST\ASTNode
return PDepend\Source\AST\ASTNode
    protected function parseExpressionVersion56()
    {
        $this->consumeComments();
        $nextTokenType = $this->tokenizer->peek();
        switch ($nextTokenType) {
            case Tokens::T_POW:
                $token = $this->consumeToken($nextTokenType);
                $expr = $this->builder->buildAstExpression($token->image);
                $expr->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn);
                return $expr;
        }
    }