Symbol table map for NamedStruct
This commit is contained in:
parent
403b171c72
commit
8a34034819
@ -45,11 +45,11 @@ impl<'a> ScopeResolver<'a> {
|
|||||||
let fqsn = lookup_name_in_scope(&qualified_name.node());
|
let fqsn = lookup_name_in_scope(&qualified_name.node());
|
||||||
let ref id = qualified_name.node().id;
|
let ref id = qualified_name.node().id;
|
||||||
self.symbol_table.map_id_to_fqsn(id, fqsn);
|
self.symbol_table.map_id_to_fqsn(id, fqsn);
|
||||||
//expr.fqsn = Some(fqsn);
|
|
||||||
},
|
},
|
||||||
NamedStruct { name, .. } => {
|
NamedStruct { name, .. } => {
|
||||||
|
let ref id = name.node().id;
|
||||||
let fqsn = lookup_name_in_scope(&name.node());
|
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) => {
|
BinExp(_, ref mut lhs, ref mut rhs) => {
|
||||||
self.expr(lhs)?;
|
self.expr(lhs)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user