svlog: declare port names
Include ports in name resolution. Doesn't do anything yet since ports
are not really supported at the moment. They are pretty complex to lower
to HIR properly, which needs to happen first.
@@ -80,6 +80,9 @@ pub(crate) fn local_rib<'gcx>(cx: &impl Context<'gcx>, node_id: NodeId) -> Resul
AstNode::Typedef(def) => {
RibKind::Normal(Spanned::new(def.name.name, def.name.span), node_id)
}
+ AstNode::Port(&ast::Port::Named { name, .. }) => {
+ RibKind::Normal(Spanned::new(name.name, name.span), node_id)
+ }
_ => {
return cx.local_rib(
cx.parent_node_id(node_id)
