generalize location interner

This commit is contained in:
Aleksey Kladov 2018-11-28 02:49:28 +03:00
parent ec45dfea1e
commit b2de95879a
8 changed files with 101 additions and 51 deletions

View file

@ -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)
}
}