Symbol table map for NamedStruct

This commit is contained in:
greg 2019-09-20 01:36:58 -07:00
parent 403b171c72
commit 8a34034819

View File

@ -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)?;