@@ -24,8 +24,8 @@ use ra_syntax::{
2424} ;
2525
2626use crate :: {
27- db:: HirDatabase , Adt , Const , EnumVariant , Function , Local , MacroDef , ModPath , ModuleDef , Path ,
28- PathKind , Static , Struct , Trait , Type , TypeAlias , TypeParam ,
27+ db:: HirDatabase , semantics :: PathResolution , Adt , Const , EnumVariant , Function , Local , MacroDef ,
28+ ModPath , ModuleDef , Path , PathKind , Static , Struct , Trait , Type , TypeAlias , TypeParam ,
2929} ;
3030
3131/// `SourceAnalyzer` is a convenience wrapper which exposes HIR API in terms of
@@ -40,19 +40,6 @@ pub(crate) struct SourceAnalyzer {
4040 scopes : Option < Arc < ExprScopes > > ,
4141}
4242
43- #[ derive( Debug , Clone , PartialEq , Eq ) ]
44- pub enum PathResolution {
45- /// An item
46- Def ( crate :: ModuleDef ) ,
47- /// A local binding (only value namespace)
48- Local ( Local ) ,
49- /// A generic parameter
50- TypeParam ( TypeParam ) ,
51- SelfType ( crate :: ImplDef ) ,
52- Macro ( MacroDef ) ,
53- AssocItem ( crate :: AssocItem ) ,
54- }
55-
5643impl SourceAnalyzer {
5744 pub ( crate ) fn new_for_body (
5845 db : & impl HirDatabase ,
0 commit comments