Move dot invocation to rust-analyzer crate

This commit is contained in:
Jonas Schievink 2021-05-12 00:14:59 +02:00
parent a328a6bc75
commit 23cd6d0d56
3 changed files with 19 additions and 27 deletions

View file

@ -288,6 +288,7 @@ impl Analysis {
self.with_db(|db| view_hir::view_hir(&db, position))
}
/// Renders the crate graph to GraphViz "dot" syntax.
pub fn view_crate_graph(&self) -> Cancelable<Result<String, String>> {
self.with_db(|db| view_crate_graph::view_crate_graph(&db))
}