Refactoring sequence diagrams test cases (#266)
This commit is contained in:
@@ -286,6 +286,8 @@ void generator::process_call_message(
|
||||
else
|
||||
LOG_DBG("Skipping activity {} --> {} - missing sequence {}", m.from(),
|
||||
m.to(), m.to());
|
||||
|
||||
visited.pop_back();
|
||||
}
|
||||
|
||||
void generator::process_while_message(const message &m) const
|
||||
@@ -816,6 +818,14 @@ void generator::generate_diagram(nlohmann::json &parent) const
|
||||
}
|
||||
}
|
||||
|
||||
// Perform config dependent postprocessing on generated participants
|
||||
for (auto &p : json_["participants"]) {
|
||||
if (p.contains("display_name")) {
|
||||
p["display_name"] =
|
||||
config().simplify_template_type(p["display_name"]);
|
||||
}
|
||||
}
|
||||
|
||||
parent["participants"] = json_["participants"];
|
||||
}
|
||||
} // namespace clanguml::sequence_diagram::generators::json
|
||||
|
||||
Reference in New Issue
Block a user