private function parseCompoundExpressionOrLiteral()
{
$token = $this->consumeToken(Tokens::T_CURLY_BRACE_OPEN);
$this->consumeComments();
switch ($this->tokenizer->peek()) {
case Tokens::T_DOLLAR:
case Tokens::T_VARIABLE:
return $this->parseBraceExpression($this->builder->buildAstCompoundExpression(), $token, Tokens::T_CURLY_BRACE_CLOSE);
}
$literal = $this->builder->buildAstLiteral($token->image);
$literal->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn);
return $literal;
}