@@ -6,14 +6,14 @@ use ruff_index::newtype_index;
6
6
use ruff_python_ast as ast;
7
7
8
8
use crate :: name:: Name ;
9
- use crate :: red_knot :: semantic_index:: ast_ids:: { AstIdNode , ScopeAstIdNode } ;
10
- use crate :: red_knot :: semantic_index:: symbol:: { FileScopeId , PublicSymbolId , ScopeId } ;
11
- use crate :: red_knot :: semantic_index:: {
9
+ use crate :: semantic_index:: ast_ids:: { AstIdNode , ScopeAstIdNode } ;
10
+ use crate :: semantic_index:: symbol:: { FileScopeId , PublicSymbolId , ScopeId } ;
11
+ use crate :: semantic_index:: {
12
12
public_symbol, root_scope, semantic_index, symbol_table, NodeWithScopeId ,
13
13
} ;
14
- use crate :: red_knot:: types:: infer:: { TypeInference , TypeInferenceBuilder } ;
15
- use crate :: red_knot:: FxIndexSet ;
14
+ use crate :: types:: infer:: { TypeInference , TypeInferenceBuilder } ;
16
15
use crate :: Db ;
16
+ use crate :: FxIndexSet ;
17
17
18
18
mod display;
19
19
mod infer;
@@ -62,7 +62,7 @@ pub(crate) fn expression_ty(db: &dyn Db, file: VfsFile, expression: &ast::Expr)
62
62
/// This being a query ensures that the invalidation short-circuits if the type of this symbol didn't change.
63
63
#[ salsa:: tracked]
64
64
pub ( crate ) fn public_symbol_ty ( db : & dyn Db , symbol : PublicSymbolId ) -> Type {
65
- let _ = tracing:: debug_span!( "public_symbol_ty" , "{:?}" , symbol. debug( db) ) ;
65
+ let _ = tracing:: debug_span!( "public_symbol_ty" , symbol = ? symbol. debug( db) ) . enter ( ) ;
66
66
67
67
let file = symbol. file ( db) ;
68
68
let scope = root_scope ( db, file) ;
@@ -71,7 +71,7 @@ pub(crate) fn public_symbol_ty(db: &dyn Db, symbol: PublicSymbolId) -> Type {
71
71
inference. symbol_ty ( symbol. scoped_symbol_id ( db) )
72
72
}
73
73
74
- /// Shorthand for [ `public_symbol_ty()`] that takes a symbol name instead of a [`PublicSymbolId`].
74
+ /// Shorthand for `public_symbol_ty` that takes a symbol name instead of a [`PublicSymbolId`].
75
75
pub fn public_symbol_ty_by_name ( db : & dyn Db , file : VfsFile , name : & str ) -> Option < Type > {
76
76
let symbol = public_symbol ( db, file, name) ?;
77
77
Some ( public_symbol_ty ( db, symbol) )
@@ -500,10 +500,8 @@ mod tests {
500
500
assert_will_not_run_function_query, assert_will_run_function_query, TestDb ,
501
501
} ;
502
502
use crate :: module:: resolver:: { set_module_resolution_settings, ModuleResolutionSettings } ;
503
- use crate :: red_knot:: semantic_index:: root_scope;
504
- use crate :: red_knot:: types:: {
505
- expression_ty, infer_types, public_symbol_ty_by_name, TypingContext ,
506
- } ;
503
+ use crate :: semantic_index:: root_scope;
504
+ use crate :: types:: { expression_ty, infer_types, public_symbol_ty_by_name, TypingContext } ;
507
505
508
506
fn setup_db ( ) -> TestDb {
509
507
let mut db = TestDb :: new ( ) ;
0 commit comments