mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Gifs and screenshots for features in manual
This commit is contained in:
parent
95107a7ccf
commit
276022682b
24 changed files with 44 additions and 0 deletions
|
@ -10,6 +10,7 @@ use syntax::{algo::find_node_at_offset, ast, AstNode};
|
|||
//
|
||||
// | VS Code | **Rust Analyzer: View Hir**
|
||||
// |===
|
||||
// image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b1-11eb-9a78-0b4ef1e972fb.gif[]
|
||||
pub(crate) fn view_hir(db: &RootDatabase, position: FilePosition) -> String {
|
||||
body_hir(db, position).unwrap_or_else(|| "Not inside a function body".to_string())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue