pub type AstId<N> = InFile<FileAstId<N>>;Expand description
AstId points to an AST node in any file.
It is stable across reparses, and can be used as salsa key/value.
Aliased Type§
pub struct AstId<N> {
pub file_id: HirFileId,
pub value: FileAstId<N>,
}Fields§
§file_id: HirFileId§value: FileAstId<N>Implementations§
Source§impl AstId<Macro>
impl AstId<Macro>
Sourcepub fn decl_macro_expander<'db>(
self: AstId<Macro>,
db: &'db dyn SourceDatabase,
def_crate: Crate,
) -> &'db DeclarativeMacroExpander
pub fn decl_macro_expander<'db>( self: AstId<Macro>, db: &'db dyn SourceDatabase, def_crate: Crate, ) -> &'db DeclarativeMacroExpander
Fetches (and compiles) the expander of this decl macro.