//! Defines database & queries for name resolution. use ra_db::{salsa, SourceDatabase}; use ra_syntax::ast; #[salsa::query_group(InternDatabaseStorage)] pub trait InternDatabase: SourceDatabase { #[salsa::interned] fn intern_function(&self, loc: crate::ItemLoc) -> crate::FunctionId; #[salsa::interned] fn intern_struct(&self, loc: crate::ItemLoc) -> crate::StructId; #[salsa::interned] fn intern_enum(&self, loc: crate::ItemLoc) -> crate::EnumId; #[salsa::interned] fn intern_const(&self, loc: crate::ItemLoc) -> crate::ConstId; #[salsa::interned] fn intern_static(&self, loc: crate::ItemLoc) -> crate::StaticId; #[salsa::interned] fn intern_trait(&self, loc: crate::ItemLoc) -> crate::TraitId; #[salsa::interned] fn intern_type_alias(&self, loc: crate::ItemLoc) -> crate::TypeAliasId; }