Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
eValid
};

struct AbstrackMethodCheckerPayload {
struct AbstractMethodCheckerPayload {

struct InvalidArgumentCountPayload {
InvalidArgumentCountPayload(size_t required, size_t actual)
Expand All @@ -55,13 +55,13 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
std::variant<std::monostate, InvalidArgumentCountPayload> payload;
};

llvm::Expected<std::map<llvm::StringLiteral, AbstrackMethodCheckerPayload>>
llvm::Expected<std::map<llvm::StringLiteral, AbstractMethodCheckerPayload>>
CheckAbstractMethodImplementation(
const python::PythonDictionary &class_dict) const {

using namespace python;

std::map<llvm::StringLiteral, AbstrackMethodCheckerPayload> checker;
std::map<llvm::StringLiteral, AbstractMethodCheckerPayload> checker;
#define SET_CASE_AND_CONTINUE(method_name, case) \
{ \
checker[method_name] = {case, {}}; \
Expand Down Expand Up @@ -102,7 +102,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
} else {
checker[method_name] = {
AbstractMethodCheckerCases::eInvalidArgumentCount,
AbstrackMethodCheckerPayload::InvalidArgumentCountPayload(
AbstractMethodCheckerPayload::InvalidArgumentCountPayload(
requirement.min_arg_count, arg_info.max_positional_args)};
}
}
Expand Down Expand Up @@ -291,7 +291,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
case AbstractMethodCheckerCases::eInvalidArgumentCount: {
auto &payload_variant = method_checker.second.payload;
if (!std::holds_alternative<
AbstrackMethodCheckerPayload::InvalidArgumentCountPayload>(
AbstractMethodCheckerPayload::InvalidArgumentCountPayload>(
payload_variant)) {
abstract_method_errors = llvm::joinErrors(
std::move(abstract_method_errors),
Expand All @@ -300,7 +300,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
obj_class_name.GetString(), method_checker.first)));
} else {
auto payload = std::get<
AbstrackMethodCheckerPayload::InvalidArgumentCountPayload>(
AbstractMethodCheckerPayload::InvalidArgumentCountPayload>(
payload_variant);
abstract_method_errors = llvm::joinErrors(
std::move(abstract_method_errors),
Expand Down
Loading