mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-18 03:13:31 +00:00
Split assoc items out of trait_data/impl_data queries
This commit is contained in:
parent
185f9deb45
commit
12f54eec27
34 changed files with 446 additions and 397 deletions
|
|
@ -34,7 +34,7 @@ pub(crate) trait ChildBySource {
|
|||
|
||||
impl ChildBySource for TraitId {
|
||||
fn child_by_source_to(&self, db: &dyn DefDatabase, res: &mut DynMap, file_id: HirFileId) {
|
||||
let data = db.trait_data(*self);
|
||||
let data = db.trait_items(*self);
|
||||
|
||||
data.attribute_calls().filter(|(ast_id, _)| ast_id.file_id == file_id).for_each(
|
||||
|(ast_id, call_id)| {
|
||||
|
|
@ -49,7 +49,7 @@ impl ChildBySource for TraitId {
|
|||
|
||||
impl ChildBySource for ImplId {
|
||||
fn child_by_source_to(&self, db: &dyn DefDatabase, res: &mut DynMap, file_id: HirFileId) {
|
||||
let data = db.impl_data(*self);
|
||||
let data = db.impl_items(*self);
|
||||
// FIXME: Macro calls
|
||||
data.attribute_calls().filter(|(ast_id, _)| ast_id.file_id == file_id).for_each(
|
||||
|(ast_id, call_id)| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue