From aff9102afb2b6756b3935dedb9be30401975b262 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 12 Jan 2021 15:56:24 +0100 Subject: Rename FileReferences -> UsageSearchResult --- crates/ide/src/references.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ide/src') diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs index c7943dc95..7d4757e02 100644 --- a/crates/ide/src/references.rs +++ b/crates/ide/src/references.rs @@ -15,7 +15,7 @@ use hir::Semantics; use ide_db::{ base_db::FileId, defs::{Definition, NameClass, NameRefClass}, - search::{FileReference, FileReferences, ReferenceAccess, ReferenceKind, SearchScope}, + search::{FileReference, ReferenceAccess, ReferenceKind, SearchScope, UsageSearchResult}, RootDatabase, }; use syntax::{ @@ -29,7 +29,7 @@ use crate::{display::TryToNav, FilePosition, FileRange, NavigationTarget, RangeI #[derive(Debug, Clone)] pub struct ReferenceSearchResult { declaration: Declaration, - references: FileReferences, + references: UsageSearchResult, } #[derive(Debug, Clone)] @@ -48,11 +48,11 @@ impl ReferenceSearchResult { &self.declaration.nav } - pub fn references(&self) -> &FileReferences { + pub fn references(&self) -> &UsageSearchResult { &self.references } - pub fn references_with_declaration(mut self) -> FileReferences { + pub fn references_with_declaration(mut self) -> UsageSearchResult { let decl_ref = FileReference { range: self.declaration.nav.focus_or_full_range(), kind: self.declaration.kind, @@ -315,7 +315,7 @@ fn try_find_self_references( .collect() }) .unwrap_or_default(); - let mut references = FileReferences::default(); + let mut references = UsageSearchResult::default(); references.references.insert(file_id, refs); Some(RangeInfo::new( -- cgit v1.2.3