aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/references.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/references.rs')
-rw-r--r--crates/ra_ide/src/references.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/crates/ra_ide/src/references.rs b/crates/ra_ide/src/references.rs
index 95a5c1914..67be3f6c9 100644
--- a/crates/ra_ide/src/references.rs
+++ b/crates/ra_ide/src/references.rs
@@ -9,14 +9,16 @@
9//! at the index that the match starts at and its tree parent is 9//! at the index that the match starts at and its tree parent is
10//! resolved to the search element definition, we get a reference. 10//! resolved to the search element definition, we get a reference.
11 11
12mod classify;
13mod rename; 12mod rename;
14mod search_scope; 13mod search_scope;
15 14
16use hir::Semantics; 15use hir::Semantics;
17use once_cell::unsync::Lazy; 16use once_cell::unsync::Lazy;
18use ra_db::SourceDatabaseExt; 17use ra_db::SourceDatabaseExt;
19use ra_ide_db::RootDatabase; 18use ra_ide_db::{
19 defs::{classify_name, classify_name_ref, Definition},
20 RootDatabase,
21};
20use ra_prof::profile; 22use ra_prof::profile;
21use ra_syntax::{ 23use ra_syntax::{
22 algo::find_node_at_offset, 24 algo::find_node_at_offset,
@@ -27,11 +29,7 @@ use test_utils::tested_by;
27 29
28use crate::{display::TryToNav, FilePosition, FileRange, NavigationTarget, RangeInfo}; 30use crate::{display::TryToNav, FilePosition, FileRange, NavigationTarget, RangeInfo};
29 31
30pub(crate) use self::{ 32pub(crate) use self::rename::rename;
31 classify::{classify_name_ref, NameRefClass},
32 rename::rename,
33};
34pub(crate) use ra_ide_db::defs::{classify_name, Definition};
35 33
36pub use self::search_scope::SearchScope; 34pub use self::search_scope::SearchScope;
37 35