{
auto decl = CanonicalPath::new_seg (var.get_node_id (),
var.get_identifier ().as_string ());
- auto path = decl;
auto cpath = canonical_prefix.append (decl);
mappings.insert_canonical_path (var.get_node_id (), cpath);
resolver->get_name_scope ().insert (
- path, var.get_node_id (), var.get_locus (), false, Rib::ItemType::Static,
+ decl, var.get_node_id (), var.get_locus (), false, Rib::ItemType::Static,
[&] (const CanonicalPath &, NodeId, location_t locus) -> void {
rich_location r (line_table, var.get_locus ());
r.add_range (locus);
});
ResolveType::go (var.get_type ());
- ResolveExpr::go (var.get_expr (), path, cpath);
+ ResolveExpr::go (var.get_expr (), decl, cpath);
}
} // namespace Resolver