Thread documentation through FnSignature and CompletionItem
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user