pub struct UsageCtxt<'a> {
hir: &'a File,
val_map: HashMap<(LongVId, DefLoc), Vec<ValUsage>>,
ty_map: HashMap<(LongTyCon, DefLoc), Vec<TyUsage>>,
exception_map: HashMap<Idx<Dec>, Vec<Idx<Expr>>>,
}Expand description
Tracks variable, type constructor, and exception usages.
TODO: track tyvars?
TODO: exception_map is not being used right now, everything is being treated as a VId
Fields§
§hir: &'a File§val_map: HashMap<(LongVId, DefLoc), Vec<ValUsage>>§ty_map: HashMap<(LongTyCon, DefLoc), Vec<TyUsage>>§exception_map: HashMap<Idx<Dec>, Vec<Idx<Expr>>>