aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_definition.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/goto_definition.rs')
-rw-r--r--crates/ra_ide/src/goto_definition.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs
index 6f0dbe065..4a8107d60 100644
--- a/crates/ra_ide/src/goto_definition.rs
+++ b/crates/ra_ide/src/goto_definition.rs
@@ -1,7 +1,10 @@
1//! FIXME: write short doc here 1//! FIXME: write short doc here
2 2
3use hir::Semantics; 3use hir::Semantics;
4use ra_ide_db::{defs::classify_name, symbol_index, RootDatabase}; 4use ra_ide_db::{
5 defs::{classify_name, classify_name_ref},
6 symbol_index, RootDatabase,
7};
5use ra_syntax::{ 8use ra_syntax::{
6 ast::{self}, 9 ast::{self},
7 match_ast, AstNode, 10 match_ast, AstNode,
@@ -11,7 +14,6 @@ use ra_syntax::{
11 14
12use crate::{ 15use crate::{
13 display::{ToNav, TryToNav}, 16 display::{ToNav, TryToNav},
14 references::classify_name_ref,
15 FilePosition, NavigationTarget, RangeInfo, 17 FilePosition, NavigationTarget, RangeInfo,
16}; 18};
17 19
@@ -94,7 +96,7 @@ pub(crate) fn reference_definition(
94 96
95#[cfg(test)] 97#[cfg(test)]
96mod tests { 98mod tests {
97 use test_utils::{assert_eq_text, covers}; 99 use test_utils::assert_eq_text;
98 100
99 use crate::mock_analysis::analysis_and_position; 101 use crate::mock_analysis::analysis_and_position;
100 102