- begin_sub();
- last_branch();
- if(block.type_declaration)
- append(format("Type: %%%d %s", get_label(*block.type_declaration), block.type_declaration->name));
- else if(block.members)
- block.members->visit(*this);
- end_sub();
+ 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());
+ append_subtree(branches);