[symbol_table]
Define a low level function as a foreign function or a builtin function
@@ -65,9 +65,9 @@ impl SymbolTable {
}
};
- match attribute{
- Attribute::Foreign(_) => self.insert(func_name.clone(), SymbolInformation::Function(NoirFunction::LowLevelFunction(func_def.clone().into()))),
- };
+ if attribute.declares_a_low_level_func() {
+ self.insert(func_name.clone(), SymbolInformation::Function(NoirFunction::LowLevelFunction(func_def.clone().into())))
+ }
}
pub fn update_func_def(&mut self, func_def: &FunctionDefinition) {
let func_name = &func_def.name;
@@ -139,6 +139,7 @@ impl SymbolTable {
let noir_path_string = noir_path.to_string();
+
let symbol_info = self.look_up_path(noir_path);
let valid_symbol = match symbol_info {
