From 2256f254829d3bbc6ffcf9f43a657463539c7ae0 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 21 Oct 2021 19:43:03 -0700 Subject: [PATCH] Add id_to_symbol table to SymbolTable --- schala-lang/language/src/symbol_table/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schala-lang/language/src/symbol_table/mod.rs b/schala-lang/language/src/symbol_table/mod.rs index b00e15c..b881c53 100644 --- a/schala-lang/language/src/symbol_table/mod.rs +++ b/schala-lang/language/src/symbol_table/mod.rs @@ -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, + + //TODO this should probably eventually replace the pair of id_to_fqsn/fqsn_to_symbol + id_to_symbol: HashMap, } 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(), } }