aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/display/navigation_target.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/display/navigation_target.rs')
-rw-r--r--crates/ra_ide_api/src/display/navigation_target.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs
index f60a07f1d..c0fa9439e 100644
--- a/crates/ra_ide_api/src/display/navigation_target.rs
+++ b/crates/ra_ide_api/src/display/navigation_target.rs
@@ -23,9 +23,8 @@ pub struct NavigationTarget {
23 full_range: TextRange, 23 full_range: TextRange,
24 focus_range: Option<TextRange>, 24 focus_range: Option<TextRange>,
25 container_name: Option<SmolStr>, 25 container_name: Option<SmolStr>,
26 26 description: Option<String>,
27 pub(crate) description: Option<String>, 27 docs: Option<String>,
28 pub(crate) docs: Option<String>,
29} 28}
30 29
31impl NavigationTarget { 30impl NavigationTarget {
@@ -55,6 +54,14 @@ impl NavigationTarget {
55 self.full_range 54 self.full_range
56 } 55 }
57 56
57 pub fn docs(&self) -> Option<String> {
58 self.docs.clone()
59 }
60
61 pub fn description(&self) -> Option<String> {
62 self.description.clone()
63 }
64
58 /// A "most interesting" range withing the `full_range`. 65 /// A "most interesting" range withing the `full_range`.
59 /// 66 ///
60 /// Typically, `full_range` is the whole syntax node, 67 /// Typically, `full_range` is the whole syntax node,