Add external mappings to ST

This commit is contained in:
evan-schott 2024-03-28 11:05:18 -07:00
parent 2a152c2517
commit e78b292552

View File

@ -101,6 +101,7 @@ impl<'a> ProgramVisitor<'a> for SymbolTableCreator<'a> {
self.program_name = Some(input.stub_id.name.name); self.program_name = Some(input.stub_id.name.name);
input.functions.iter().for_each(|(_, c)| (self.visit_function_stub(c))); input.functions.iter().for_each(|(_, c)| (self.visit_function_stub(c)));
input.structs.iter().for_each(|(_, c)| (self.visit_struct_stub(c))); input.structs.iter().for_each(|(_, c)| (self.visit_struct_stub(c)));
input.mappings.iter().for_each(|(_, c)| (self.visit_mapping(c)));
} }
fn visit_function_stub(&mut self, input: &'a FunctionStub) { fn visit_function_stub(&mut self, input: &'a FunctionStub) {