mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
⬆️ salsa
This commit is contained in:
parent
d65dca6bb3
commit
1fd18f020d
10 changed files with 29 additions and 28 deletions
|
@ -63,7 +63,7 @@ pub struct FileRange {
|
|||
pub range: TextRange,
|
||||
}
|
||||
|
||||
#[salsa::query_group]
|
||||
#[salsa::query_group(FilesDatabaseStorage)]
|
||||
pub trait FilesDatabase: salsa::Database {
|
||||
/// Text of the file.
|
||||
#[salsa::input]
|
||||
|
@ -102,7 +102,7 @@ fn source_root_crates(db: &impl FilesDatabase, id: SourceRootId) -> Arc<Vec<Crat
|
|||
Arc::new(res)
|
||||
}
|
||||
|
||||
#[salsa::query_group]
|
||||
#[salsa::query_group(SyntaxDatabaseStorage)]
|
||||
pub trait SyntaxDatabase: FilesDatabase + BaseDatabase {
|
||||
fn source_file(&self, file_id: FileId) -> TreeArc<SourceFile>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue