mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
split HirDatabase api
This commit is contained in:
parent
12433a7887
commit
4dffdcf14a
21 changed files with 147 additions and 106 deletions
|
@ -11,7 +11,11 @@ use crate::{db, HirInterner};
|
|||
|
||||
pub const WORKSPACE: SourceRootId = SourceRootId(0);
|
||||
|
||||
#[salsa::database(ra_db::SourceDatabaseStorage, db::HirDatabaseStorage)]
|
||||
#[salsa::database(
|
||||
ra_db::SourceDatabaseStorage,
|
||||
db::HirDatabaseStorage,
|
||||
db::PersistentHirDatabaseStorage
|
||||
)]
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct MockDatabase {
|
||||
events: Mutex<Option<Vec<salsa::Event<MockDatabase>>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue