mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Make some stuff public so that they can be reused by other tools
This commit is contained in:
parent
530a35f3f9
commit
9f0a7eb97b
6 changed files with 7 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue