mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
split HirDatabase api
This commit is contained in:
parent
12433a7887
commit
4dffdcf14a
21 changed files with 147 additions and 106 deletions
|
@ -5,7 +5,7 @@ use ra_syntax::ast::{self, NameOwner};
|
|||
use crate::{
|
||||
HirDatabase, Name, AsName, Function, FnSignature,
|
||||
type_ref::{TypeRef, Mutability},
|
||||
expr::Body,
|
||||
expr::Body, PersistentHirDatabase,
|
||||
impl_block::ImplBlock,
|
||||
};
|
||||
|
||||
|
@ -22,7 +22,10 @@ impl Function {
|
|||
}
|
||||
|
||||
impl FnSignature {
|
||||
pub(crate) fn fn_signature_query(db: &impl HirDatabase, func: Function) -> Arc<FnSignature> {
|
||||
pub(crate) fn fn_signature_query(
|
||||
db: &impl PersistentHirDatabase,
|
||||
func: Function,
|
||||
) -> Arc<FnSignature> {
|
||||
let (_, node) = func.source(db);
|
||||
let name = node
|
||||
.name()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue