mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: Rename AstDatabase to ExpandDatabase
This commit is contained in:
parent
9fca0a4afe
commit
9fb9ee3b6a
30 changed files with 161 additions and 148 deletions
|
@ -50,7 +50,7 @@ use base_db::{
|
|||
AnchoredPath, CrateId, FileId, FileLoader, FileLoaderDelegate, SourceDatabase, Upcast,
|
||||
};
|
||||
use hir::{
|
||||
db::{AstDatabase, DefDatabase, HirDatabase},
|
||||
db::{DefDatabase, ExpandDatabase, HirDatabase},
|
||||
symbols::FileSymbolKind,
|
||||
};
|
||||
use stdx::hash::NoHashHashSet;
|
||||
|
@ -68,7 +68,7 @@ pub type FxIndexMap<K, V> =
|
|||
#[salsa::database(
|
||||
base_db::SourceDatabaseExtStorage,
|
||||
base_db::SourceDatabaseStorage,
|
||||
hir::db::AstDatabaseStorage,
|
||||
hir::db::ExpandDatabaseStorage,
|
||||
hir::db::DefDatabaseStorage,
|
||||
hir::db::HirDatabaseStorage,
|
||||
hir::db::InternDatabaseStorage,
|
||||
|
@ -95,8 +95,8 @@ impl fmt::Debug for RootDatabase {
|
|||
}
|
||||
}
|
||||
|
||||
impl Upcast<dyn AstDatabase> for RootDatabase {
|
||||
fn upcast(&self) -> &(dyn AstDatabase + 'static) {
|
||||
impl Upcast<dyn ExpandDatabase> for RootDatabase {
|
||||
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
|
||||
&*self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue