mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 19:12:53 +00:00
JSSpecCompiler+LibXML: Store location for tokens
This commit is contained in:
parent
d219c91ca9
commit
dee4978d67
Notes:
sideshowbarker
2024-07-16 23:34:44 +09:00
Author: https://github.com/DanShaders
Commit: dee4978d67
Pull-request: https://github.com/SerenityOS/serenity/pull/22899
Reviewed-by: https://github.com/ADKaster ✅
7 changed files with 78 additions and 50 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue