mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
move find_references to references
This commit is contained in:
parent
f5bb704568
commit
5173c6295b
3 changed files with 55 additions and 67 deletions
|
@ -322,7 +322,7 @@ impl Analysis {
|
|||
|
||||
/// Finds all usages of the reference at point.
|
||||
pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> {
|
||||
self.with_db(|db| db.find_all_refs(position))
|
||||
self.with_db(|db| references::find_all_refs(db, position))
|
||||
}
|
||||
|
||||
/// Returns a short text descrbing element at position.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue