Skip to content

Commit

Permalink
Re-generate parser bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Sep 30, 2023
1 parent 7cddce6 commit 99a5ed3
Show file tree
Hide file tree
Showing 25 changed files with 5,466 additions and 2,490 deletions.
118 changes: 59 additions & 59 deletions src/CppParser/Bindings/CLI/AST.cpp

Large diffs are not rendered by default.

174 changes: 87 additions & 87 deletions src/CppParser/Bindings/CLI/CppParser.cpp

Large diffs are not rendered by default.

402 changes: 201 additions & 201 deletions src/CppParser/Bindings/CLI/Decl.cpp

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions src/CppParser/Bindings/CLI/Expr.cpp

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/CppParser/Bindings/CLI/Sources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ CppSharp::Parser::SourceLocation::SourceLocation(unsigned int ID)

CppSharp::Parser::SourceLocation::operator CppSharp::Parser::SourceLocation(unsigned int ID)
{
auto __ret = (::CppSharp::CppParser::SourceLocation) ID;
return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&__ret);
auto ___ret = (::CppSharp::CppParser::SourceLocation) ID;
return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&___ret);
}

unsigned int CppSharp::Parser::SourceLocation::ID::get()
Expand Down
68 changes: 34 additions & 34 deletions src/CppParser/Bindings/CLI/Stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ CppSharp::Parser::AST::Stmt::Stmt(CppSharp::Parser::AST::Stmt^ _0)
CppSharp::Parser::AST::Stmt::operator CppSharp::Parser::AST::Stmt^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
auto __ret = (::CppSharp::CppParser::AST::Stmt) __arg0;
auto ____ret = new class ::CppSharp::CppParser::AST::Stmt(__ret);
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)____ret, true);
auto ___ret = (::CppSharp::CppParser::AST::Stmt) __arg0;
auto _____ret = new class ::CppSharp::CppParser::AST::Stmt(___ret);
return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)_____ret, true);
}

::System::IntPtr CppSharp::Parser::AST::Stmt::__Instance::get()
Expand Down Expand Up @@ -165,9 +165,9 @@ CppSharp::Parser::AST::DeclStmt::DeclStmt()

CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::DeclStmt::Getdecls(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdecls(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)__ret);
auto ___ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdecls(i);
if (___ret == nullptr) return nullptr;
return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)___ret);
}

void CppSharp::Parser::AST::DeclStmt::Adddecls(CppSharp::Parser::AST::Declaration^ s)
Expand Down Expand Up @@ -238,8 +238,8 @@ void CppSharp::Parser::AST::DeclStmt::SingleDecl::set(CppSharp::Parser::AST::Dec

unsigned int CppSharp::Parser::AST::DeclStmt::GetdeclsCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdeclsCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdeclsCount();
return ___ret;
}

CppSharp::Parser::AST::NullStmt::NullStmt(class ::CppSharp::CppParser::AST::NullStmt* native)
Expand Down Expand Up @@ -344,9 +344,9 @@ CppSharp::Parser::AST::CompoundStmt::CompoundStmt()

CppSharp::Parser::AST::Stmt^ CppSharp::Parser::AST::CompoundStmt::Getbody(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbody(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)__ret);
auto ___ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbody(i);
if (___ret == nullptr) return nullptr;
return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)___ret);
}

void CppSharp::Parser::AST::CompoundStmt::Addbody(CppSharp::Parser::AST::Stmt^ s)
Expand Down Expand Up @@ -461,8 +461,8 @@ void CppSharp::Parser::AST::CompoundStmt::RBracLoc::set(CppSharp::Parser::Source

unsigned int CppSharp::Parser::AST::CompoundStmt::GetbodyCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbodyCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbodyCount();
return ___ret;
}

