mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
⬆️ rust-analyzer
This commit is contained in:
parent
15b867b5db
commit
b2f6fd4f96
217 changed files with 12639 additions and 3059 deletions
|
@ -55,6 +55,7 @@ mod syntax_tree;
|
|||
mod typing;
|
||||
mod view_crate_graph;
|
||||
mod view_hir;
|
||||
mod view_mir;
|
||||
mod view_item_tree;
|
||||
mod shuffle_crate_graph;
|
||||
|
||||
|
@ -308,6 +309,10 @@ impl Analysis {
|
|||
self.with_db(|db| view_hir::view_hir(db, position))
|
||||
}
|
||||
|
||||
pub fn view_mir(&self, position: FilePosition) -> Cancellable<String> {
|
||||
self.with_db(|db| view_mir::view_mir(db, position))
|
||||
}
|
||||
|
||||
pub fn view_item_tree(&self, file_id: FileId) -> Cancellable<String> {
|
||||
self.with_db(|db| view_item_tree::view_item_tree(db, file_id))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue