diff --git a/schala-lang/language/src/symbol_table.rs b/schala-lang/language/src/symbol_table.rs index bc4acfa..d4d13da 100644 --- a/schala-lang/language/src/symbol_table.rs +++ b/schala-lang/language/src/symbol_table.rs @@ -102,11 +102,11 @@ impl SymbolTable { self.id_to_fqsn.get(&id).cloned() } - fn add_new_symbol(&mut self, name: &Rc, scope_path: &Vec, spec: SymbolSpec) { + fn add_new_symbol(&mut self, local_name: &Rc, scope_path: &Vec, spec: SymbolSpec) { let mut vec: Vec = scope_path.clone(); - vec.push(ScopeSegment { name: name.clone(), kind: ScopeSegmentKind::Terminal }); + vec.push(ScopeSegment { name: local_name.clone(), kind: ScopeSegmentKind::Terminal }); let fully_qualified_name = FullyQualifiedSymbolName(vec); - let symbol = Symbol { local_name: name.clone(), fully_qualified_name: fully_qualified_name.clone(), spec }; + let symbol = Symbol { local_name: local_name.clone(), fully_qualified_name: fully_qualified_name.clone(), spec }; self.symbol_path_to_symbol.insert(fully_qualified_name, symbol); }