mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 13:55:06 +00:00
JSSpecCompiler+LibXML: Store location for tokens
This commit is contained in:
parent
d219c91ca9
commit
dee4978d67
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