diff options
author | Aleksey Kladov <[email protected]> | 2019-11-21 11:13:49 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-21 11:13:49 +0000 |
commit | 061e6c77b5fdb63aa1cad63f1420a7fc810fa17d (patch) | |
tree | c24ffc3fe582c84ad78be3129aef472253b5d9f7 /crates/ra_hir/src/source_binder.rs | |
parent | 621cf06156975f8bd75e35af46da034f72e11fad (diff) |
Decouple
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 09df4f0aa..8e379498a 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -35,19 +35,19 @@ fn try_get_resolver_for_node(db: &impl HirDatabase, node: Source<&SyntaxNode>) - | |||
35 | match (node.value) { | 35 | match (node.value) { |
36 | ast::Module(it) => { | 36 | ast::Module(it) => { |
37 | let src = node.with_value(it); | 37 | let src = node.with_value(it); |
38 | Some(crate::Module::from_declaration(db, src)?.resolver(db)) | 38 | Some(crate::Module::from_declaration(db, src)?.id.resolver(db)) |
39 | }, | 39 | }, |
40 | ast::SourceFile(it) => { | 40 | ast::SourceFile(it) => { |
41 | let src = node.with_value(crate::ModuleSource::SourceFile(it)); | 41 | let src = node.with_value(crate::ModuleSource::SourceFile(it)); |
42 | Some(crate::Module::from_definition(db, src)?.resolver(db)) | 42 | Some(crate::Module::from_definition(db, src)?.id.resolver(db)) |
43 | }, | 43 | }, |
44 | ast::StructDef(it) => { | 44 | ast::StructDef(it) => { |
45 | let src = node.with_value(it); | 45 | let src = node.with_value(it); |
46 | Some(Struct::from_source(db, src)?.resolver(db)) | 46 | Some(Struct::from_source(db, src)?.id.resolver(db)) |
47 | }, | 47 | }, |
48 | ast::EnumDef(it) => { | 48 | ast::EnumDef(it) => { |
49 | let src = node.with_value(it); | 49 | let src = node.with_value(it); |
50 | Some(Enum::from_source(db, src)?.resolver(db)) | 50 | Some(Enum::from_source(db, src)?.id.resolver(db)) |
51 | }, | 51 | }, |
52 | _ => match node.value.kind() { | 52 | _ => match node.value.kind() { |
53 | FN_DEF | CONST_DEF | STATIC_DEF => { | 53 | FN_DEF | CONST_DEF | STATIC_DEF => { |