Fixed formatting
This commit is contained in:
@@ -271,7 +271,8 @@ std::string diagram::to_alias(
|
||||
throw error::uml_alias_missing(fmt::format("Missing alias for {}", id));
|
||||
}
|
||||
|
||||
inja::json diagram::context() const {
|
||||
inja::json diagram::context() const
|
||||
{
|
||||
inja::json ctx;
|
||||
ctx["name"] = name();
|
||||
ctx["type"] = "class";
|
||||
@@ -279,12 +280,12 @@ inja::json diagram::context() const {
|
||||
inja::json::array_t elements{};
|
||||
|
||||
// Add classes
|
||||
for(const auto &c : classes()) {
|
||||
for (const auto &c : classes()) {
|
||||
elements.emplace_back(c.get().context());
|
||||
}
|
||||
|
||||
// Add enums
|
||||
for(const auto &e : enums()) {
|
||||
for (const auto &e : enums()) {
|
||||
elements.emplace_back(e.get().context());
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,8 @@ diagram::files() const
|
||||
return files_;
|
||||
}
|
||||
|
||||
inja::json diagram::context() const {
|
||||
inja::json diagram::context() const
|
||||
{
|
||||
inja::json ctx;
|
||||
ctx["name"] = name();
|
||||
ctx["type"] = "include";
|
||||
@@ -143,7 +144,7 @@ inja::json diagram::context() const {
|
||||
inja::json::array_t elements{};
|
||||
|
||||
// Add files and directories
|
||||
for(const auto &f : files()) {
|
||||
for (const auto &f : files()) {
|
||||
elements.emplace_back(f.get().context());
|
||||
}
|
||||
|
||||
|
||||
@@ -95,14 +95,15 @@ std::string diagram::to_alias(
|
||||
return {};
|
||||
}
|
||||
|
||||
inja::json diagram::context() const {
|
||||
inja::json diagram::context() const
|
||||
{
|
||||
inja::json ctx;
|
||||
ctx["name"] = name();
|
||||
ctx["type"] = "package";
|
||||
|
||||
inja::json::array_t elements{};
|
||||
|
||||
for(const auto &p : packages()) {
|
||||
for (const auto &p : packages()) {
|
||||
elements.emplace_back(p.get().context());
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ std::string diagram::to_alias(const std::string &full_name) const
|
||||
return full_name;
|
||||
}
|
||||
|
||||
inja::json diagram::context() const {
|
||||
inja::json diagram::context() const
|
||||
{
|
||||
inja::json ctx;
|
||||
ctx["name"] = name();
|
||||
ctx["type"] = "sequence";
|
||||
|
||||
Reference in New Issue
Block a user