diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-11 23:16:27 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-11 23:16:27 +0100 |
commit | acde43f7c945e4f6728b1a3614d517894f6c5579 (patch) | |
tree | 852aceb23512b159e24316f58ef32c2f09ed8eb7 /crates/ide/src/lib.rs | |
parent | a328a6bc75e3832930bd22fb644a994dcd3d93ff (diff) | |
parent | 23cd6d0d562552886c4b170327b22fb226fb9cb1 (diff) |
Merge #8807
8807: internal: Move `dot` invocation to rust-analyzer crate r=jonas-schievink a=jonas-schievink
Addresses https://github.com/rust-analyzer/rust-analyzer/pull/8801#discussion_r630570615
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
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 | } |