diff --git a/source/parse.h b/source/parse.h index e8e6dafc57..3ac3555c48 100644 --- a/source/parse.h +++ b/source/parse.h @@ -4961,8 +4961,13 @@ auto pretty_print_visualize(declaration_node const& n, int indent, bool include_ // First compute the common parts auto metafunctions = std::string{}; - if (include_metafunctions_list) { - for (auto& meta : n.metafunctions) { + for (auto& meta : n.metafunctions) + { + if ( + include_metafunctions_list + || meta->to_string() == "struct" + ) + { metafunctions += " @" + pretty_print_visualize(*meta, indent); } }