aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r--crates/ra_analysis/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index ef08a721c..03994b7c4 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -29,7 +29,7 @@ use rayon::prelude::*;
29use relative_path::RelativePathBuf; 29use relative_path::RelativePathBuf;
30 30
31use crate::{ 31use crate::{
32 imp::{AnalysisHostImpl, AnalysisImpl}, 32 imp::AnalysisImpl,
33 symbol_index::{SymbolIndex, FileSymbol}, 33 symbol_index::{SymbolIndex, FileSymbol},
34}; 34};
35 35
@@ -153,7 +153,7 @@ impl AnalysisChange {
153/// `AnalysisHost` stores the current state of the world. 153/// `AnalysisHost` stores the current state of the world.
154#[derive(Debug, Default)] 154#[derive(Debug, Default)]
155pub struct AnalysisHost { 155pub struct AnalysisHost {
156 imp: AnalysisHostImpl, 156 db: db::RootDatabase,
157} 157}
158 158
159impl AnalysisHost { 159impl AnalysisHost {
@@ -161,13 +161,13 @@ impl AnalysisHost {
161 /// semantic information. 161 /// semantic information.
162 pub fn analysis(&self) -> Analysis { 162 pub fn analysis(&self) -> Analysis {
163 Analysis { 163 Analysis {
164 imp: self.imp.analysis(), 164 imp: self.db.analysis(),
165 } 165 }
166 } 166 }
167 /// Applies changes to the current state of the world. If there are 167 /// Applies changes to the current state of the world. If there are
168 /// outstanding snapshots, they will be canceled. 168 /// outstanding snapshots, they will be canceled.
169 pub fn apply_change(&mut self, change: AnalysisChange) { 169 pub fn apply_change(&mut self, change: AnalysisChange) {
170 self.imp.apply_change(change) 170 self.db.apply_change(change)
171 } 171 }
172} 172}
173 173