Add id_to_symbol table to SymbolTable
This commit is contained in:
parent
4ddcbc89ad
commit
2256f25482
@ -123,6 +123,9 @@ pub struct SymbolTable {
|
||||
/// some basic information about what that symbol is and (ideally) references to other tables
|
||||
/// (e.g. typechecking tables) with more information about that symbol.
|
||||
fqsn_to_symbol: HashMap<Fqsn, Symbol>,
|
||||
|
||||
//TODO this should probably eventually replace the pair of id_to_fqsn/fqsn_to_symbol
|
||||
id_to_symbol: HashMap<ItemId, Symbol>,
|
||||
}
|
||||
|
||||
impl SymbolTable {
|
||||
@ -133,6 +136,7 @@ impl SymbolTable {
|
||||
types: NameTable::new(),
|
||||
id_to_fqsn: HashMap::new(),
|
||||
fqsn_to_symbol: HashMap::new(),
|
||||
id_to_symbol: HashMap::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user