diff options
author | Aleksey Kladov <[email protected]> | 2019-06-15 14:29:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-15 14:29:23 +0100 |
commit | b0be4207d04b65580e7af10cb256ddd5d9ca006d (patch) | |
tree | bf978df2c89b036a71157e8946d13e0b014474f9 /crates/ra_ide_api/src | |
parent | 41c56c8a0d01d395e49cd199e6050b02a91cff1d (diff) |
reuse AnalysisHost in batch analysis
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 8741e736f..a68c5e2a5 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -276,6 +276,9 @@ impl AnalysisHost { | |||
276 | pub fn collect_garbage(&mut self) { | 276 | pub fn collect_garbage(&mut self) { |
277 | self.db.collect_garbage(); | 277 | self.db.collect_garbage(); |
278 | } | 278 | } |
279 | pub fn raw_database(&self) -> &impl hir::db::HirDatabase { | ||
280 | &self.db | ||
281 | } | ||
279 | } | 282 | } |
280 | 283 | ||
281 | /// Analysis is a snapshot of a world state at a moment in time. It is the main | 284 | /// Analysis is a snapshot of a world state at a moment in time. It is the main |