Move ide::AnalysisChange -> base_db::Change

This seems like a better factoring logically; ideally, clients shouldn't touch
`set_` methods of the database directly. Additionally, I think this
should remove the unfortunate duplication in fixture code.
This commit is contained in:
Aleksey Kladov 2020-10-02 15:45:09 +02:00
parent 700c9bc019
commit 8716c4cec3
11 changed files with 122 additions and 93 deletions

View file

@ -69,7 +69,7 @@ mod tests {
use crate::{
mock_analysis::{analysis_and_position, MockAnalysis},
AnalysisChange, CrateGraph,
Change, CrateGraph,
Edition::Edition2018,
};
@ -146,7 +146,7 @@ mod foo;
Env::default(),
Default::default(),
);
let mut change = AnalysisChange::new();
let mut change = Change::new();
change.set_crate_graph(crate_graph);
host.apply_change(change);