diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-03 17:55:25 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-03 17:55:25 +0000 |
commit | 5abc45982b5558d4c5f8753cb531a4a0858faa0f (patch) | |
tree | c22bce8448c1b61e3c00cf8d7bb6f55d94204280 /crates/ra_ide/src/references.rs | |
parent | 074474fe00a08d394cbdcac2a136bca825d93377 (diff) | |
parent | 53cab1cd21aa817a3588e64415a26b507ca00edd (diff) |
Merge #3428
3428: Move reference classification to ra_ide_db r=matklad a=matklad
Lost some marks along the way :-(
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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 | ||