diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 88eda5ed0..57f405f4f 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -297,6 +297,7 @@ pub struct FnSignature { | |||
297 | /// True if the first param is `self`. This is relevant to decide whether this | 297 | /// True if the first param is `self`. This is relevant to decide whether this |
298 | /// can be called as a method. | 298 | /// can be called as a method. |
299 | pub(crate) has_self_param: bool, | 299 | pub(crate) has_self_param: bool, |
300 | pub(crate) documentation: String, | ||
300 | } | 301 | } |
301 | 302 | ||
302 | impl FnSignature { | 303 | impl FnSignature { |
@@ -317,6 +318,10 @@ impl FnSignature { | |||
317 | pub fn has_self_param(&self) -> bool { | 318 | pub fn has_self_param(&self) -> bool { |
318 | self.has_self_param | 319 | self.has_self_param |
319 | } | 320 | } |
321 | |||
322 | pub fn documentation(&self) -> &String { | ||
323 | &self.documentation | ||
324 | } | ||
320 | } | 325 | } |
321 | 326 | ||
322 | impl Function { | 327 | impl Function { |