aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/display
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-06-10 21:08:46 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-06-10 21:08:46 +0100
commit75e6c03883c4533b1134c806d166b72200b4837d (patch)
tree331fe1559a1c6fb293f9d68a4d5d5b08565c7afb /crates/ra_ide_api/src/display
parentcbafae6fa8e1292302d1ea0c04871fe24d174954 (diff)
parent656a0fa9f99298123d7dcee8c65a8a5ed7043bc4 (diff)
Merge #1389
1389: Refactor hover to not depend on nav target r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r--crates/ra_ide_api/src/display/navigation_target.rs4
1 files changed, 2 insertions, 2 deletions
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 {
413 } 413 }
414} 414}
415 415
416fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { 416pub(crate) fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> {
417 let file = db.parse(symbol.file_id).tree; 417 let file = db.parse(symbol.file_id).tree;
418 let node = symbol.ptr.to_node(file.syntax()).to_owned(); 418 let node = symbol.ptr.to_node(file.syntax()).to_owned();
419 419
@@ -439,7 +439,7 @@ fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> {
439/// Get a description of a symbol. 439/// Get a description of a symbol.
440/// 440///
441/// e.g. `struct Name`, `enum Name`, `fn Name` 441/// e.g. `struct Name`, `enum Name`, `fn Name`
442fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { 442pub(crate) fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> {
443 let file = db.parse(symbol.file_id).tree; 443 let file = db.parse(symbol.file_id).tree;
444 let node = symbol.ptr.to_node(file.syntax()).to_owned(); 444 let node = symbol.ptr.to_node(file.syntax()).to_owned();
445 445