mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
JSSpecCompiler+LibXML: Store location for tokens
This commit is contained in:
committed by
Andrew Kaster
parent
d219c91ca9
commit
dee4978d67
@@ -226,7 +226,7 @@ ParseErrorOr<Tree> TextParser::parse_expression()
|
||||
|
||||
if (token.type == TokenType::ParenOpen) {
|
||||
if (last_element_type == ExpressionType)
|
||||
stack.append(Token { TokenType::FunctionCall, ""sv, m_node });
|
||||
stack.append(Token { TokenType::FunctionCall, ""sv, token.node, token.location });
|
||||
stack.append(token);
|
||||
|
||||
if (m_next_token_index + 1 < m_tokens.size()
|
||||
|
||||
Reference in New Issue
Block a user