block.parent = current_block;
}
-void BlockResolver::visit(InterfaceBlock &iface)
-{
- /* Block names can't be used for any other identifiers so we can put them
- in the same map with instance names. */
- current_block->interfaces[iface.name] = &iface;
- if(!iface.instance_name.empty())
- current_block->interfaces[iface.instance_name] = &iface;
- TraversingVisitor::visit(iface);
-}
-
VariableResolver::VariableResolver():
builtins(0),
void VariableResolver::visit(InterfaceBlock &iface)
{
+ /* Block names can't be used for any other identifiers so we can put them
+ in the same map with instance names. */
+ current_block->interfaces[iface.name] = &iface;
+ if(!iface.instance_name.empty())
+ current_block->interfaces[iface.instance_name] = &iface;
+
SetForScope<string> set_iface(block_interface, iface.interface);
TraversingVisitor::visit(iface);
}