[−][src]Trait mun_hir::DefDatabase
Required methods
fn ast_id_map(&self, key0: FileId) -> Arc<AstIdMap>
Returns the top level AST items of a file
fn ast_id_to_node(&self, key0: FileId, key1: ErasedFileAstId) -> SyntaxNode
Returns the corresponding AST node of a type erased ast id
fn raw_items(&self, key0: FileId) -> Arc<RawItems>
Returns the raw items of a file
fn struct_data(&self, key0: StructId) -> Arc<StructData>
fn intern_function(&self, key0: ItemLoc<FunctionDef>) -> FunctionId
Interns a function definition
fn lookup_intern_function(&self, key0: FunctionId) -> ItemLoc<FunctionDef>
fn intern_struct(&self, key0: ItemLoc<StructDef>) -> StructId
Interns a struct definition
fn lookup_intern_struct(&self, key0: StructId) -> ItemLoc<StructDef>
Implementors
impl<T> DefDatabase for T where
T: SourceDatabase,
T: HasQueryGroup<DefDatabaseStorage>,
[src]
T: SourceDatabase,
T: HasQueryGroup<DefDatabaseStorage>,