diff options
author | Jonas Schievink <[email protected]> | 2021-05-11 23:14:59 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-05-11 23:14:59 +0100 |
commit | 23cd6d0d562552886c4b170327b22fb226fb9cb1 (patch) | |
tree | 852aceb23512b159e24316f58ef32c2f09ed8eb7 /crates/ide/src/lib.rs | |
parent | a328a6bc75e3832930bd22fb644a994dcd3d93ff (diff) |
Move `dot` invocation to rust-analyzer crate
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r-- | crates/ide/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 34360501a..db08547d1 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -288,6 +288,7 @@ impl Analysis { | |||
288 | self.with_db(|db| view_hir::view_hir(&db, position)) | 288 | self.with_db(|db| view_hir::view_hir(&db, position)) |
289 | } | 289 | } |
290 | 290 | ||
291 | /// Renders the crate graph to GraphViz "dot" syntax. | ||
291 | pub fn view_crate_graph(&self) -> Cancelable<Result<String, String>> { | 292 | pub fn view_crate_graph(&self) -> Cancelable<Result<String, String>> { |
292 | self.with_db(|db| view_crate_graph::view_crate_graph(&db)) | 293 | self.with_db(|db| view_crate_graph::view_crate_graph(&db)) |
293 | } | 294 | } |