Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/search.rs')
-rw-r--r--crates/ide-db/src/search.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide-db/src/search.rs b/crates/ide-db/src/search.rs
index c75364084e..eb4fc36438 100644
--- a/crates/ide-db/src/search.rs
+++ b/crates/ide-db/src/search.rs
@@ -54,7 +54,9 @@ impl IntoIterator for UsageSearchResult {
#[derive(Debug, Clone)]
pub struct FileReference {
+ /// The range of the reference in the original file
pub range: TextRange,
+ /// The node of the reference in the (macro-)file
pub name: ast::NameLike,
pub category: Option<ReferenceCategory>,
}