mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
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:
parent
700c9bc019
commit
8716c4cec3
11 changed files with 122 additions and 93 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue