File tree 1 file changed +9
-9
lines changed 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ use crate::{
13
13
CrateId , ModuleDefId , ModuleId ,
14
14
} ;
15
15
16
+ // FIXME: handle local items
17
+
18
+ /// Find a path that can be used to refer to a certain item. This can depend on
19
+ /// *from where* you're referring to the item, hence the `from` parameter.
20
+ pub fn find_path ( db : & dyn DefDatabase , item : ItemInNs , from : ModuleId ) -> Option < ModPath > {
21
+ let _p = ra_prof:: profile ( "find_path" ) ;
22
+ find_path_inner ( db, item, from, MAX_PATH_LEN )
23
+ }
24
+
16
25
const MAX_PATH_LEN : usize = 15 ;
17
26
18
27
impl ModPath {
@@ -39,15 +48,6 @@ impl ModPath {
39
48
}
40
49
}
41
50
42
- // FIXME: handle local items
43
-
44
- /// Find a path that can be used to refer to a certain item. This can depend on
45
- /// *from where* you're referring to the item, hence the `from` parameter.
46
- pub fn find_path ( db : & dyn DefDatabase , item : ItemInNs , from : ModuleId ) -> Option < ModPath > {
47
- let _p = ra_prof:: profile ( "find_path" ) ;
48
- find_path_inner ( db, item, from, MAX_PATH_LEN )
49
- }
50
-
51
51
fn find_path_inner (
52
52
db : & dyn DefDatabase ,
53
53
item : ItemInNs ,
You can’t perform that action at this time.
0 commit comments