move find_references to references

This commit is contained in:
Aleksey Kladov 2019-02-08 14:06:26 +03:00
parent f5bb704568
commit 5173c6295b
3 changed files with 55 additions and 67 deletions

View file

@ -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.