mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-20 09:10:12 +00:00
internal: Bump Dependencies
This commit is contained in:
parent
0cf677ab42
commit
76ae5434fa
51 changed files with 181 additions and 168 deletions
|
@ -22,7 +22,7 @@ pub fn ancestors_at_offset(
|
|||
offset: TextSize,
|
||||
) -> impl Iterator<Item = SyntaxNode> {
|
||||
node.token_at_offset(offset)
|
||||
.map(|token| token.ancestors())
|
||||
.map(|token| token.parent_ancestors())
|
||||
.kmerge_by(|node1, node2| node1.text_range().len() < node2.text_range().len())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue