diff options
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 860e10069..75ed2de6c 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -283,8 +283,13 @@ impl SourceAnalyzer { | |||
283 | self.infer.as_ref()?.field_resolution(expr_id) | 283 | self.infer.as_ref()?.field_resolution(expr_id) |
284 | } | 284 | } |
285 | 285 | ||
286 | pub fn resolve_macro_call(&self, macro_call: &ast::MacroCall) -> Option<MacroByExampleDef> { | 286 | pub fn resolve_macro_call( |
287 | let id = self.resolver.resolve_macro_call(macro_call.path().and_then(Path::from_ast))?; | 287 | &self, |
288 | db: &impl HirDatabase, | ||
289 | macro_call: &ast::MacroCall, | ||
290 | ) -> Option<MacroByExampleDef> { | ||
291 | let id = | ||
292 | self.resolver.resolve_macro_call(db, macro_call.path().and_then(Path::from_ast))?; | ||
288 | Some(MacroByExampleDef { id }) | 293 | Some(MacroByExampleDef { id }) |
289 | } | 294 | } |
290 | 295 | ||