diff options
Diffstat (limited to 'crates/ra_ide/src/references.rs')
-rw-r--r-- | crates/ra_ide/src/references.rs | 12 |
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 | ||
12 | mod classify; | ||
13 | mod rename; | 12 | mod rename; |
14 | mod search_scope; | 13 | mod search_scope; |
15 | 14 | ||
16 | use hir::Semantics; | 15 | use hir::Semantics; |
17 | use once_cell::unsync::Lazy; | 16 | use once_cell::unsync::Lazy; |
18 | use ra_db::SourceDatabaseExt; | 17 | use ra_db::SourceDatabaseExt; |
19 | use ra_ide_db::RootDatabase; | 18 | use ra_ide_db::{ |
19 | defs::{classify_name, classify_name_ref, Definition}, | ||
20 | RootDatabase, | ||
21 | }; | ||
20 | use ra_prof::profile; | 22 | use ra_prof::profile; |
21 | use ra_syntax::{ | 23 | use 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 | ||
28 | use crate::{display::TryToNav, FilePosition, FileRange, NavigationTarget, RangeInfo}; | 30 | use crate::{display::TryToNav, FilePosition, FileRange, NavigationTarget, RangeInfo}; |
29 | 31 | ||
30 | pub(crate) use self::{ | 32 | pub(crate) use self::rename::rename; |
31 | classify::{classify_name_ref, NameRefClass}, | ||
32 | rename::rename, | ||
33 | }; | ||
34 | pub(crate) use ra_ide_db::defs::{classify_name, Definition}; | ||
35 | 33 | ||
36 | pub use self::search_scope::SearchScope; | 34 | pub use self::search_scope::SearchScope; |
37 | 35 | ||