mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Refactor find_all_refs to return ReferenceSearchResult
This commit is contained in:
parent
edd4c1d8a6
commit
85a6bf3424
6 changed files with 127 additions and 48 deletions
|
@ -333,7 +333,7 @@ impl TryConvWith for &NavigationTarget {
|
|||
type Output = Location;
|
||||
fn try_conv_with(self, world: &ServerWorld) -> Result<Location> {
|
||||
let line_index = world.analysis().file_line_index(self.file_id());
|
||||
let range = self.focus_range().unwrap_or(self.full_range());
|
||||
let range = self.range();
|
||||
to_location(self.file_id(), range, &world, &line_index)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue