internal: Less file parsing for symbol index generation

This commit is contained in:
Lukas Wirth 2023-05-18 08:25:06 +02:00
parent 478705baf5
commit d6dcfa5744
5 changed files with 19 additions and 35 deletions

View file

@ -978,6 +978,7 @@ fn ascend_node_border_tokens(
let first_token = |node: &SyntaxNode| skip_trivia_token(node.first_token()?, Direction::Next);
let last_token = |node: &SyntaxNode| skip_trivia_token(node.last_token()?, Direction::Prev);
// FIXME: Once the token map rewrite is done, this shouldnt need to rely on syntax nodes and tokens anymore
let first = first_token(node)?;
let last = last_token(node)?;
let first = ascend_call_token(db, &expansion, InFile::new(file_id, first))?;