From 2ccfb49baba6a9a0381e8a5be77df5a3c8f46205 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 25 Mar 2020 13:53:15 +0100 Subject: Always expand macros during analysis --- crates/ra_hir/src/semantics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src/semantics.rs') diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs index d982f6ffa..16a5fe968 100644 --- a/crates/ra_hir/src/semantics.rs +++ b/crates/ra_hir/src/semantics.rs @@ -173,11 +173,11 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> { } pub fn resolve_method_call(&self, call: &ast::MethodCallExpr) -> Option { - self.analyze(call.syntax()).resolve_method_call(call) + self.analyze(call.syntax()).resolve_method_call(self.db, call) } pub fn resolve_field(&self, field: &ast::FieldExpr) -> Option { - self.analyze(field.syntax()).resolve_field(field) + self.analyze(field.syntax()).resolve_field(self.db, field) } pub fn resolve_record_field( @@ -188,7 +188,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> { } pub fn resolve_record_literal(&self, record_lit: &ast::RecordLit) -> Option { - self.analyze(record_lit.syntax()).resolve_record_literal(record_lit) + self.analyze(record_lit.syntax()).resolve_record_literal(self.db, record_lit) } pub fn resolve_record_pattern(&self, record_pat: &ast::RecordPat) -> Option { -- cgit v1.2.3