CppSharp::Parser::AST::SwitchCase::SwitchCase(class ::CppSharp::CppParser::AST::SwitchCase* native)
Expand Down Expand Up @@ -517,9 +517,9 @@ CppSharp::Parser::AST::SwitchCase::SwitchCase(CppSharp::Parser::AST::SwitchCase^
CppSharp::Parser::AST::SwitchCase::operator CppSharp::Parser::AST::SwitchCase^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
auto __ret = (::CppSharp::CppParser::AST::SwitchCase) __arg0;
auto ____ret = new class ::CppSharp::CppParser::AST::SwitchCase(__ret);
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::SwitchCase((class ::CppSharp::CppParser::AST::SwitchCase*)____ret, true);
auto ___ret = (::CppSharp::CppParser::AST::SwitchCase) __arg0;
auto _____ret = new class ::CppSharp::CppParser::AST::SwitchCase(___ret);
return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::SwitchCase((class ::CppSharp::CppParser::AST::SwitchCase*)_____ret, true);
}

CppSharp::Parser::SourceLocation CppSharp::Parser::AST::SwitchCase::KeywordLoc::get()
Expand Down Expand Up @@ -1802,9 +1802,9 @@ CppSharp::Parser::AST::AsmStmt::AsmStmt(CppSharp::Parser::AST::StmtClass klass)

CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::AsmStmt::Getinputs(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputs(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputs(i);
if (___ret == nullptr) return nullptr;
return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}

void CppSharp::Parser::AST::AsmStmt::Addinputs(CppSharp::Parser::AST::Expr^ s)
Expand All @@ -1822,9 +1822,9 @@ void CppSharp::Parser::AST::AsmStmt::Clearinputs()

CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::AsmStmt::Getoutputs(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputs(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputs(i);
if (___ret == nullptr) return nullptr;
return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}

void CppSharp::Parser::AST::AsmStmt::Addoutputs(CppSharp::Parser::AST::Expr^ s)
Expand Down Expand Up @@ -1853,9 +1853,9 @@ CppSharp::Parser::AST::AsmStmt::AsmStmt(CppSharp::Parser::AST::AsmStmt^ _0)
CppSharp::Parser::AST::AsmStmt::operator CppSharp::Parser::AST::AsmStmt^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
auto __ret = (::CppSharp::CppParser::AST::AsmStmt) __arg0;
auto ____ret = new class ::CppSharp::CppParser::AST::AsmStmt(__ret);
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AsmStmt((class ::CppSharp::CppParser::AST::AsmStmt*)____ret, true);
auto ___ret = (::CppSharp::CppParser::AST::AsmStmt) __arg0;
auto _____ret = new class ::CppSharp::CppParser::AST::AsmStmt(___ret);
return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AsmStmt((class ::CppSharp::CppParser::AST::AsmStmt*)_____ret, true);
}

::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ CppSharp::Parser::AST::AsmStmt::Inputs::get()
Expand Down Expand Up @@ -1978,14 +1978,14 @@ void CppSharp::Parser::AST::AsmStmt::NumClobbers::set(unsigned int value)

unsigned int CppSharp::Parser::AST::AsmStmt::GetinputsCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputsCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputsCount();
return ___ret;
}

unsigned int CppSharp::Parser::AST::AsmStmt::GetoutputsCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputsCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputsCount();
return ___ret;
}

CppSharp::Parser::AST::GCCAsmStmt::AsmStringPiece::AsmStringPiece(class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native)
Expand Down Expand Up @@ -2683,9 +2683,9 @@ CppSharp::Parser::AST::CapturedStmt::CapturedStmt()

CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CapturedStmt::GetcaptureInits(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_inits(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
auto ___ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_inits(i);
if (___ret == nullptr) return nullptr;
return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}

void CppSharp::Parser::AST::CapturedStmt::AddcaptureInits(CppSharp::Parser::AST::Expr^ s)
Expand Down Expand Up @@ -2756,8 +2756,8 @@ void CppSharp::Parser::AST::CapturedStmt::CaptureSize::set(unsigned int value)

unsigned int CppSharp::Parser::AST::CapturedStmt::GetcaptureInitsCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_initsCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_initsCount();
return ___ret;
}

