Cleaned up literal

This commit is contained in:
Rafał Grodziński
2025-07-08 22:41:27 +09:00
parent 22f71bdc33
commit 707a282704
3 changed files with 25 additions and 60 deletions

View File

@@ -460,7 +460,7 @@ shared_ptr<Expression> Parser::matchExpressionLiteral() {
shared_ptr<Token> token = tokens.at(currentIndex);
if (tryMatchingTokenKinds(Token::tokensLiteral, false, true))
return make_shared<ExpressionLiteral>(token);
return ExpressionLiteral::expressionLiteralForToken(token);
return nullptr;
}