mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
⬆️ salsa
This commit is contained in:
parent
d65dca6bb3
commit
1fd18f020d
10 changed files with 29 additions and 28 deletions
|
@ -8,11 +8,11 @@ use ra_db::{
|
|||
use crate::{symbol_index, LineIndex};
|
||||
|
||||
#[salsa::database(
|
||||
ra_db::FilesDatabase,
|
||||
ra_db::SyntaxDatabase,
|
||||
LineIndexDatabase,
|
||||
symbol_index::SymbolsDatabase,
|
||||
hir::db::HirDatabase
|
||||
ra_db::FilesDatabaseStorage,
|
||||
ra_db::SyntaxDatabaseStorage,
|
||||
LineIndexDatabaseStorage,
|
||||
symbol_index::SymbolsDatabaseStorage,
|
||||
hir::db::HirDatabaseStorage
|
||||
)]
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct RootDatabase {
|
||||
|
@ -62,7 +62,7 @@ impl AsRef<hir::HirInterner> for RootDatabase {
|
|||
}
|
||||
}
|
||||
|
||||
#[salsa::query_group]
|
||||
#[salsa::query_group(LineIndexDatabaseStorage)]
|
||||
pub(crate) trait LineIndexDatabase: ra_db::FilesDatabase + BaseDatabase {
|
||||
fn line_index(&self, file_id: FileId) -> Arc<LineIndex>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue