Make some stuff public so that they can be reused by other tools

This commit is contained in:
Pavan Kumar Sunkara 2020-04-24 21:57:10 +02:00
parent 530a35f3f9
commit 9f0a7eb97b
6 changed files with 7 additions and 10 deletions

View file

@ -176,14 +176,10 @@ impl AnalysisHost {
pub fn request_cancellation(&mut self) {
self.db.request_cancellation();
}
pub fn raw_database(
&self,
) -> &(impl hir::db::HirDatabase + salsa::Database + ra_db::SourceDatabaseExt) {
pub fn raw_database(&self) -> &RootDatabase {
&self.db
}
pub fn raw_database_mut(
&mut self,
) -> &mut (impl hir::db::HirDatabase + salsa::Database + ra_db::SourceDatabaseExt) {
pub fn raw_database_mut(&mut self) -> &mut RootDatabase {
&mut self.db
}
}