From 4d97f5f037c1b061215d4b0fb32d48a1b8be836f Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Sat, 5 Sep 2020 03:06:05 +0200 Subject: Rename record_field_pat to record_pat_field --- crates/hir/src/semantics.rs | 8 ++++---- crates/hir/src/source_analyzer.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/hir') diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs index 1594d4f0f..0516a05b4 100644 --- a/crates/hir/src/semantics.rs +++ b/crates/hir/src/semantics.rs @@ -207,8 +207,8 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> { self.imp.resolve_record_field(field) } - pub fn resolve_record_field_pat(&self, field: &ast::RecordPatField) -> Option { - self.imp.resolve_record_field_pat(field) + pub fn resolve_record_pat_field(&self, field: &ast::RecordPatField) -> Option { + self.imp.resolve_record_pat_field(field) } pub fn resolve_macro_call(&self, macro_call: &ast::MacroCall) -> Option { @@ -433,8 +433,8 @@ impl<'db> SemanticsImpl<'db> { self.analyze(field.syntax()).resolve_record_field(self.db, field) } - fn resolve_record_field_pat(&self, field: &ast::RecordPatField) -> Option { - self.analyze(field.syntax()).resolve_record_field_pat(self.db, field) + fn resolve_record_pat_field(&self, field: &ast::RecordPatField) -> Option { + self.analyze(field.syntax()).resolve_record_pat_field(self.db, field) } fn resolve_macro_call(&self, macro_call: &ast::MacroCall) -> Option { diff --git a/crates/hir/src/source_analyzer.rs b/crates/hir/src/source_analyzer.rs index 1d13c4f1d..1aef0f33f 100644 --- a/crates/hir/src/source_analyzer.rs +++ b/crates/hir/src/source_analyzer.rs @@ -179,13 +179,13 @@ impl SourceAnalyzer { Some((struct_field.into(), local)) } - pub(crate) fn resolve_record_field_pat( + pub(crate) fn resolve_record_pat_field( &self, _db: &dyn HirDatabase, field: &ast::RecordPatField, ) -> Option { let pat_id = self.pat_id(&field.pat()?)?; - let struct_field = self.infer.as_ref()?.record_field_pat_resolution(pat_id)?; + let struct_field = self.infer.as_ref()?.record_pat_field_resolution(pat_id)?; Some(struct_field.into()) } -- cgit v1.2.3