mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Show documentation for hover requests
This commit is contained in:
parent
6df71da81f
commit
8ccd26adf3
6 changed files with 71 additions and 4 deletions
|
@ -258,6 +258,13 @@ impl Analysis {
|
|||
pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> {
|
||||
Ok(self.imp.find_all_refs(position))
|
||||
}
|
||||
pub fn doc_comment_for(
|
||||
&self,
|
||||
file_id: FileId,
|
||||
symbol: FileSymbol
|
||||
) -> Cancelable<Option<String>> {
|
||||
self.imp.doc_comment_for(file_id, symbol)
|
||||
}
|
||||
pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> {
|
||||
self.imp.parent_module(position)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue