Skip to content

Commit

Permalink
tried again after formatting command_frame.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavankumar07s committed Nov 13, 2024
1 parent 0c3797e commit d54548a
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/command_frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
static auto enum_to_string(
const sourcemeta::jsontoolkit::ReferenceEntryType type) -> std::string {
switch (type) {
case sourcemeta::jsontoolkit::ReferenceEntryType::Resource:
return "resource";
case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor:
return "anchor";
case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer:
return "pointer";
default:
return "unknown";
case sourcemeta::jsontoolkit::ReferenceEntryType::Resource:
return "resource";
case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor:
return "anchor";
case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer:
return "pointer";
default:
return "unknown";
}
}

Expand Down Expand Up @@ -110,20 +110,20 @@ auto sourcemeta::jsonschema::cli::frame(
} else {
for (const auto &[key, entry] : frame) {
switch (entry.type) {
case sourcemeta::jsontoolkit::ReferenceEntryType::Resource:
std::cout << "(LOCATION)";
break;
case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor:
std::cout << "(ANCHOR)";
break;
case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer:
std::cout << "(POINTER)";
break;
default:
// We should never get here
assert(false);
std::cout << "(UNKNOWN)";
break;
case sourcemeta::jsontoolkit::ReferenceEntryType::Resource:
std::cout << "(LOCATION)";
break;
case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor:
std::cout << "(ANCHOR)";
break;
case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer:
std::cout << "(POINTER)";
break;
default:
// We should never get here
assert(false);
std::cout << "(UNKNOWN)";
break;
}

std::cout << " URI: ";
Expand Down

0 comments on commit d54548a

Please sign in to comment.