From f4d0cb64fc8b3010bdc4b168a2fa6d96a6cf90b1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 27 Nov 2018 21:58:44 +0300 Subject: rename descriptorsdb -> hirdb --- crates/ra_analysis/src/hir/function/imp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_analysis/src/hir/function') diff --git a/crates/ra_analysis/src/hir/function/imp.rs b/crates/ra_analysis/src/hir/function/imp.rs index cd573a47f..0d487d024 100644 --- a/crates/ra_analysis/src/hir/function/imp.rs +++ b/crates/ra_analysis/src/hir/function/imp.rs @@ -4,17 +4,17 @@ use ra_syntax::ast::{AstNode, FnDef, FnDefNode}; use crate::hir::{ function::{FnId, FnScopes}, - DescriptorDatabase, + HirDatabase, }; /// Resolve `FnId` to the corresponding `SyntaxNode` -pub(crate) fn fn_syntax(db: &impl DescriptorDatabase, fn_id: FnId) -> FnDefNode { +pub(crate) fn fn_syntax(db: &impl HirDatabase, fn_id: FnId) -> FnDefNode { let ptr = db.id_maps().fn_ptr(fn_id); let syntax = db.resolve_syntax_ptr(ptr); FnDef::cast(syntax.borrowed()).unwrap().owned() } -pub(crate) fn fn_scopes(db: &impl DescriptorDatabase, fn_id: FnId) -> Arc { +pub(crate) fn fn_scopes(db: &impl HirDatabase, fn_id: FnId) -> Arc { let syntax = db._fn_syntax(fn_id); let res = FnScopes::new(syntax.borrowed()); Arc::new(res) -- cgit v1.2.3