mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
generalize location interner
This commit is contained in:
parent
ec45dfea1e
commit
b2de95879a
8 changed files with 101 additions and 51 deletions
|
@ -23,7 +23,7 @@ impl FnId {
|
|||
let file_items = db.file_items(file_id);
|
||||
let item_id = file_items.id_of(fn_def.syntax());
|
||||
let item_id = SourceItemId { file_id, item_id };
|
||||
db.id_maps().fn_id(item_id)
|
||||
FnId::from_loc(db, &item_id)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue