Revert "eagarly clean astd maps"
This reverts commit 6c63a59425
.
This causes massive slowdowns: looks like we accidentally have some source-depndent
This commit is contained in:
parent
b1febf2e6d
commit
8876f44054
@ -60,7 +60,7 @@ pub trait DefDatabase: SourceDatabase {
|
||||
#[salsa::invoke(crate::source_id::AstIdMap::ast_id_map_query)]
|
||||
fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>;
|
||||
|
||||
#[salsa::invoke(crate::source_id::AstIdMap::ast_id_to_node_query)]
|
||||
#[salsa::invoke(crate::source_id::AstIdMap::file_item_query)]
|
||||
fn ast_id_to_node(&self, file_id: HirFileId, ast_id: ErasedFileAstId) -> TreeArc<SyntaxNode>;
|
||||
|
||||
#[salsa::invoke(RawItems::raw_items_query)]
|
||||
|
@ -92,7 +92,7 @@ pub(crate) fn ast_id_map_query(db: &impl DefDatabase, file_id: HirFileId) -> Arc
|
||||
Arc::new(AstIdMap::from_source_file(&source_file))
|
||||
}
|
||||
|
||||
pub(crate) fn ast_id_to_node_query(
|
||||
pub(crate) fn file_item_query(
|
||||
db: &impl DefDatabase,
|
||||
file_id: HirFileId,
|
||||
ast_id: ErasedFileAstId,
|
||||
|
Loading…
Reference in New Issue
Block a user