string text = "Member access:";
if(memacc.declaration)
text += format(" %%%d", get_label(*memacc.declaration));
- text += format(" .%s -> %s", memacc.member, format_type(memacc.type));
+ text += format(" .%s (%d) -> %s", memacc.member, memacc.index, format_type(memacc.type));
append(memacc, text);
append_subtree(*memacc.left);
}
void DumpTree::visit(InterfaceBlock &iface)
{
- string head;
- if(!iface.instance_name.empty())
- head += format("%%%d ", get_label(iface));
- head += format("%s %s", iface.interface, iface.block_name);
+ string head = format("%%%d %s %s", get_label(iface), iface.interface, iface.block_name);
if(!iface.instance_name.empty())
head += format(" %s", iface.instance_name);
if(iface.array)