Fixed plantuml sequence diagram from_to entry points

This commit is contained in:
Bartek Kryza
2023-08-27 19:21:00 +02:00
parent bd19fe5bfb
commit 519677a904

View File

@@ -432,6 +432,19 @@ void generator::generate_diagram(std::ostream &ostr) const
else else
ostr << "====\n"; ostr << "====\n";
const auto &from =
model().get_participant<model::function>(from_activity_id);
if (from.value().type_name() == "method" ||
config().combine_free_functions_into_file_participants()) {
generate_participant(ostr, from_activity_id);
ostr << "[->"
<< " " << generate_alias(from.value()) << " : "
<< from.value().message_name(
select_method_arguments_render_mode())
<< std::endl;
}
for (const auto &m : mc) { for (const auto &m : mc) {
generate_call(m, ostr); generate_call(m, ostr);
} }