mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: Move proc-macro knowledge out of base-db
This commit is contained in:
parent
21b06c1beb
commit
35620306a6
50 changed files with 255 additions and 186 deletions
|
@ -67,6 +67,7 @@ use std::ffi::OsStr;
|
|||
|
||||
use cfg::CfgOptions;
|
||||
use fetch_crates::CrateInfo;
|
||||
use hir::Change;
|
||||
use ide_db::{
|
||||
base_db::{
|
||||
salsa::{self, ParallelDatabase},
|
||||
|
@ -122,7 +123,7 @@ pub use ide_completion::{
|
|||
};
|
||||
pub use ide_db::{
|
||||
base_db::{
|
||||
Cancelled, Change, CrateGraph, CrateId, Edition, FileId, FilePosition, FileRange,
|
||||
Cancelled, CrateGraph, CrateId, Edition, FileChange, FileId, FilePosition, FileRange,
|
||||
SourceRoot, SourceRootId,
|
||||
},
|
||||
documentation::Documentation,
|
||||
|
@ -183,7 +184,7 @@ impl AnalysisHost {
|
|||
/// Applies changes to the current state of the world. If there are
|
||||
/// outstanding snapshots, they will be canceled.
|
||||
pub fn apply_change(&mut self, change: Change) {
|
||||
self.db.apply_change(change)
|
||||
self.db.apply_change(change);
|
||||
}
|
||||
|
||||
/// NB: this clears the database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue