diff --git a/schala-lang/language/src/symbol_table.rs b/schala-lang/language/src/symbol_table.rs index c6c0775..de595cc 100644 --- a/schala-lang/language/src/symbol_table.rs +++ b/schala-lang/language/src/symbol_table.rs @@ -97,6 +97,10 @@ impl SymbolTable { self.id_to_fqsn.insert(id.clone(), fqsn); } + pub fn get_fqsn_from_id(&mut self, id: &ItemId) -> Option { + self.id_to_fqsn.get(&id).cloned() + } + fn add_new_symbol(&mut self, name: &Rc, scope_path: &Vec, spec: SymbolSpec) { let mut vec: Vec = scope_path.clone(); vec.push(ScopeSegment { name: name.clone(), kind: ScopeSegmentKind::Terminal });