mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
internal: Less file parsing for symbol index generation
This commit is contained in:
parent
478705baf5
commit
d6dcfa5744
5 changed files with 19 additions and 35 deletions
|
@ -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))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue