- branches.push_back(var.init_expression.get());
- append_subtree(branches);
-}
-
-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);
- if(!iface.instance_name.empty())
- head += format(" %s", 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.push_back(format("Type: %%%d %s", get_label(*iface.type_declaration), iface.type_declaration->name));
- if(iface.layout)
- branches.push_back(iface.layout.get());
- if(iface.members)
- branches.push_back(iface.members.get());