From 34322ea9a3bc9ca2be4724447ca61e8bd9d09e30 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Tue, 11 Jun 2019 00:34:43 +0800 Subject: Use classify_name_ref in hover --- crates/ra_ide_api/src/display/navigation_target.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src/display') diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs index 983ebe788..cfd3f5478 100644 --- a/crates/ra_ide_api/src/display/navigation_target.rs +++ b/crates/ra_ide_api/src/display/navigation_target.rs @@ -413,7 +413,7 @@ impl NavigationTarget { } } -fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option { +pub(crate) fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option { let file = db.parse(symbol.file_id).tree; let node = symbol.ptr.to_node(file.syntax()).to_owned(); @@ -439,7 +439,7 @@ fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option { /// Get a description of a symbol. /// /// e.g. `struct Name`, `enum Name`, `fn Name` -fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option { +pub(crate) fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option { let file = db.parse(symbol.file_id).tree; let node = symbol.ptr.to_node(file.syntax()).to_owned(); -- cgit v1.2.3