2
2
use base_db:: FilePosition ;
3
3
use either:: Either ;
4
4
use hir:: { HasAttrs , HirDisplay , Semantics , Type } ;
5
- use ide_db:: RootDatabase ;
6
5
use stdx:: format_to;
7
6
use syntax:: {
8
7
ast:: { self , ArgListOwner } ,
9
8
match_ast, AstNode , SyntaxNode , SyntaxToken , TextRange , TextSize ,
10
9
} ;
11
10
use test_utils:: mark;
12
11
12
+ use crate :: RootDatabase ;
13
+
13
14
/// Contains information about a call site. Specifically the
14
15
/// `FunctionSignature`and current parameter.
15
16
#[ derive( Debug ) ]
@@ -228,9 +229,9 @@ impl FnCallNode {
228
229
229
230
#[ cfg( test) ]
230
231
mod tests {
232
+ use crate :: RootDatabase ;
231
233
use base_db:: { fixture:: ChangeFixture , FilePosition } ;
232
234
use expect_test:: { expect, Expect } ;
233
- use ide_db:: RootDatabase ;
234
235
use test_utils:: { mark, RangeOrOffset } ;
235
236
236
237
/// Creates analysis from a multi-file fixture, returns positions marked with <|>.
@@ -249,7 +250,7 @@ mod tests {
249
250
250
251
fn check ( ra_fixture : & str , expect : Expect ) {
251
252
let ( db, position) = position ( ra_fixture) ;
252
- let call_info = crate :: call_info ( & db, position) ;
253
+ let call_info = crate :: call_info:: call_info ( & db, position) ;
253
254
let actual = match call_info {
254
255
Some ( call_info) => {
255
256
let docs = match & call_info. doc {
0 commit comments