Thread documentation through FnSignature and CompletionItem

This commit is contained in:
Jeremy Kolb 2019-01-21 21:42:37 -05:00
parent 5d110c0ee2
commit b77d780f0e
3 changed files with 15 additions and 1 deletions

View file

@ -297,6 +297,7 @@ pub struct FnSignature {
/// True if the first param is `self`. This is relevant to decide whether this
/// can be called as a method.
pub(crate) has_self_param: bool,
pub(crate) documentation: String,
}
impl FnSignature {
@ -317,6 +318,10 @@ impl FnSignature {
pub fn has_self_param(&self) -> bool {
self.has_self_param
}
pub fn documentation(&self) -> &String {
&self.documentation
}
}
impl Function {