CppSharp::Parser::AST::CXXCatchStmt::CXXCatchStmt(class ::CppSharp::CppParser::AST::CXXCatchStmt* native)
Expand Down
36 changes: 18 additions & 18 deletions src/CppParser/Bindings/CLI/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ CppSharp::Parser::AST::Type::Type(CppSharp::Parser::AST::Type^ _0)
CppSharp::Parser::AST::Type::operator CppSharp::Parser::AST::Type^(CppSharp::Parser::AST::TypeKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::TypeKind)kind;
auto __ret = (::CppSharp::CppParser::AST::Type) __arg0;
auto ____ret = new class ::CppSharp::CppParser::AST::Type(__ret);
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Type((class ::CppSharp::CppParser::AST::Type*)____ret, true);
auto ___ret = (::CppSharp::CppParser::AST::Type) __arg0;
auto _____ret = new class ::CppSharp::CppParser::AST::Type(___ret);
return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Type((class ::CppSharp::CppParser::AST::Type*)_____ret, true);
}

::System::IntPtr CppSharp::Parser::AST::Type::__Instance::get()
Expand Down Expand Up @@ -420,9 +420,9 @@ CppSharp::Parser::AST::FunctionType::FunctionType()

CppSharp::Parser::AST::Parameter^ CppSharp::Parser::AST::FunctionType::GetParameters(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParameters(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Parameter((class ::CppSharp::CppParser::AST::Parameter*)__ret);
auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParameters(i);
if (___ret == nullptr) return nullptr;
return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Parameter((class ::CppSharp::CppParser::AST::Parameter*)___ret);
}

void CppSharp::Parser::AST::FunctionType::AddParameters(CppSharp::Parser::AST::Parameter^ s)
Expand Down Expand Up @@ -505,8 +505,8 @@ void CppSharp::Parser::AST::FunctionType::Parameters::set(::System::Collections:

unsigned int CppSharp::Parser::AST::FunctionType::ParametersCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParametersCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParametersCount();
return ___ret;
}

CppSharp::Parser::AST::PointerType::PointerType(class ::CppSharp::CppParser::AST::PointerType* native)
Expand Down Expand Up @@ -961,9 +961,9 @@ CppSharp::Parser::AST::TemplateSpecializationType::TemplateSpecializationType(Cp

CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::TemplateSpecializationType::GetArguments(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArguments(i);
auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
auto ___ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArguments(i);
auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}

void CppSharp::Parser::AST::TemplateSpecializationType::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
Expand Down Expand Up @@ -1029,8 +1029,8 @@ void CppSharp::Parser::AST::TemplateSpecializationType::Desugared::set(CppSharp:

unsigned int CppSharp::Parser::AST::TemplateSpecializationType::ArgumentsCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArgumentsCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArgumentsCount();
return ___ret;
}

CppSharp::Parser::AST::DependentTemplateSpecializationType::DependentTemplateSpecializationType(class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native)
Expand Down Expand Up @@ -1082,9 +1082,9 @@ CppSharp::Parser::AST::DependentTemplateSpecializationType::DependentTemplateSpe

CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::DependentTemplateSpecializationType::GetArguments(unsigned int i)
{
auto __ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArguments(i);
auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
auto ___ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArguments(i);
auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}

void CppSharp::Parser::AST::DependentTemplateSpecializationType::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
Expand Down Expand Up @@ -1140,8 +1140,8 @@ void CppSharp::Parser::AST::DependentTemplateSpecializationType::Desugared::set(

unsigned int CppSharp::Parser::AST::DependentTemplateSpecializationType::ArgumentsCount::get()
{
auto __ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArgumentsCount();
return __ret;
auto ___ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArgumentsCount();
return ___ret;
}

CppSharp::Parser::AST::TemplateParameterType::TemplateParameterType(class ::CppSharp::CppParser::AST::TemplateParameterType* native)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
Expand Down
Loading

0 comments on commit 99a5ed3

Please sign in to comment.