Make resolutions a query.
This commit is contained in:
parent
b09dad3edd
commit
071a047dc7
13 changed files with 127 additions and 112 deletions
|
@ -23,7 +23,7 @@ use tracing::debug;
|
|||
/// Internally the `DefPathTable` holds a tree of `DefKey`s, where each `DefKey`
|
||||
/// stores the `DefIndex` of its parent.
|
||||
/// There is one `DefPathTable` for each crate.
|
||||
#[derive(Clone, Default)]
|
||||
#[derive(Clone, Default, Debug)]
|
||||
pub struct DefPathTable {
|
||||
index_to_key: IndexVec<DefIndex, DefKey>,
|
||||
def_path_hashes: IndexVec<DefIndex, DefPathHash>,
|
||||
|
@ -96,7 +96,7 @@ impl DefPathTable {
|
|||
/// The definition table containing node definitions.
|
||||
/// It holds the `DefPathTable` for `LocalDefId`s/`DefPath`s.
|
||||
/// It also stores mappings to convert `LocalDefId`s to/from `HirId`s.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Definitions {
|
||||
table: DefPathTable,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue