From 8a3403481968e1ece90fe900e83cb64c20025f84 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 20 Sep 2019 01:36:58 -0700 Subject: [PATCH] Symbol table map for NamedStruct --- schala-lang/language/src/scope_resolution.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schala-lang/language/src/scope_resolution.rs b/schala-lang/language/src/scope_resolution.rs index 140cdcf..2574310 100644 --- a/schala-lang/language/src/scope_resolution.rs +++ b/schala-lang/language/src/scope_resolution.rs @@ -45,11 +45,11 @@ impl<'a> ScopeResolver<'a> { let fqsn = lookup_name_in_scope(&qualified_name.node()); let ref id = qualified_name.node().id; self.symbol_table.map_id_to_fqsn(id, fqsn); - //expr.fqsn = Some(fqsn); }, NamedStruct { name, .. } => { + let ref id = name.node().id; let fqsn = lookup_name_in_scope(&name.node()); - expr.fqsn = Some(fqsn); + self.symbol_table.map_id_to_fqsn(id, fqsn); }, BinExp(_, ref mut lhs, ref mut rhs) => { self.expr(lhs)?;