mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
encapsulate hir locations
This commit is contained in:
parent
6a0a4a564a
commit
9fe09db771
7 changed files with 45 additions and 74 deletions
|
@ -3,11 +3,11 @@ use rustc_hash::FxHashMap;
|
|||
|
||||
use ra_arena::{Arena, RawId, impl_arena_id};
|
||||
use ra_syntax::ast::{self, AstNode};
|
||||
use ra_db::{LocationIntener, SourceRootId};
|
||||
use ra_db::{SourceRootId};
|
||||
|
||||
use crate::{
|
||||
DefId, DefLoc, DefKind, SourceItemId, SourceFileItems,
|
||||
Function,
|
||||
Function, HirInterner,
|
||||
db::HirDatabase,
|
||||
type_ref::TypeRef,
|
||||
module_tree::ModuleId,
|
||||
|
@ -66,7 +66,7 @@ pub struct ImplData {
|
|||
|
||||
impl ImplData {
|
||||
pub(crate) fn from_ast(
|
||||
db: &impl AsRef<LocationIntener<DefLoc, DefId>>,
|
||||
db: &impl AsRef<HirInterner>,
|
||||
file_items: &SourceFileItems,
|
||||
module: &Module,
|
||||
node: &ast::ImplBlock,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue