1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:35:09 +00:00

JSSpecCompiler: Do not store XML::Node in tokens

This commit is contained in:
Dan Klishch 2024-01-20 20:58:43 -05:00 committed by Andrew Kaster
parent 94f5086b93
commit 7945c9d808
3 changed files with 12 additions and 13 deletions

View file

@ -262,7 +262,7 @@ TextParseErrorOr<Tree> TextParser::parse_expression()
if (token.type == TokenType::ParenOpen) {
if (last_element_type == ExpressionType)
stack.append(Token { TokenType::FunctionCall, ""sv, token.node, token.location });
stack.append(Token { TokenType::FunctionCall, ""sv, token.location });
stack.append(token);
if (m_next_token_index + 1 < m_tokens.size()