Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavankumar07s committed Nov 13, 2024
1 parent 205123c commit 7967e00
Show file tree
Hide file tree
Showing 486 changed files with 29,584 additions and 30,646 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
24 changes: 12 additions & 12 deletions src/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,18 @@ auto print(const sourcemeta::blaze::TraceOutput &output,
}

switch (entry.type) {
case sourcemeta::blaze::TraceOutput::EntryType::Push:
stream << "-> (push) ";
break;
case sourcemeta::blaze::TraceOutput::EntryType::Pass:
stream << "<- (pass) ";
break;
case sourcemeta::blaze::TraceOutput::EntryType::Fail:
stream << "<- (fail) ";
break;
default:
assert(false);
break;
case sourcemeta::blaze::TraceOutput::EntryType::Push:
stream << "-> (push) ";
break;
case sourcemeta::blaze::TraceOutput::EntryType::Pass:
stream << "<- (pass) ";
break;
case sourcemeta::blaze::TraceOutput::EntryType::Fail:
stream << "<- (fail) ";
break;
default:
assert(false);
break;
}

stream << "\"";
Expand Down
3 changes: 1 addition & 2 deletions src/utils.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef SOURCEMETA_JSONSCHEMA_CLI_UTILS_H_
#define SOURCEMETA_JSONSCHEMA_CLI_UTILS_H_

#include <sourcemeta/blaze/compiler.h>
#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonpointer.h>
#include <sourcemeta/jsontoolkit/jsonschema.h>

#include <sourcemeta/blaze/compiler.h>

#include <filesystem> // std::filesystem
#include <map> // std::map
#include <ostream> // std::ostream
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions vendor/alterschema/src/linter/antipattern/const_with_type.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7967e00

Please sign in to comment.