diff options
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 3ac3c79a3..398e00c42 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -42,7 +42,13 @@ pub trait DefDatabase: SourceDatabase { | |||
42 | #[salsa::invoke(crate::ids::macro_def_query)] | 42 | #[salsa::invoke(crate::ids::macro_def_query)] |
43 | fn macro_def(&self, macro_id: MacroDefId) -> Option<Arc<mbe::MacroRules>>; | 43 | fn macro_def(&self, macro_id: MacroDefId) -> Option<Arc<mbe::MacroRules>>; |
44 | 44 | ||
45 | #[salsa::invoke(HirFileId::hir_parse_query)] | 45 | #[salsa::invoke(crate::ids::macro_arg_query)] |
46 | fn macro_arg(&self, macro_call: ids::MacroCallId) -> Option<Arc<tt::Subtree>>; | ||
47 | |||
48 | #[salsa::invoke(crate::ids::macro_expand_query)] | ||
49 | fn macro_expand(&self, macro_call: ids::MacroCallId) -> Result<Arc<tt::Subtree>, String>; | ||
50 | |||
51 | #[salsa::invoke(crate::ids::HirFileId::hir_parse_query)] | ||
46 | fn hir_parse(&self, file_id: HirFileId) -> TreeArc<SourceFile>; | 52 | fn hir_parse(&self, file_id: HirFileId) -> TreeArc<SourceFile>; |
47 | 53 | ||
48 | #[salsa::invoke(crate::adt::StructData::struct_data_query)] | 54 | #[salsa::invoke(crate::adt::StructData::struct_data_query)] |
@@ -60,7 +66,7 @@ pub trait DefDatabase: SourceDatabase { | |||
60 | #[salsa::invoke(crate::source_id::AstIdMap::ast_id_map_query)] | 66 | #[salsa::invoke(crate::source_id::AstIdMap::ast_id_map_query)] |
61 | fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>; | 67 | fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>; |
62 | 68 | ||
63 | #[salsa::invoke(crate::source_id::AstIdMap::ast_id_to_node_query)] | 69 | #[salsa::invoke(crate::source_id::AstIdMap::file_item_query)] |
64 | fn ast_id_to_node(&self, file_id: HirFileId, ast_id: ErasedFileAstId) -> TreeArc<SyntaxNode>; | 70 | fn ast_id_to_node(&self, file_id: HirFileId, ast_id: ErasedFileAstId) -> TreeArc<SyntaxNode>; |
65 | 71 | ||
66 | #[salsa::invoke(RawItems::raw_items_query)] | 72 | #[salsa::invoke(RawItems::raw_items_query)] |