diff options
author | Aleksey Kladov <[email protected]> | 2019-11-21 11:21:26 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-21 11:21:26 +0000 |
commit | 1312c57d342730690a0181c53f82bb3e281114ff (patch) | |
tree | 9f6cb75c787d08f86d26cbd6204c30c5cb21948c /crates/ra_hir/src/source_binder.rs | |
parent | 061e6c77b5fdb63aa1cad63f1420a7fc810fa17d (diff) |
Move ScopeDef
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 8e379498a..467e46d8c 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -23,11 +23,11 @@ use crate::{ | |||
23 | db::HirDatabase, | 23 | db::HirDatabase, |
24 | expr::{BodySourceMap, ExprScopes, ScopeId}, | 24 | expr::{BodySourceMap, ExprScopes, ScopeId}, |
25 | ids::LocationCtx, | 25 | ids::LocationCtx, |
26 | resolve::{resolver_for_scope, HasResolver, ScopeDef, TypeNs, ValueNs}, | 26 | resolve::{resolver_for_scope, HasResolver, TypeNs, ValueNs}, |
27 | ty::method_resolution::{self, implements_trait}, | 27 | ty::method_resolution::{self, implements_trait}, |
28 | Adt, AssocItem, Const, DefWithBody, Either, Enum, EnumVariant, FromSource, Function, | 28 | Adt, AssocItem, Const, DefWithBody, Either, Enum, EnumVariant, FromSource, Function, |
29 | GenericParam, HasBody, HirFileId, Local, MacroDef, Module, Name, Path, Resolver, Static, | 29 | GenericParam, HasBody, HirFileId, Local, MacroDef, Module, Name, Path, Resolver, ScopeDef, |
30 | Struct, Trait, Ty, TypeAlias, | 30 | Static, Struct, Trait, Ty, TypeAlias, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | fn try_get_resolver_for_node(db: &impl HirDatabase, node: Source<&SyntaxNode>) -> Option<Resolver> { | 33 | fn try_get_resolver_for_node(db: &impl HirDatabase, node: Source<&SyntaxNode>) -> Option<Resolver> { |