-void DumpTree::visit(InterfaceBlock &iface)
-{
- string head = format("%s %s %s", get_label(iface), iface.interface, format_name(iface.block_name));
- if(!iface.instance_name.empty())
- head += format(" %s", format_name(iface.instance_name));
- if(iface.array)
- head += "[]";
- if(iface.source==BUILTIN_SOURCE)
- head += " (builtin)";
- else if(iface.linked_block)
- head += " (linked)";
- append(iface, head);
-
- vector<Branch> branches;
- if(iface.type_declaration)
- branches.emplace_back(format("Type: %s %s", get_label(*iface.type_declaration), format_type(iface.type_declaration->name)));
- if(iface.layout)
- branches.emplace_back(iface.layout.get());
- if(iface.members)
- branches.emplace_back(iface.members.get());
- append_subtree(branches);
-}
-