diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp index 3aa914646..e1e5640fd 100644 --- a/src/CppParser/Bindings/CLI/AST.cpp +++ b/src/CppParser/Bindings/CLI/AST.cpp @@ -44,9 +44,9 @@ CppSharp::Parser::AST::NativeLibrary::NativeLibrary() ::System::String^ CppSharp::Parser::AST::NativeLibrary::GetSymbols(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbols(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbols(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::AST::NativeLibrary::AddSymbols(::System::String^ s) @@ -63,9 +63,9 @@ void CppSharp::Parser::AST::NativeLibrary::ClearSymbols() ::System::String^ CppSharp::Parser::AST::NativeLibrary::GetDependencies(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependencies(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependencies(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::AST::NativeLibrary::AddDependencies(::System::String^ s) @@ -167,14 +167,14 @@ void CppSharp::Parser::AST::NativeLibrary::Dependencies::set(::System::Collectio unsigned int CppSharp::Parser::AST::NativeLibrary::SymbolsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbolsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbolsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::NativeLibrary::DependenciesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependenciesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependenciesCount(); + return ___ret; } CppSharp::Parser::AST::Comment::Comment(class ::CppSharp::CppParser::AST::Comment* native) @@ -223,9 +223,9 @@ CppSharp::Parser::AST::Comment::Comment(CppSharp::Parser::AST::Comment^ _0) CppSharp::Parser::AST::Comment::operator CppSharp::Parser::AST::Comment^(CppSharp::Parser::AST::CommentKind kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)kind; - auto __ret = (::CppSharp::CppParser::AST::Comment) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::Comment(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Comment((class ::CppSharp::CppParser::AST::Comment*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::Comment) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::Comment(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Comment((class ::CppSharp::CppParser::AST::Comment*)_____ret, true); } ::System::IntPtr CppSharp::Parser::AST::Comment::__Instance::get() @@ -300,9 +300,9 @@ CppSharp::Parser::AST::BlockContentComment::BlockContentComment(CppSharp::Parser CppSharp::Parser::AST::BlockContentComment::operator CppSharp::Parser::AST::BlockContentComment^(CppSharp::Parser::AST::CommentKind Kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind; - auto __ret = (::CppSharp::CppParser::AST::BlockContentComment) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::BlockContentComment(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::BlockContentComment) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::BlockContentComment(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)_____ret, true); } CppSharp::Parser::AST::FullComment::FullComment(class ::CppSharp::CppParser::AST::FullComment* native) @@ -344,9 +344,9 @@ CppSharp::Parser::AST::FullComment::FullComment() CppSharp::Parser::AST::BlockContentComment^ CppSharp::Parser::AST::FullComment::GetBlocks(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocks(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocks(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)___ret); } void CppSharp::Parser::AST::FullComment::AddBlocks(CppSharp::Parser::AST::BlockContentComment^ s) @@ -397,8 +397,8 @@ void CppSharp::Parser::AST::FullComment::Blocks::set(::System::Collections::Gene unsigned int CppSharp::Parser::AST::FullComment::BlocksCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocksCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocksCount(); + return ___ret; } CppSharp::Parser::AST::InlineContentComment::InlineContentComment(class ::CppSharp::CppParser::AST::InlineContentComment* native) @@ -453,9 +453,9 @@ CppSharp::Parser::AST::InlineContentComment::InlineContentComment(CppSharp::Pars CppSharp::Parser::AST::InlineContentComment::operator CppSharp::Parser::AST::InlineContentComment^(CppSharp::Parser::AST::CommentKind Kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind; - auto __ret = (::CppSharp::CppParser::AST::InlineContentComment) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::InlineContentComment(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::InlineContentComment) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::InlineContentComment(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)_____ret, true); } bool CppSharp::Parser::AST::InlineContentComment::HasTrailingNewline::get() @@ -507,9 +507,9 @@ CppSharp::Parser::AST::ParagraphComment::ParagraphComment() CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::ParagraphComment::GetContent(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)___ret); } void CppSharp::Parser::AST::ParagraphComment::AddContent(CppSharp::Parser::AST::InlineContentComment^ s) @@ -570,8 +570,8 @@ void CppSharp::Parser::AST::ParagraphComment::Content::set(::System::Collections unsigned int CppSharp::Parser::AST::ParagraphComment::ContentCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContentCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContentCount(); + return ___ret; } CppSharp::Parser::AST::BlockCommandComment::Argument::Argument(class ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native) @@ -683,9 +683,9 @@ CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(CppSharp::Parser CppSharp::Parser::AST::BlockCommandComment::Argument^ CppSharp::Parser::AST::BlockCommandComment::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArguments(i); - auto ____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment::Argument(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((class ::CppSharp::CppParser::AST::BlockCommandComment::Argument*)____ret, true); + auto ___ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArguments(i); + auto _____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment::Argument(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((class ::CppSharp::CppParser::AST::BlockCommandComment::Argument*)_____ret, true); } void CppSharp::Parser::AST::BlockCommandComment::AddArguments(CppSharp::Parser::AST::BlockCommandComment::Argument^ s) @@ -714,9 +714,9 @@ CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(CppSharp::Parser CppSharp::Parser::AST::BlockCommandComment::operator CppSharp::Parser::AST::BlockCommandComment^(CppSharp::Parser::AST::CommentKind Kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind; - auto __ret = (::CppSharp::CppParser::AST::BlockCommandComment) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment((class ::CppSharp::CppParser::AST::BlockCommandComment*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::BlockCommandComment) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment((class ::CppSharp::CppParser::AST::BlockCommandComment*)_____ret, true); } unsigned int CppSharp::Parser::AST::BlockCommandComment::CommandId::get() @@ -767,8 +767,8 @@ void CppSharp::Parser::AST::BlockCommandComment::Arguments::set(::System::Collec unsigned int CppSharp::Parser::AST::BlockCommandComment::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment(class ::CppSharp::CppParser::AST::ParamCommandComment* native) @@ -877,8 +877,8 @@ CppSharp::Parser::AST::TParamCommandComment::TParamCommandComment() unsigned int CppSharp::Parser::AST::TParamCommandComment::GetPosition(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPosition(i); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPosition(i); + return ___ret; } void CppSharp::Parser::AST::TParamCommandComment::AddPosition([::System::Runtime::InteropServices::In, ::System::Runtime::InteropServices::Out] unsigned int% s) @@ -928,8 +928,8 @@ void CppSharp::Parser::AST::TParamCommandComment::Position::set(::System::Collec unsigned int CppSharp::Parser::AST::TParamCommandComment::PositionCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPositionCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPositionCount(); + return ___ret; } CppSharp::Parser::AST::VerbatimBlockLineComment::VerbatimBlockLineComment(class ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native) @@ -1028,9 +1028,9 @@ CppSharp::Parser::AST::VerbatimBlockComment::VerbatimBlockComment() CppSharp::Parser::AST::VerbatimBlockLineComment^ CppSharp::Parser::AST::VerbatimBlockComment::GetLines(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLines(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((class ::CppSharp::CppParser::AST::VerbatimBlockLineComment*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLines(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((class ::CppSharp::CppParser::AST::VerbatimBlockLineComment*)___ret); } void CppSharp::Parser::AST::VerbatimBlockComment::AddLines(CppSharp::Parser::AST::VerbatimBlockLineComment^ s) @@ -1081,8 +1081,8 @@ void CppSharp::Parser::AST::VerbatimBlockComment::Lines::set(::System::Collectio unsigned int CppSharp::Parser::AST::VerbatimBlockComment::LinesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLinesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLinesCount(); + return ___ret; } CppSharp::Parser::AST::VerbatimLineComment::VerbatimLineComment(class ::CppSharp::CppParser::AST::VerbatimLineComment* native) @@ -1243,9 +1243,9 @@ CppSharp::Parser::AST::InlineCommandComment::InlineCommandComment() CppSharp::Parser::AST::InlineCommandComment::Argument^ CppSharp::Parser::AST::InlineCommandComment::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArguments(i); - auto ____ret = new class ::CppSharp::CppParser::AST::InlineCommandComment::Argument(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((class ::CppSharp::CppParser::AST::InlineCommandComment::Argument*)____ret, true); + auto ___ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArguments(i); + auto _____ret = new class ::CppSharp::CppParser::AST::InlineCommandComment::Argument(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((class ::CppSharp::CppParser::AST::InlineCommandComment::Argument*)_____ret, true); } void CppSharp::Parser::AST::InlineCommandComment::AddArguments(CppSharp::Parser::AST::InlineCommandComment::Argument^ s) @@ -1319,8 +1319,8 @@ void CppSharp::Parser::AST::InlineCommandComment::Arguments::set(::System::Colle unsigned int CppSharp::Parser::AST::InlineCommandComment::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(class ::CppSharp::CppParser::AST::HTMLTagComment* native) @@ -1375,9 +1375,9 @@ CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(CppSharp::Parser::AST::HTM CppSharp::Parser::AST::HTMLTagComment::operator CppSharp::Parser::AST::HTMLTagComment^(CppSharp::Parser::AST::CommentKind Kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind; - auto __ret = (::CppSharp::CppParser::AST::HTMLTagComment) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::HTMLTagComment(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLTagComment((class ::CppSharp::CppParser::AST::HTMLTagComment*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::HTMLTagComment) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::HTMLTagComment(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLTagComment((class ::CppSharp::CppParser::AST::HTMLTagComment*)_____ret, true); } CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Attribute(class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native) @@ -1491,9 +1491,9 @@ CppSharp::Parser::AST::HTMLStartTagComment::HTMLStartTagComment() CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ CppSharp::Parser::AST::HTMLStartTagComment::GetAttributes(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributes(i); - auto ____ret = new class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)____ret, true); + auto ___ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributes(i); + auto _____ret = new class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)_____ret, true); } void CppSharp::Parser::AST::HTMLStartTagComment::AddAttributes(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ s) @@ -1557,8 +1557,8 @@ void CppSharp::Parser::AST::HTMLStartTagComment::Attributes::set(::System::Colle unsigned int CppSharp::Parser::AST::HTMLStartTagComment::AttributesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributesCount(); + return ___ret; } CppSharp::Parser::AST::HTMLEndTagComment::HTMLEndTagComment(class ::CppSharp::CppParser::AST::HTMLEndTagComment* native) diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp index 000a7d3f0..b0d2a4fe9 100644 --- a/src/CppParser/Bindings/CLI/CppParser.cpp +++ b/src/CppParser/Bindings/CLI/CppParser.cpp @@ -47,9 +47,9 @@ CppSharp::Parser::CppParserOptions::CppParserOptions() ::System::String^ CppSharp::Parser::CppParserOptions::GetArguments(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArguments(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArguments(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddArguments(::System::String^ s) @@ -66,9 +66,9 @@ void CppSharp::Parser::CppParserOptions::ClearArguments() ::System::String^ CppSharp::Parser::CppParserOptions::GetCompilationOptions(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptions(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptions(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddCompilationOptions(::System::String^ s) @@ -85,9 +85,9 @@ void CppSharp::Parser::CppParserOptions::ClearCompilationOptions() ::System::String^ CppSharp::Parser::CppParserOptions::GetSourceFiles(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFiles(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFiles(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddSourceFiles(::System::String^ s) @@ -104,9 +104,9 @@ void CppSharp::Parser::CppParserOptions::ClearSourceFiles() ::System::String^ CppSharp::Parser::CppParserOptions::GetIncludeDirs(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirs(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirs(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddIncludeDirs(::System::String^ s) @@ -123,9 +123,9 @@ void CppSharp::Parser::CppParserOptions::ClearIncludeDirs() ::System::String^ CppSharp::Parser::CppParserOptions::GetSystemIncludeDirs(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirs(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirs(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddSystemIncludeDirs(::System::String^ s) @@ -142,9 +142,9 @@ void CppSharp::Parser::CppParserOptions::ClearSystemIncludeDirs() ::System::String^ CppSharp::Parser::CppParserOptions::GetDefines(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefines(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefines(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddDefines(::System::String^ s) @@ -161,9 +161,9 @@ void CppSharp::Parser::CppParserOptions::ClearDefines() ::System::String^ CppSharp::Parser::CppParserOptions::GetUndefines(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefines(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefines(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddUndefines(::System::String^ s) @@ -180,9 +180,9 @@ void CppSharp::Parser::CppParserOptions::ClearUndefines() ::System::String^ CppSharp::Parser::CppParserOptions::GetSupportedStdTypes(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypes(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypes(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddSupportedStdTypes(::System::String^ s) @@ -199,9 +199,9 @@ void CppSharp::Parser::CppParserOptions::ClearSupportedStdTypes() ::System::String^ CppSharp::Parser::CppParserOptions::GetSupportedFunctionTemplates(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplates(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplates(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppParserOptions::AddSupportedFunctionTemplates(::System::String^ s) @@ -554,62 +554,62 @@ void CppSharp::Parser::CppParserOptions::SkipFunctionBodies::set(bool value) ::System::String^ CppSharp::Parser::CppParserOptions::ClangVersion::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getClangVersion(); - return clix::marshalString(__ret); + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getClangVersion(); + return clix::marshalString(___ret); } unsigned int CppSharp::Parser::CppParserOptions::ArgumentsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArgumentsCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::CompilationOptionsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptionsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptionsCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::SourceFilesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFilesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFilesCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::IncludeDirsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirsCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::SystemIncludeDirsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirsCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::DefinesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefinesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefinesCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::UndefinesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefinesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefinesCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::SupportedStdTypesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypesCount(); + return ___ret; } unsigned int CppSharp::Parser::CppParserOptions::SupportedFunctionTemplatesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplatesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplatesCount(); + return ___ret; } CppSharp::Parser::CppLinkerOptions::CppLinkerOptions(struct ::CppSharp::CppParser::CppLinkerOptions* native) @@ -647,9 +647,9 @@ CppSharp::Parser::CppLinkerOptions::CppLinkerOptions() ::System::String^ CppSharp::Parser::CppLinkerOptions::GetArguments(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArguments(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArguments(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppLinkerOptions::AddArguments(::System::String^ s) @@ -666,9 +666,9 @@ void CppSharp::Parser::CppLinkerOptions::ClearArguments() ::System::String^ CppSharp::Parser::CppLinkerOptions::GetLibraryDirs(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirs(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirs(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppLinkerOptions::AddLibraryDirs(::System::String^ s) @@ -685,9 +685,9 @@ void CppSharp::Parser::CppLinkerOptions::ClearLibraryDirs() ::System::String^ CppSharp::Parser::CppLinkerOptions::GetLibraries(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraries(i); - if (__ret == nullptr) return nullptr; - return (__ret == 0 ? nullptr : clix::marshalString(__ret)); + auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraries(i); + if (___ret == nullptr) return nullptr; + return (___ret == 0 ? nullptr : clix::marshalString(___ret)); } void CppSharp::Parser::CppLinkerOptions::AddLibraries(::System::String^ s) @@ -792,20 +792,20 @@ void CppSharp::Parser::CppLinkerOptions::Libraries::set(::System::Collections::G unsigned int CppSharp::Parser::CppLinkerOptions::ArgumentsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArgumentsCount(); + return ___ret; } unsigned int CppSharp::Parser::CppLinkerOptions::LibraryDirsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirsCount(); + return ___ret; } unsigned int CppSharp::Parser::CppLinkerOptions::LibrariesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibrariesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibrariesCount(); + return ___ret; } CppSharp::Parser::ParserDiagnostic::ParserDiagnostic(struct ::CppSharp::CppParser::ParserDiagnostic* native) @@ -954,9 +954,9 @@ CppSharp::Parser::ParserResult::ParserResult(CppSharp::Parser::ParserResult^ _0) CppSharp::Parser::ParserDiagnostic^ CppSharp::Parser::ParserResult::GetDiagnostics(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnostics(i); - auto ____ret = new struct ::CppSharp::CppParser::ParserDiagnostic(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserDiagnostic((struct ::CppSharp::CppParser::ParserDiagnostic*)____ret, true); + auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnostics(i); + auto _____ret = new struct ::CppSharp::CppParser::ParserDiagnostic(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserDiagnostic((struct ::CppSharp::CppParser::ParserDiagnostic*)_____ret, true); } void CppSharp::Parser::ParserResult::AddDiagnostics(CppSharp::Parser::ParserDiagnostic^ s) @@ -974,9 +974,9 @@ void CppSharp::Parser::ParserResult::ClearDiagnostics() CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::GetLibraries(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((class ::CppSharp::CppParser::AST::NativeLibrary*)__ret); + auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((class ::CppSharp::CppParser::AST::NativeLibrary*)___ret); } void CppSharp::Parser::ParserResult::AddLibraries(CppSharp::Parser::AST::NativeLibrary^ s) @@ -1073,14 +1073,14 @@ void CppSharp::Parser::ParserResult::TargetInfo::set(CppSharp::Parser::ParserTar unsigned int CppSharp::Parser::ParserResult::DiagnosticsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnosticsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnosticsCount(); + return ___ret; } unsigned int CppSharp::Parser::ParserResult::LibrariesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibrariesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibrariesCount(); + return ___ret; } CppSharp::Parser::ClangParser::ClangParser(class ::CppSharp::CppParser::ClangParser* native) @@ -1113,17 +1113,17 @@ CppSharp::Parser::ClangParser::~ClangParser() CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseHeader(CppSharp::Parser::CppParserOptions^ Opts) { auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr; - auto __ret = ::CppSharp::CppParser::ClangParser::ParseHeader(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret); + auto ___ret = ::CppSharp::CppParser::ClangParser::ParseHeader(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret); } CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseLibrary(CppSharp::Parser::CppLinkerOptions^ Opts) { auto __arg0 = (struct ::CppSharp::CppParser::CppLinkerOptions*)Opts->NativePtr; - auto __ret = ::CppSharp::CppParser::ClangParser::ParseLibrary(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret); + auto ___ret = ::CppSharp::CppParser::ClangParser::ParseLibrary(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret); } CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Build(CppSharp::Parser::CppParserOptions^ Opts, CppSharp::Parser::CppLinkerOptions^ LinkerOptions, ::System::String^ File, bool Last) @@ -1131,18 +1131,18 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Build(CppSharp::P auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr; auto __arg1 = (struct ::CppSharp::CppParser::CppLinkerOptions*)LinkerOptions->NativePtr; auto __arg2 = clix::marshalString(File); - auto __ret = ::CppSharp::CppParser::ClangParser::Build(__arg0, __arg1, __arg2, Last); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret); + auto ___ret = ::CppSharp::CppParser::ClangParser::Build(__arg0, __arg1, __arg2, Last); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret); } CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Compile(CppSharp::Parser::CppParserOptions^ Opts, ::System::String^ File) { auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr; auto __arg1 = clix::marshalString(File); - auto __ret = ::CppSharp::CppParser::ClangParser::Compile(__arg0, __arg1); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret); + auto ___ret = ::CppSharp::CppParser::ClangParser::Compile(__arg0, __arg1); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret); } CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Link(CppSharp::Parser::CppParserOptions^ Opts, CppSharp::Parser::CppLinkerOptions^ LinkerOptions, ::System::String^ File, bool Last) @@ -1150,9 +1150,9 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Link(CppSharp::Pa auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr; auto __arg1 = (struct ::CppSharp::CppParser::CppLinkerOptions*)LinkerOptions->NativePtr; auto __arg2 = clix::marshalString(File); - auto __ret = ::CppSharp::CppParser::ClangParser::Link(__arg0, __arg1, __arg2, Last); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret); + auto ___ret = ::CppSharp::CppParser::ClangParser::Link(__arg0, __arg1, __arg2, Last); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret); } CppSharp::Parser::ClangParser::ClangParser() diff --git a/src/CppParser/Bindings/CLI/Decl.cpp b/src/CppParser/Bindings/CLI/Decl.cpp index 3de0e48de..36772ac7c 100644 --- a/src/CppParser/Bindings/CLI/Decl.cpp +++ b/src/CppParser/Bindings/CLI/Decl.cpp @@ -58,9 +58,9 @@ CppSharp::Parser::AST::Declaration::Declaration(CppSharp::Parser::AST::Declarati CppSharp::Parser::AST::PreprocessedEntity^ CppSharp::Parser::AST::Declaration::GetPreprocessedEntities(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntities(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::PreprocessedEntity((class ::CppSharp::CppParser::AST::PreprocessedEntity*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntities(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::PreprocessedEntity((class ::CppSharp::CppParser::AST::PreprocessedEntity*)___ret); } void CppSharp::Parser::AST::Declaration::AddPreprocessedEntities(CppSharp::Parser::AST::PreprocessedEntity^ s) @@ -78,9 +78,9 @@ void CppSharp::Parser::AST::Declaration::ClearPreprocessedEntities() CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Declaration::GetRedeclarations(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarations(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::Declaration*)NativePtr)->getRedeclarations(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::Declaration::AddRedeclarations(CppSharp::Parser::AST::Declaration^ s) @@ -99,9 +99,9 @@ void CppSharp::Parser::AST::Declaration::ClearRedeclarations() CppSharp::Parser::AST::Declaration::operator CppSharp::Parser::AST::Declaration^(CppSharp::Parser::AST::DeclarationKind kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind; - auto __ret = (::CppSharp::CppParser::AST::Declaration) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::Declaration(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::Declaration) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::Declaration(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)_____ret, true); } ::System::IntPtr CppSharp::Parser::AST::Declaration::__Instance::get() @@ -364,14 +364,14 @@ void CppSharp::Parser::AST::Declaration::Comment::set(CppSharp::Parser::AST::Raw unsigned int CppSharp::Parser::AST::Declaration::PreprocessedEntitiesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntitiesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntitiesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::Declaration::RedeclarationsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarationsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarationsCount(); + return ___ret; } CppSharp::Parser::AST::DeclarationContext::DeclarationContext(class ::CppSharp::CppParser::AST::DeclarationContext* native) @@ -414,9 +414,9 @@ CppSharp::Parser::AST::DeclarationContext::DeclarationContext(CppSharp::Parser:: CppSharp::Parser::AST::Namespace^ CppSharp::Parser::AST::DeclarationContext::GetNamespaces(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespaces(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Namespace((class ::CppSharp::CppParser::AST::Namespace*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespaces(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Namespace((class ::CppSharp::CppParser::AST::Namespace*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddNamespaces(CppSharp::Parser::AST::Namespace^ s) @@ -434,9 +434,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearNamespaces() CppSharp::Parser::AST::Enumeration^ CppSharp::Parser::AST::DeclarationContext::GetEnums(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnums(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration((class ::CppSharp::CppParser::AST::Enumeration*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnums(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration((class ::CppSharp::CppParser::AST::Enumeration*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddEnums(CppSharp::Parser::AST::Enumeration^ s) @@ -454,9 +454,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearEnums() CppSharp::Parser::AST::Function^ CppSharp::Parser::AST::DeclarationContext::GetFunctions(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctions(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Function((class ::CppSharp::CppParser::AST::Function*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctions(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Function((class ::CppSharp::CppParser::AST::Function*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddFunctions(CppSharp::Parser::AST::Function^ s) @@ -474,9 +474,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearFunctions() CppSharp::Parser::AST::Class^ CppSharp::Parser::AST::DeclarationContext::GetClasses(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClasses(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Class((class ::CppSharp::CppParser::AST::Class*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClasses(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Class((class ::CppSharp::CppParser::AST::Class*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddClasses(CppSharp::Parser::AST::Class^ s) @@ -494,9 +494,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearClasses() CppSharp::Parser::AST::Template^ CppSharp::Parser::AST::DeclarationContext::GetTemplates(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplates(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplates(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddTemplates(CppSharp::Parser::AST::Template^ s) @@ -514,9 +514,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearTemplates() CppSharp::Parser::AST::TypedefDecl^ CppSharp::Parser::AST::DeclarationContext::GetTypedefs(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefs(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefDecl((class ::CppSharp::CppParser::AST::TypedefDecl*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefs(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefDecl((class ::CppSharp::CppParser::AST::TypedefDecl*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddTypedefs(CppSharp::Parser::AST::TypedefDecl^ s) @@ -534,9 +534,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearTypedefs() CppSharp::Parser::AST::TypeAlias^ CppSharp::Parser::AST::DeclarationContext::GetTypeAliases(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliases(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypeAlias((class ::CppSharp::CppParser::AST::TypeAlias*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliases(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypeAlias((class ::CppSharp::CppParser::AST::TypeAlias*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddTypeAliases(CppSharp::Parser::AST::TypeAlias^ s) @@ -554,9 +554,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearTypeAliases() CppSharp::Parser::AST::Variable^ CppSharp::Parser::AST::DeclarationContext::GetVariables(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariables(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Variable((class ::CppSharp::CppParser::AST::Variable*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariables(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Variable((class ::CppSharp::CppParser::AST::Variable*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddVariables(CppSharp::Parser::AST::Variable^ s) @@ -574,9 +574,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearVariables() CppSharp::Parser::AST::Friend^ CppSharp::Parser::AST::DeclarationContext::GetFriends(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriends(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Friend((class ::CppSharp::CppParser::AST::Friend*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriends(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Friend((class ::CppSharp::CppParser::AST::Friend*)___ret); } void CppSharp::Parser::AST::DeclarationContext::AddFriends(CppSharp::Parser::AST::Friend^ s) @@ -605,9 +605,9 @@ CppSharp::Parser::AST::DeclarationContext::DeclarationContext(CppSharp::Parser:: CppSharp::Parser::AST::DeclarationContext::operator CppSharp::Parser::AST::DeclarationContext^(CppSharp::Parser::AST::DeclarationKind kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind; - auto __ret = (::CppSharp::CppParser::AST::DeclarationContext) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::DeclarationContext(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::DeclarationContext((class ::CppSharp::CppParser::AST::DeclarationContext*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::DeclarationContext) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::DeclarationContext(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::DeclarationContext((class ::CppSharp::CppParser::AST::DeclarationContext*)_____ret, true); } ::System::Collections::Generic::List^ CppSharp::Parser::AST::DeclarationContext::Namespaces::get() @@ -829,56 +829,56 @@ void CppSharp::Parser::AST::DeclarationContext::IsAnonymous::set(bool value) unsigned int CppSharp::Parser::AST::DeclarationContext::NamespacesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespacesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespacesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::EnumsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnumsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnumsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::FunctionsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctionsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctionsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::ClassesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClassesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClassesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::TemplatesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplatesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplatesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::TypedefsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::TypeAliasesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliasesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliasesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::VariablesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariablesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariablesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::DeclarationContext::FriendsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriendsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriendsCount(); + return ___ret; } CppSharp::Parser::AST::TypedefNameDecl::TypedefNameDecl(class ::CppSharp::CppParser::AST::TypedefNameDecl* native) @@ -932,9 +932,9 @@ CppSharp::Parser::AST::TypedefNameDecl::TypedefNameDecl(CppSharp::Parser::AST::T CppSharp::Parser::AST::TypedefNameDecl::operator CppSharp::Parser::AST::TypedefNameDecl^(CppSharp::Parser::AST::DeclarationKind kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind; - auto __ret = (::CppSharp::CppParser::AST::TypedefNameDecl) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::TypedefNameDecl(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefNameDecl((class ::CppSharp::CppParser::AST::TypedefNameDecl*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::TypedefNameDecl) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::TypedefNameDecl(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefNameDecl((class ::CppSharp::CppParser::AST::TypedefNameDecl*)_____ret, true); } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::get() @@ -1367,9 +1367,9 @@ CppSharp::Parser::AST::CallExprObsolete::CallExprObsolete(::System::String^ str, CppSharp::Parser::AST::ExpressionObsolete^ CppSharp::Parser::AST::CallExprObsolete::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArguments(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArguments(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)___ret); } void CppSharp::Parser::AST::CallExprObsolete::AddArguments(CppSharp::Parser::AST::ExpressionObsolete^ s) @@ -1420,8 +1420,8 @@ void CppSharp::Parser::AST::CallExprObsolete::Arguments::set(::System::Collectio unsigned int CppSharp::Parser::AST::CallExprObsolete::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::CXXConstructExprObsolete::CXXConstructExprObsolete(class ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native) @@ -1465,9 +1465,9 @@ CppSharp::Parser::AST::CXXConstructExprObsolete::CXXConstructExprObsolete(::Syst CppSharp::Parser::AST::ExpressionObsolete^ CppSharp::Parser::AST::CXXConstructExprObsolete::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArguments(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArguments(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)___ret); } void CppSharp::Parser::AST::CXXConstructExprObsolete::AddArguments(CppSharp::Parser::AST::ExpressionObsolete^ s) @@ -1518,8 +1518,8 @@ void CppSharp::Parser::AST::CXXConstructExprObsolete::Arguments::set(::System::C unsigned int CppSharp::Parser::AST::CXXConstructExprObsolete::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::Parameter::Parameter(class ::CppSharp::CppParser::AST::Parameter* native) @@ -1670,9 +1670,9 @@ CppSharp::Parser::AST::Function::Function() CppSharp::Parser::AST::Parameter^ CppSharp::Parser::AST::Function::GetParameters(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Function*)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::Function*)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::Function::AddParameters(CppSharp::Parser::AST::Parameter^ s) @@ -1917,8 +1917,8 @@ void CppSharp::Parser::AST::Function::QualifiedType::set(CppSharp::Parser::AST:: unsigned int CppSharp::Parser::AST::Function::ParametersCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Function*)NativePtr)->getParametersCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Function*)NativePtr)->getParametersCount(); + return ___ret; } CppSharp::Parser::AST::Method::Method(class ::CppSharp::CppParser::AST::Method* native) @@ -1960,9 +1960,9 @@ CppSharp::Parser::AST::Method::Method() CppSharp::Parser::AST::Method^ CppSharp::Parser::AST::Method::GetOverriddenMethods(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethods(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethods(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)___ret); } void CppSharp::Parser::AST::Method::AddOverriddenMethods(CppSharp::Parser::AST::Method^ s) @@ -2115,8 +2115,8 @@ void CppSharp::Parser::AST::Method::OverriddenMethods::set(::System::Collections unsigned int CppSharp::Parser::AST::Method::OverriddenMethodsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethodsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethodsCount(); + return ___ret; } CppSharp::Parser::AST::Enumeration::Item::Item(class ::CppSharp::CppParser::AST::Enumeration::Item* native) @@ -2225,9 +2225,9 @@ CppSharp::Parser::AST::Enumeration::Enumeration() CppSharp::Parser::AST::Enumeration::Item^ CppSharp::Parser::AST::Enumeration::GetItems(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItems(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItems(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)___ret); } void CppSharp::Parser::AST::Enumeration::AddItems(CppSharp::Parser::AST::Enumeration::Item^ s) @@ -2246,9 +2246,9 @@ void CppSharp::Parser::AST::Enumeration::ClearItems() CppSharp::Parser::AST::Enumeration::Item^ CppSharp::Parser::AST::Enumeration::FindItemByName(::System::String^ Name) { auto __arg0 = clix::marshalString(Name); - auto __ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->FindItemByName(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->FindItemByName(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)___ret); } CppSharp::Parser::AST::Enumeration::Enumeration(CppSharp::Parser::AST::Enumeration^ _0) @@ -2316,8 +2316,8 @@ void CppSharp::Parser::AST::Enumeration::Items::set(::System::Collections::Gener unsigned int CppSharp::Parser::AST::Enumeration::ItemsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItemsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItemsCount(); + return ___ret; } CppSharp::Parser::AST::Variable::Variable(class ::CppSharp::CppParser::AST::Variable* native) @@ -2763,9 +2763,9 @@ CppSharp::Parser::AST::VTableLayout::VTableLayout(CppSharp::Parser::AST::VTableL CppSharp::Parser::AST::VTableComponent^ CppSharp::Parser::AST::VTableLayout::GetComponents(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponents(i); - auto ____ret = new struct ::CppSharp::CppParser::AST::VTableComponent(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VTableComponent((struct ::CppSharp::CppParser::AST::VTableComponent*)____ret, true); + auto ___ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponents(i); + auto _____ret = new struct ::CppSharp::CppParser::AST::VTableComponent(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VTableComponent((struct ::CppSharp::CppParser::AST::VTableComponent*)_____ret, true); } void CppSharp::Parser::AST::VTableLayout::AddComponents(CppSharp::Parser::AST::VTableComponent^ s) @@ -2819,8 +2819,8 @@ void CppSharp::Parser::AST::VTableLayout::Components::set(::System::Collections: unsigned int CppSharp::Parser::AST::VTableLayout::ComponentsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponentsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponentsCount(); + return ___ret; } CppSharp::Parser::AST::VFTableInfo::VFTableInfo(struct ::CppSharp::CppParser::AST::VFTableInfo* native) @@ -3118,9 +3118,9 @@ CppSharp::Parser::AST::ClassLayout::ClassLayout() CppSharp::Parser::AST::VFTableInfo^ CppSharp::Parser::AST::ClassLayout::GetVFTables(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTables(i); - auto ____ret = new struct ::CppSharp::CppParser::AST::VFTableInfo(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VFTableInfo((struct ::CppSharp::CppParser::AST::VFTableInfo*)____ret, true); + auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTables(i); + auto _____ret = new struct ::CppSharp::CppParser::AST::VFTableInfo(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VFTableInfo((struct ::CppSharp::CppParser::AST::VFTableInfo*)_____ret, true); } void CppSharp::Parser::AST::ClassLayout::AddVFTables(CppSharp::Parser::AST::VFTableInfo^ s) @@ -3138,9 +3138,9 @@ void CppSharp::Parser::AST::ClassLayout::ClearVFTables() CppSharp::Parser::AST::LayoutField^ CppSharp::Parser::AST::ClassLayout::GetFields(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFields(i); - auto ____ret = new class ::CppSharp::CppParser::AST::LayoutField(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutField((class ::CppSharp::CppParser::AST::LayoutField*)____ret, true); + auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFields(i); + auto _____ret = new class ::CppSharp::CppParser::AST::LayoutField(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutField((class ::CppSharp::CppParser::AST::LayoutField*)_____ret, true); } void CppSharp::Parser::AST::ClassLayout::AddFields(CppSharp::Parser::AST::LayoutField^ s) @@ -3158,9 +3158,9 @@ void CppSharp::Parser::AST::ClassLayout::ClearFields() CppSharp::Parser::AST::LayoutBase^ CppSharp::Parser::AST::ClassLayout::GetBases(unsigned int i) { - auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBases(i); - auto ____ret = new class ::CppSharp::CppParser::AST::LayoutBase(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutBase((class ::CppSharp::CppParser::AST::LayoutBase*)____ret, true); + auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBases(i); + auto _____ret = new class ::CppSharp::CppParser::AST::LayoutBase(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutBase((class ::CppSharp::CppParser::AST::LayoutBase*)_____ret, true); } void CppSharp::Parser::AST::ClassLayout::AddBases(CppSharp::Parser::AST::LayoutBase^ s) @@ -3357,20 +3357,20 @@ void CppSharp::Parser::AST::ClassLayout::Bases::set(::System::Collections::Gener unsigned int CppSharp::Parser::AST::ClassLayout::VFTablesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTablesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTablesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::ClassLayout::FieldsCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFieldsCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFieldsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::ClassLayout::BasesCount::get() { - auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBasesCount(); - return __ret; + auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBasesCount(); + return ___ret; } CppSharp::Parser::AST::Class::Class(class ::CppSharp::CppParser::AST::Class* native) @@ -3412,9 +3412,9 @@ CppSharp::Parser::AST::Class::Class() CppSharp::Parser::AST::BaseClassSpecifier^ CppSharp::Parser::AST::Class::GetBases(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBases(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BaseClassSpecifier((struct ::CppSharp::CppParser::AST::BaseClassSpecifier*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBases(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BaseClassSpecifier((struct ::CppSharp::CppParser::AST::BaseClassSpecifier*)___ret); } void CppSharp::Parser::AST::Class::AddBases(CppSharp::Parser::AST::BaseClassSpecifier^ s) @@ -3432,9 +3432,9 @@ void CppSharp::Parser::AST::Class::ClearBases() CppSharp::Parser::AST::Field^ CppSharp::Parser::AST::Class::GetFields(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFields(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Field((class ::CppSharp::CppParser::AST::Field*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFields(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Field((class ::CppSharp::CppParser::AST::Field*)___ret); } void CppSharp::Parser::AST::Class::AddFields(CppSharp::Parser::AST::Field^ s) @@ -3452,9 +3452,9 @@ void CppSharp::Parser::AST::Class::ClearFields() CppSharp::Parser::AST::Method^ CppSharp::Parser::AST::Class::GetMethods(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethods(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethods(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)___ret); } void CppSharp::Parser::AST::Class::AddMethods(CppSharp::Parser::AST::Method^ s) @@ -3472,9 +3472,9 @@ void CppSharp::Parser::AST::Class::ClearMethods() CppSharp::Parser::AST::AccessSpecifierDecl^ CppSharp::Parser::AST::Class::GetSpecifiers(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiers(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AccessSpecifierDecl((class ::CppSharp::CppParser::AST::AccessSpecifierDecl*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiers(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AccessSpecifierDecl((class ::CppSharp::CppParser::AST::AccessSpecifierDecl*)___ret); } void CppSharp::Parser::AST::Class::AddSpecifiers(CppSharp::Parser::AST::AccessSpecifierDecl^ s) @@ -3714,26 +3714,26 @@ void CppSharp::Parser::AST::Class::Layout::set(CppSharp::Parser::AST::ClassLayou unsigned int CppSharp::Parser::AST::Class::BasesCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBasesCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBasesCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::Class::FieldsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFieldsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFieldsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::Class::MethodsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethodsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethodsCount(); + return ___ret; } unsigned int CppSharp::Parser::AST::Class::SpecifiersCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiersCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiersCount(); + return ___ret; } CppSharp::Parser::AST::Template::Template(class ::CppSharp::CppParser::AST::Template* native) @@ -3783,9 +3783,9 @@ CppSharp::Parser::AST::Template::Template() CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Template::GetParameters(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParameters(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::Template*)NativePtr)->getParameters(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::Template::AddParameters(CppSharp::Parser::AST::Declaration^ s) @@ -3814,9 +3814,9 @@ CppSharp::Parser::AST::Template::Template(CppSharp::Parser::AST::Template^ _0) CppSharp::Parser::AST::Template::operator CppSharp::Parser::AST::Template^(CppSharp::Parser::AST::DeclarationKind kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind; - auto __ret = (::CppSharp::CppParser::AST::Template) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::Template(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::Template) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::Template(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)_____ret, true); } CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Template::TemplatedDecl::get() @@ -3854,8 +3854,8 @@ void CppSharp::Parser::AST::Template::Parameters::set(::System::Collections::Gen unsigned int CppSharp::Parser::AST::Template::ParametersCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParametersCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParametersCount(); + return ___ret; } CppSharp::Parser::AST::TypeAliasTemplate::TypeAliasTemplate(class ::CppSharp::CppParser::AST::TypeAliasTemplate* native) @@ -3956,9 +3956,9 @@ CppSharp::Parser::AST::TemplateParameter::TemplateParameter(CppSharp::Parser::AS CppSharp::Parser::AST::TemplateParameter::operator CppSharp::Parser::AST::TemplateParameter^(CppSharp::Parser::AST::DeclarationKind kind) { auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind; - auto __ret = (::CppSharp::CppParser::AST::TemplateParameter) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::TemplateParameter(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateParameter((class ::CppSharp::CppParser::AST::TemplateParameter*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::TemplateParameter) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::TemplateParameter(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateParameter((class ::CppSharp::CppParser::AST::TemplateParameter*)_____ret, true); } unsigned int CppSharp::Parser::AST::TemplateParameter::Depth::get() @@ -4275,9 +4275,9 @@ CppSharp::Parser::AST::ClassTemplate::ClassTemplate() CppSharp::Parser::AST::ClassTemplateSpecialization^ CppSharp::Parser::AST::ClassTemplate::GetSpecializations(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializations(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializations(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)___ret); } void CppSharp::Parser::AST::ClassTemplate::AddSpecializations(CppSharp::Parser::AST::ClassTemplateSpecialization^ s) @@ -4296,17 +4296,17 @@ void CppSharp::Parser::AST::ClassTemplate::ClearSpecializations() CppSharp::Parser::AST::ClassTemplateSpecialization^ CppSharp::Parser::AST::ClassTemplate::FindSpecialization(::System::String^ usr) { auto __arg0 = clix::marshalString(usr); - auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindSpecialization(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindSpecialization(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)___ret); } CppSharp::Parser::AST::ClassTemplatePartialSpecialization^ CppSharp::Parser::AST::ClassTemplate::FindPartialSpecialization(::System::String^ usr) { auto __arg0 = clix::marshalString(usr); - auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindPartialSpecialization(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindPartialSpecialization(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization*)___ret); } CppSharp::Parser::AST::ClassTemplate::ClassTemplate(CppSharp::Parser::AST::ClassTemplate^ _0) @@ -4344,8 +4344,8 @@ void CppSharp::Parser::AST::ClassTemplate::Specializations::set(::System::Collec unsigned int CppSharp::Parser::AST::ClassTemplate::SpecializationsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializationsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializationsCount(); + return ___ret; } CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization(class ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native) @@ -4387,9 +4387,9 @@ CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization( CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::ClassTemplateSpecialization::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)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::ClassTemplateSpecialization*)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::ClassTemplateSpecialization::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s) @@ -4463,8 +4463,8 @@ void CppSharp::Parser::AST::ClassTemplateSpecialization::SpecializationKind::set unsigned int CppSharp::Parser::AST::ClassTemplateSpecialization::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::ClassTemplatePartialSpecialization::ClassTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native) @@ -4553,9 +4553,9 @@ CppSharp::Parser::AST::FunctionTemplate::FunctionTemplate() CppSharp::Parser::AST::FunctionTemplateSpecialization^ CppSharp::Parser::AST::FunctionTemplate::GetSpecializations(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializations(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializations(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)___ret); } void CppSharp::Parser::AST::FunctionTemplate::AddSpecializations(CppSharp::Parser::AST::FunctionTemplateSpecialization^ s) @@ -4574,9 +4574,9 @@ void CppSharp::Parser::AST::FunctionTemplate::ClearSpecializations() CppSharp::Parser::AST::FunctionTemplateSpecialization^ CppSharp::Parser::AST::FunctionTemplate::FindSpecialization(::System::String^ usr) { auto __arg0 = clix::marshalString(usr); - auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->FindSpecialization(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->FindSpecialization(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)___ret); } CppSharp::Parser::AST::FunctionTemplate::FunctionTemplate(CppSharp::Parser::AST::FunctionTemplate^ _0) @@ -4614,8 +4614,8 @@ void CppSharp::Parser::AST::FunctionTemplate::Specializations::set(::System::Col unsigned int CppSharp::Parser::AST::FunctionTemplate::SpecializationsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializationsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializationsCount(); + return ___ret; } CppSharp::Parser::AST::FunctionTemplateSpecialization::FunctionTemplateSpecialization(class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native) @@ -4653,9 +4653,9 @@ CppSharp::Parser::AST::FunctionTemplateSpecialization::FunctionTemplateSpecializ CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::FunctionTemplateSpecialization::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)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::FunctionTemplateSpecialization*)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::FunctionTemplateSpecialization::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s) @@ -4748,8 +4748,8 @@ void CppSharp::Parser::AST::FunctionTemplateSpecialization::SpecializationKind:: unsigned int CppSharp::Parser::AST::FunctionTemplateSpecialization::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::VarTemplate::VarTemplate(class ::CppSharp::CppParser::AST::VarTemplate* native) @@ -4791,9 +4791,9 @@ CppSharp::Parser::AST::VarTemplate::VarTemplate() CppSharp::Parser::AST::VarTemplateSpecialization^ CppSharp::Parser::AST::VarTemplate::GetSpecializations(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializations(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializations(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)___ret); } void CppSharp::Parser::AST::VarTemplate::AddSpecializations(CppSharp::Parser::AST::VarTemplateSpecialization^ s) @@ -4812,17 +4812,17 @@ void CppSharp::Parser::AST::VarTemplate::ClearSpecializations() CppSharp::Parser::AST::VarTemplateSpecialization^ CppSharp::Parser::AST::VarTemplate::FindSpecialization(::System::String^ usr) { auto __arg0 = clix::marshalString(usr); - auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindSpecialization(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindSpecialization(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)___ret); } CppSharp::Parser::AST::VarTemplatePartialSpecialization^ CppSharp::Parser::AST::VarTemplate::FindPartialSpecialization(::System::String^ usr) { auto __arg0 = clix::marshalString(usr); - auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindPartialSpecialization(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindPartialSpecialization(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization*)___ret); } CppSharp::Parser::AST::VarTemplate::VarTemplate(CppSharp::Parser::AST::VarTemplate^ _0) @@ -4860,8 +4860,8 @@ void CppSharp::Parser::AST::VarTemplate::Specializations::set(::System::Collecti unsigned int CppSharp::Parser::AST::VarTemplate::SpecializationsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializationsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializationsCount(); + return ___ret; } CppSharp::Parser::AST::VarTemplateSpecialization::VarTemplateSpecialization(class ::CppSharp::CppParser::AST::VarTemplateSpecialization* native) @@ -4903,9 +4903,9 @@ CppSharp::Parser::AST::VarTemplateSpecialization::VarTemplateSpecialization() CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::VarTemplateSpecialization::GetArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)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::VarTemplateSpecialization*)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::VarTemplateSpecialization::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s) @@ -4979,8 +4979,8 @@ void CppSharp::Parser::AST::VarTemplateSpecialization::SpecializationKind::set(C unsigned int CppSharp::Parser::AST::VarTemplateSpecialization::ArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->getArgumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->getArgumentsCount(); + return ___ret; } CppSharp::Parser::AST::VarTemplatePartialSpecialization::VarTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native) @@ -5419,9 +5419,9 @@ CppSharp::Parser::AST::TranslationUnit::TranslationUnit() CppSharp::Parser::AST::MacroDefinition^ CppSharp::Parser::AST::TranslationUnit::GetMacros(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacros(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::MacroDefinition((class ::CppSharp::CppParser::AST::MacroDefinition*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacros(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::MacroDefinition((class ::CppSharp::CppParser::AST::MacroDefinition*)___ret); } void CppSharp::Parser::AST::TranslationUnit::AddMacros(CppSharp::Parser::AST::MacroDefinition^ s) @@ -5492,8 +5492,8 @@ void CppSharp::Parser::AST::TranslationUnit::Macros::set(::System::Collections:: unsigned int CppSharp::Parser::AST::TranslationUnit::MacrosCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacrosCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacrosCount(); + return ___ret; } CppSharp::Parser::AST::ASTContext::ASTContext(class ::CppSharp::CppParser::AST::ASTContext* native) @@ -5532,16 +5532,16 @@ CppSharp::Parser::AST::ASTContext::ASTContext() CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::FindOrCreateModule(::System::String^ File) { auto __arg0 = clix::marshalString(File); - auto __ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->FindOrCreateModule(__arg0); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->FindOrCreateModule(__arg0); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)___ret); } CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::GetTranslationUnits(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnits(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)__ret); + auto ___ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnits(i); + if (___ret == nullptr) return nullptr; + return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)___ret); } void CppSharp::Parser::AST::ASTContext::AddTranslationUnits(CppSharp::Parser::AST::TranslationUnit^ s) @@ -5601,7 +5601,7 @@ void CppSharp::Parser::AST::ASTContext::TranslationUnits::set(::System::Collecti unsigned int CppSharp::Parser::AST::ASTContext::TranslationUnitsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnitsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnitsCount(); + return ___ret; } diff --git a/src/CppParser/Bindings/CLI/Expr.cpp b/src/CppParser/Bindings/CLI/Expr.cpp index 6999deb20..c0ad0d390 100644 --- a/src/CppParser/Bindings/CLI/Expr.cpp +++ b/src/CppParser/Bindings/CLI/Expr.cpp @@ -197,9 +197,9 @@ CppSharp::Parser::AST::Expr::Expr(CppSharp::Parser::AST::Expr^ _0) CppSharp::Parser::AST::Expr::operator CppSharp::Parser::AST::Expr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::Expr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::Expr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::Expr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::Expr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)_____ret, true); } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Expr::Type::get() @@ -398,9 +398,9 @@ CppSharp::Parser::AST::FullExpr::FullExpr(CppSharp::Parser::AST::FullExpr^ _0) CppSharp::Parser::AST::FullExpr::operator CppSharp::Parser::AST::FullExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::FullExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::FullExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FullExpr((class ::CppSharp::CppParser::AST::FullExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::FullExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::FullExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FullExpr((class ::CppSharp::CppParser::AST::FullExpr*)_____ret, true); } CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::FullExpr::SubExpr::get() @@ -1851,9 +1851,9 @@ CppSharp::Parser::AST::CallExpr::CallExpr(CppSharp::Parser::AST::StmtClass klass CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CallExpr::Getarguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getarguments(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::CallExpr*)NativePtr)->getarguments(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::CallExpr::Addarguments(CppSharp::Parser::AST::Expr^ s) @@ -1882,9 +1882,9 @@ CppSharp::Parser::AST::CallExpr::CallExpr(CppSharp::Parser::AST::CallExpr^ _0) CppSharp::Parser::AST::CallExpr::operator CppSharp::Parser::AST::CallExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::CallExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::CallExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CallExpr((class ::CppSharp::CppParser::AST::CallExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::CallExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::CallExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CallExpr((class ::CppSharp::CppParser::AST::CallExpr*)_____ret, true); } ::System::Collections::Generic::List^ CppSharp::Parser::AST::CallExpr::Arguments::get() @@ -1994,8 +1994,8 @@ void CppSharp::Parser::AST::CallExpr::IsCallToStdMove::set(bool value) unsigned int CppSharp::Parser::AST::CallExpr::GetargumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getargumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getargumentsCount(); + return ___ret; } CppSharp::Parser::AST::MemberExpr::MemberExpr(class ::CppSharp::CppParser::AST::MemberExpr* native) @@ -2304,9 +2304,9 @@ CppSharp::Parser::AST::CastExpr::CastExpr(CppSharp::Parser::AST::CastExpr^ _0) CppSharp::Parser::AST::CastExpr::operator CppSharp::Parser::AST::CastExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::CastExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::CastExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CastExpr((class ::CppSharp::CppParser::AST::CastExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::CastExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::CastExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CastExpr((class ::CppSharp::CppParser::AST::CastExpr*)_____ret, true); } CppSharp::Parser::AST::CastKind CppSharp::Parser::AST::CastExpr::CastKind::get() @@ -2483,9 +2483,9 @@ CppSharp::Parser::AST::ExplicitCastExpr::ExplicitCastExpr(CppSharp::Parser::AST: CppSharp::Parser::AST::ExplicitCastExpr::operator CppSharp::Parser::AST::ExplicitCastExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::ExplicitCastExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::ExplicitCastExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExplicitCastExpr((class ::CppSharp::CppParser::AST::ExplicitCastExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::ExplicitCastExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::ExplicitCastExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExplicitCastExpr((class ::CppSharp::CppParser::AST::ExplicitCastExpr*)_____ret, true); } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::ExplicitCastExpr::TypeAsWritten::get() @@ -2623,9 +2623,9 @@ CppSharp::Parser::AST::BinaryOperator::BinaryOperator(CppSharp::Parser::AST::Bin CppSharp::Parser::AST::BinaryOperator::operator CppSharp::Parser::AST::BinaryOperator^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::BinaryOperator) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::BinaryOperator(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BinaryOperator((class ::CppSharp::CppParser::AST::BinaryOperator*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::BinaryOperator) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::BinaryOperator(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BinaryOperator((class ::CppSharp::CppParser::AST::BinaryOperator*)_____ret, true); } CppSharp::Parser::SourceLocation CppSharp::Parser::AST::BinaryOperator::OperatorLoc::get() @@ -2943,9 +2943,9 @@ CppSharp::Parser::AST::AbstractConditionalOperator::AbstractConditionalOperator( CppSharp::Parser::AST::AbstractConditionalOperator::operator CppSharp::Parser::AST::AbstractConditionalOperator^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::AbstractConditionalOperator) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::AbstractConditionalOperator(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AbstractConditionalOperator((class ::CppSharp::CppParser::AST::AbstractConditionalOperator*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::AbstractConditionalOperator) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::AbstractConditionalOperator(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AbstractConditionalOperator((class ::CppSharp::CppParser::AST::AbstractConditionalOperator*)_____ret, true); } CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::AbstractConditionalOperator::Cond::get() @@ -5485,9 +5485,9 @@ CppSharp::Parser::AST::CXXNamedCastExpr::CXXNamedCastExpr(CppSharp::Parser::AST: CppSharp::Parser::AST::CXXNamedCastExpr::operator CppSharp::Parser::AST::CXXNamedCastExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::CXXNamedCastExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::CXXNamedCastExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXNamedCastExpr((class ::CppSharp::CppParser::AST::CXXNamedCastExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::CXXNamedCastExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::CXXNamedCastExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXNamedCastExpr((class ::CppSharp::CppParser::AST::CXXNamedCastExpr*)_____ret, true); } ::System::String^ CppSharp::Parser::AST::CXXNamedCastExpr::CastName::get() @@ -6619,9 +6619,9 @@ CppSharp::Parser::AST::CXXConstructExpr::CXXConstructExpr(CppSharp::Parser::AST: CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CXXConstructExpr::Getarguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getarguments(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::CXXConstructExpr*)NativePtr)->getarguments(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::CXXConstructExpr::Addarguments(CppSharp::Parser::AST::Expr^ s) @@ -6650,9 +6650,9 @@ CppSharp::Parser::AST::CXXConstructExpr::CXXConstructExpr(CppSharp::Parser::AST: CppSharp::Parser::AST::CXXConstructExpr::operator CppSharp::Parser::AST::CXXConstructExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::CXXConstructExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::CXXConstructExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXConstructExpr((class ::CppSharp::CppParser::AST::CXXConstructExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::CXXConstructExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::CXXConstructExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXConstructExpr((class ::CppSharp::CppParser::AST::CXXConstructExpr*)_____ret, true); } ::System::Collections::Generic::List^ CppSharp::Parser::AST::CXXConstructExpr::Arguments::get() @@ -6764,8 +6764,8 @@ void CppSharp::Parser::AST::CXXConstructExpr::NumArgs::set(unsigned int value) unsigned int CppSharp::Parser::AST::CXXConstructExpr::GetargumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getargumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getargumentsCount(); + return ___ret; } CppSharp::Parser::AST::CXXInheritedCtorInitExpr::CXXInheritedCtorInitExpr(class ::CppSharp::CppParser::AST::CXXInheritedCtorInitExpr* native) @@ -7002,9 +7002,9 @@ CppSharp::Parser::AST::LambdaExpr::LambdaExpr() CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::LambdaExpr::GetcaptureInits(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)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::LambdaExpr*)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::LambdaExpr::AddcaptureInits(CppSharp::Parser::AST::Expr^ s) @@ -7149,8 +7149,8 @@ void CppSharp::Parser::AST::LambdaExpr::HasExplicitResultType::set(bool value) unsigned int CppSharp::Parser::AST::LambdaExpr::GetcaptureInitsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->getcapture_initsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->getcapture_initsCount(); + return ___ret; } CppSharp::Parser::AST::CXXScalarValueInitExpr::CXXScalarValueInitExpr(class ::CppSharp::CppParser::AST::CXXScalarValueInitExpr* native) @@ -7245,9 +7245,9 @@ CppSharp::Parser::AST::CXXNewExpr::CXXNewExpr() CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CXXNewExpr::GetplacementArguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_arguments(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::CXXNewExpr*)NativePtr)->getplacement_arguments(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::CXXNewExpr::AddplacementArguments(CppSharp::Parser::AST::Expr^ s) @@ -7444,8 +7444,8 @@ void CppSharp::Parser::AST::CXXNewExpr::DirectInitRange::set(CppSharp::Parser::S unsigned int CppSharp::Parser::AST::CXXNewExpr::GetplacementArgumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_argumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_argumentsCount(); + return ___ret; } CppSharp::Parser::AST::CXXDeleteExpr::CXXDeleteExpr(class ::CppSharp::CppParser::AST::CXXDeleteExpr* native) @@ -7980,9 +7980,9 @@ CppSharp::Parser::AST::OverloadExpr::OverloadExpr(CppSharp::Parser::AST::Overloa CppSharp::Parser::AST::OverloadExpr::operator CppSharp::Parser::AST::OverloadExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::OverloadExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::OverloadExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::OverloadExpr((class ::CppSharp::CppParser::AST::OverloadExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::OverloadExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::OverloadExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::OverloadExpr((class ::CppSharp::CppParser::AST::OverloadExpr*)_____ret, true); } unsigned int CppSharp::Parser::AST::OverloadExpr::NumDecls::get() @@ -8353,9 +8353,9 @@ CppSharp::Parser::AST::CXXUnresolvedConstructExpr::CXXUnresolvedConstructExpr() CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CXXUnresolvedConstructExpr::Getarguments(unsigned int i) { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getarguments(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::CXXUnresolvedConstructExpr*)NativePtr)->getarguments(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::CXXUnresolvedConstructExpr::Addarguments(CppSharp::Parser::AST::Expr^ s) @@ -8462,8 +8462,8 @@ void CppSharp::Parser::AST::CXXUnresolvedConstructExpr::ArgSize::set(unsigned in unsigned int CppSharp::Parser::AST::CXXUnresolvedConstructExpr::GetargumentsCount::get() { - auto __ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getargumentsCount(); - return __ret; + auto ___ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getargumentsCount(); + return ___ret; } CppSharp::Parser::AST::CXXDependentScopeMemberExpr::CXXDependentScopeMemberExpr(class ::CppSharp::CppParser::AST::CXXDependentScopeMemberExpr* native) @@ -9495,9 +9495,9 @@ CppSharp::Parser::AST::CoroutineSuspendExpr::CoroutineSuspendExpr(CppSharp::Pars CppSharp::Parser::AST::CoroutineSuspendExpr::operator CppSharp::Parser::AST::CoroutineSuspendExpr^(CppSharp::Parser::AST::StmtClass klass) { auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass; - auto __ret = (::CppSharp::CppParser::AST::CoroutineSuspendExpr) __arg0; - auto ____ret = new class ::CppSharp::CppParser::AST::CoroutineSuspendExpr(__ret); - return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CoroutineSuspendExpr((class ::CppSharp::CppParser::AST::CoroutineSuspendExpr*)____ret, true); + auto ___ret = (::CppSharp::CppParser::AST::CoroutineSuspendExpr) __arg0; + auto _____ret = new class ::CppSharp::CppParser::AST::CoroutineSuspendExpr(___ret); + return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CoroutineSuspendExpr((class ::CppSharp::CppParser::AST::CoroutineSuspendExpr*)_____ret, true); } CppSharp::Parser::SourceLocation CppSharp::Parser::AST::CoroutineSuspendExpr::KeywordLoc::get() diff --git a/src/CppParser/Bindings/CLI/Sources.cpp b/src/CppParser/Bindings/CLI/Sources.cpp index 31fe07acf..e47245567 100644 --- a/src/CppParser/Bindings/CLI/Sources.cpp +++ b/src/CppParser/Bindings/CLI/Sources.cpp @@ -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() diff --git a/src/CppParser/Bindings/CLI/Stmt.cpp b/src/CppParser/Bindings/CLI/Stmt.cpp index c683f4fc7..0063c1423 100644 --- a/src/CppParser/Bindings/CLI/Stmt.cpp +++ b/src/CppParser/Bindings/CLI/Stmt.cpp @@ -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() @@ -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) @@ -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) @@ -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) @@ -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) @@ -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() @@ -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) @@ -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) @@ -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::AsmStmt::Inputs::get() @@ -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) @@ -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) @@ -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) diff --git a/src/CppParser/Bindings/CLI/Types.cpp b/src/CppParser/Bindings/CLI/Types.cpp index 5cd2f88b9..7edd2e952 100644 --- a/src/CppParser/Bindings/CLI/Types.cpp +++ b/src/CppParser/Bindings/CLI/Types.cpp @@ -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() @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp index 0ac2c5a0e..38c9d198b 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp @@ -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(); } diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs index 5fcdfc4eb..71c74eac5 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs @@ -13,6 +13,8 @@ [assembly:InternalsVisibleTo("CppSharp.Parser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace CppSharp { namespace Parser @@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NativeLibrary(native.ToPointer(), skipVTables); } @@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetSymbols(uint i) { - var __ret = __Internal.GetSymbols(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSymbols(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSymbols(string s) @@ -219,8 +223,8 @@ public void ClearSymbols() public string GetDependencies(uint i) { - var __ret = __Internal.GetDependencies(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDependencies(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDependencies(string s) @@ -264,8 +268,8 @@ public uint SymbolsCount { get { - var __ret = __Internal.GetSymbolsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSymbolsCount(__Instance); + return ___ret; } } @@ -273,8 +277,8 @@ public uint DependenciesCount { get { - var __ret = __Internal.GetDependenciesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDependenciesCount(__Instance); + return ___ret; } } } @@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Comment(native.ToPointer(), skipVTables); } @@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockContentComment(native.ToPointer(), skipVTables); } @@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullComment(native.ToPointer(), skipVTables); } @@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i) { - var __ret = __Internal.GetBlocks(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBlocks(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -630,8 +640,8 @@ public uint BlocksCount { get { - var __ret = __Internal.GetBlocksCount(__Instance); - return __ret; + var ___ret = __Internal.GetBlocksCount(__Instance); + return ___ret; } } } @@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineContentComment(native.ToPointer(), skipVTables); } @@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParagraphComment(native.ToPointer(), skipVTables); } @@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i) { - var __ret = __Internal.GetContent(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetContent(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -887,8 +901,8 @@ public uint ContentCount { get { - var __ret = __Internal.GetContentCount(__Instance); - return __ret; + var ___ret = __Internal.GetContentCount(__Instance); + return ___ret; } } } @@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -1062,6 +1078,8 @@ public string Text internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockCommandComment(native.ToPointer(), skipVTables); } @@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s) @@ -1204,8 +1222,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -1241,6 +1259,8 @@ public enum PassDirection : uint internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParamCommandComment(native.ToPointer(), skipVTables); } @@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TParamCommandComment(native.ToPointer(), skipVTables); } @@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public uint GetPosition(uint i) { - var __ret = __Internal.GetPosition(__Instance, i); - return __ret; + var ___ret = __Internal.GetPosition(__Instance, i); + return ___ret; } public void AddPosition(ref uint s) @@ -1477,8 +1499,8 @@ public uint PositionCount { get { - var __ret = __Internal.GetPositionCount(__Instance); - return __ret; + var ___ret = __Internal.GetPositionCount(__Instance); + return ___ret; } } } @@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } @@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockComment(native.ToPointer(), skipVTables); } @@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i) { - var __ret = __Internal.GetLines(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLines(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -1728,8 +1754,8 @@ public uint LinesCount { get { - var __ret = __Internal.GetLinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLinesCount(__Instance); + return ___ret; } } } @@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimLineComment(native.ToPointer(), skipVTables); } @@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -2023,6 +2053,8 @@ public string Text internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineCommandComment(native.ToPointer(), skipVTables); } @@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s) @@ -2150,8 +2182,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLTagComment(native.ToPointer(), skipVTables); } @@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Attribute(native.ToPointer(), skipVTables); } @@ -2429,6 +2465,8 @@ public string Value internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLStartTagComment(native.ToPointer(), skipVTables); } @@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i) { - var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); - __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); - global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); + __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret); + global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) @@ -2544,8 +2582,8 @@ public uint AttributesCount { get { - var __ret = __Internal.GetAttributesCount(__Instance); - return __ret; + var ___ret = __Internal.GetAttributesCount(__Instance); + return ___ret; } } } @@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLEndTagComment(native.ToPointer(), skipVTables); } @@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TextComment(native.ToPointer(), skipVTables); } @@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new RawComment(native.ToPointer(), skipVTables); } @@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SourceRange(native.ToPointer(), skipVTables); } @@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Type(native.ToPointer(), skipVTables); } @@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeQualifiers(native.ToPointer(), skipVTables); } @@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new QualifiedType(native.ToPointer(), skipVTables); } @@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TagType(native.ToPointer(), skipVTables); } @@ -3811,6 +3865,8 @@ public enum ArraySize internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayType(native.ToPointer(), skipVTables); } @@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionType(native.ToPointer(), skipVTables); } @@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -4103,8 +4161,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -4136,6 +4194,8 @@ public enum TypeModifier internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PointerType(native.ToPointer(), skipVTables); } @@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberPointerType(native.ToPointer(), skipVTables); } @@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefType(native.ToPointer(), skipVTables); } @@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedType(native.ToPointer(), skipVTables); } @@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DecayedType(native.ToPointer(), skipVTables); } @@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateArgument(native.ToPointer(), skipVTables); } @@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -4991,8 +5063,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -5145,8 +5219,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST. internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterType(native.ToPointer(), skipVTables); } @@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables); } @@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST. internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InjectedClassNameType(native.ToPointer(), skipVTables); } @@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentNameType(native.ToPointer(), skipVTables); } @@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionType(native.ToPointer(), skipVTables); } @@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryTransformType(native.ToPointer(), skipVTables); } @@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingType(native.ToPointer(), skipVTables); } @@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VectorType(native.ToPointer(), skipVTables); } @@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BuiltinType(native.ToPointer(), skipVTables); } @@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Declaration(native.ToPointer(), skipVTables); } @@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i) { - var __ret = __Internal.GetPreprocessedEntities(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetPreprocessedEntities(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities() public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i) { - var __ret = __Internal.GetRedeclarations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetRedeclarations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount { get { - var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance); - return __ret; + var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance); + return ___ret; } } @@ -6824,8 +6918,8 @@ public uint RedeclarationsCount { get { - var __ret = __Internal.GetRedeclarationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetRedeclarationsCount(__Instance); + return ___ret; } } } @@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclarationContext(native.ToPointer(), skipVTables); } @@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i) { - var __ret = __Internal.GetNamespaces(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetNamespaces(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7087,8 +7183,8 @@ public void ClearNamespaces() public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i) { - var __ret = __Internal.GetEnums(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetEnums(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7108,8 +7204,8 @@ public void ClearEnums() public global::CppSharp.Parser.AST.Function GetFunctions(uint i) { - var __ret = __Internal.GetFunctions(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFunctions(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7129,8 +7225,8 @@ public void ClearFunctions() public global::CppSharp.Parser.AST.Class GetClasses(uint i) { - var __ret = __Internal.GetClasses(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetClasses(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7150,8 +7246,8 @@ public void ClearClasses() public global::CppSharp.Parser.AST.Template GetTemplates(uint i) { - var __ret = __Internal.GetTemplates(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTemplates(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7171,8 +7267,8 @@ public void ClearTemplates() public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i) { - var __ret = __Internal.GetTypedefs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypedefs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7192,8 +7288,8 @@ public void ClearTypedefs() public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i) { - var __ret = __Internal.GetTypeAliases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypeAliases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7213,8 +7309,8 @@ public void ClearTypeAliases() public global::CppSharp.Parser.AST.Variable GetVariables(uint i) { - var __ret = __Internal.GetVariables(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetVariables(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7234,8 +7330,8 @@ public void ClearVariables() public global::CppSharp.Parser.AST.Friend GetFriends(uint i) { - var __ret = __Internal.GetFriends(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFriends(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7275,8 +7371,8 @@ public uint NamespacesCount { get { - var __ret = __Internal.GetNamespacesCount(__Instance); - return __ret; + var ___ret = __Internal.GetNamespacesCount(__Instance); + return ___ret; } } @@ -7284,8 +7380,8 @@ public uint EnumsCount { get { - var __ret = __Internal.GetEnumsCount(__Instance); - return __ret; + var ___ret = __Internal.GetEnumsCount(__Instance); + return ___ret; } } @@ -7293,8 +7389,8 @@ public uint FunctionsCount { get { - var __ret = __Internal.GetFunctionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFunctionsCount(__Instance); + return ___ret; } } @@ -7302,8 +7398,8 @@ public uint ClassesCount { get { - var __ret = __Internal.GetClassesCount(__Instance); - return __ret; + var ___ret = __Internal.GetClassesCount(__Instance); + return ___ret; } } @@ -7311,8 +7407,8 @@ public uint TemplatesCount { get { - var __ret = __Internal.GetTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTemplatesCount(__Instance); + return ___ret; } } @@ -7320,8 +7416,8 @@ public uint TypedefsCount { get { - var __ret = __Internal.GetTypedefsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypedefsCount(__Instance); + return ___ret; } } @@ -7329,8 +7425,8 @@ public uint TypeAliasesCount { get { - var __ret = __Internal.GetTypeAliasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypeAliasesCount(__Instance); + return ___ret; } } @@ -7338,8 +7434,8 @@ public uint VariablesCount { get { - var __ret = __Internal.GetVariablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVariablesCount(__Instance); + return ___ret; } } @@ -7347,8 +7443,8 @@ public uint FriendsCount { get { - var __ret = __Internal.GetFriendsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFriendsCount(__Instance); + return ___ret; } } } @@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefNameDecl(native.ToPointer(), skipVTables); } @@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefDecl(native.ToPointer(), skipVTables); } @@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAlias(native.ToPointer(), skipVTables); } @@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Friend(native.ToPointer(), skipVTables); } @@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StatementObsolete(native.ToPointer(), skipVTables); } @@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionObsolete(native.ToPointer(), skipVTables); } @@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperatorObsolete(native.ToPointer(), skipVTables); } @@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExprObsolete(native.ToPointer(), skipVTables); } @@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8429,8 +8541,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExprObsolete(native.ToPointer(), skipVTables); } @@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8574,8 +8688,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration, internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parameter(native.ToPointer(), skipVTables); } @@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Function(native.ToPointer(), skipVTables); } @@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9224,8 +9342,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -9324,6 +9442,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Method(native.ToPointer(), skipVTables); } @@ -9401,8 +9521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i) { - var __ret = __Internal.GetOverriddenMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetOverriddenMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9556,8 +9676,8 @@ public uint OverriddenMethodsCount { get { - var __ret = __Internal.GetOverriddenMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetOverriddenMethodsCount(__Instance); + return ___ret; } } } @@ -9680,6 +9800,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Item(native.ToPointer(), skipVTables); } @@ -9785,6 +9907,8 @@ public ulong Value internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Enumeration(native.ToPointer(), skipVTables); } @@ -9862,8 +9986,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i) { - var __ret = __Internal.GetItems(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetItems(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9886,9 +10010,9 @@ public void ClearItems() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindItemByName(__Instance, __arg0); + var ___ret = __Internal.FindItemByName(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9937,8 +10061,8 @@ public uint ItemsCount { get { - var __ret = __Internal.GetItemsCount(__Instance); - return __ret; + var ___ret = __Internal.GetItemsCount(__Instance); + return ___ret; } } } @@ -9987,6 +10111,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration, internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Variable(native.ToPointer(), skipVTables); } @@ -10156,6 +10282,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BaseClassSpecifier(native.ToPointer(), skipVTables); } @@ -10329,6 +10457,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Field(native.ToPointer(), skipVTables); } @@ -10500,6 +10630,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AccessSpecifierDecl(native.ToPointer(), skipVTables); } @@ -10612,6 +10744,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableComponent(native.ToPointer(), skipVTables); } @@ -10777,6 +10911,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableLayout(native.ToPointer(), skipVTables); } @@ -10859,9 +10995,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i) { - var __ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal(); - __Internal.GetComponents(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal(); + __Internal.GetComponents(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret); } public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s) @@ -10881,8 +11017,8 @@ public uint ComponentsCount { get { - var __ret = __Internal.GetComponentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetComponentsCount(__Instance); + return ___ret; } } } @@ -10927,6 +11063,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VFTableInfo(native.ToPointer(), skipVTables); } @@ -11102,6 +11240,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutField(native.ToPointer(), skipVTables); } @@ -11276,6 +11416,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutBase(native.ToPointer(), skipVTables); } @@ -11467,6 +11609,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassLayout(native.ToPointer(), skipVTables); } @@ -11549,11 +11693,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i) { - var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); - __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret); - global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); + __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret); + global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s) @@ -11571,11 +11715,11 @@ public void ClearVFTables() public global::CppSharp.Parser.AST.LayoutField GetFields(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); - __Internal.GetFields(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); + __Internal.GetFields(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddFields(global::CppSharp.Parser.AST.LayoutField s) @@ -11593,11 +11737,11 @@ public void ClearFields() public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); - __Internal.GetBases(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); + __Internal.GetBases(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddBases(global::CppSharp.Parser.AST.LayoutBase s) @@ -11723,8 +11867,8 @@ public uint VFTablesCount { get { - var __ret = __Internal.GetVFTablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVFTablesCount(__Instance); + return ___ret; } } @@ -11732,8 +11876,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -11741,8 +11885,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } } @@ -11862,6 +12006,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Class(native.ToPointer(), skipVTables); } @@ -11939,8 +12085,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i) { - var __ret = __Internal.GetBases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11960,8 +12106,8 @@ public void ClearBases() public global::CppSharp.Parser.AST.Field GetFields(uint i) { - var __ret = __Internal.GetFields(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFields(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11981,8 +12127,8 @@ public void ClearFields() public global::CppSharp.Parser.AST.Method GetMethods(uint i) { - var __ret = __Internal.GetMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12002,8 +12148,8 @@ public void ClearMethods() public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i) { - var __ret = __Internal.GetSpecifiers(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecifiers(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12182,8 +12328,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } @@ -12191,8 +12337,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -12200,8 +12346,8 @@ public uint MethodsCount { get { - var __ret = __Internal.GetMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetMethodsCount(__Instance); + return ___ret; } } @@ -12209,8 +12355,8 @@ public uint SpecifiersCount { get { - var __ret = __Internal.GetSpecifiersCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecifiersCount(__Instance); + return ___ret; } } } @@ -12272,6 +12418,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration, internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Template(native.ToPointer(), skipVTables); } @@ -12358,8 +12506,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12400,8 +12548,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -12448,6 +12596,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAliasTemplate(native.ToPointer(), skipVTables); } @@ -12567,6 +12717,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameter(native.ToPointer(), skipVTables); } @@ -12732,6 +12884,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser. internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateTemplateParameter(native.ToPointer(), skipVTables); } @@ -12891,6 +13045,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST. internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -12984,7 +13140,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 144)] + [StructLayout(LayoutKind.Sequential, Size = 152)] public new partial struct __Internal { internal global::CppSharp.Parser.AST.DeclarationKind kind; @@ -13031,6 +13187,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NonTypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -13250,6 +13408,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplate(native.ToPointer(), skipVTables); } @@ -13327,8 +13487,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13351,9 +13511,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13362,9 +13522,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13372,8 +13532,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13460,6 +13620,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -13537,9 +13699,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -13586,8 +13748,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -13662,6 +13824,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -13796,6 +13960,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplate(native.ToPointer(), skipVTables); } @@ -13873,8 +14039,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13897,9 +14063,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13907,8 +14073,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13965,6 +14131,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14047,9 +14215,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14110,8 +14278,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14177,6 +14345,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template, internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplate(native.ToPointer(), skipVTables); } @@ -14254,8 +14424,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14278,9 +14448,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14289,9 +14459,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14299,8 +14469,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -14364,6 +14534,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser. internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14441,9 +14613,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14490,8 +14662,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14543,6 +14715,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp. internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -14659,6 +14833,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingTypename(native.ToPointer(), skipVTables); } @@ -14787,6 +14963,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Namespace(native.ToPointer(), skipVTables); } @@ -14912,6 +15090,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PreprocessedEntity(native.ToPointer(), skipVTables); } @@ -15052,6 +15232,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroDefinition(native.ToPointer(), skipVTables); } @@ -15206,6 +15388,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroExpansion(native.ToPointer(), skipVTables); } @@ -15391,6 +15575,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TranslationUnit(native.ToPointer(), skipVTables); } @@ -15468,8 +15654,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i) { - var __ret = __Internal.GetMacros(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMacros(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15518,8 +15704,8 @@ public uint MacrosCount { get { - var __ret = __Internal.GetMacrosCount(__Instance); - return __ret; + var ___ret = __Internal.GetMacrosCount(__Instance); + return ___ret; } } } @@ -15576,6 +15762,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ASTContext(native.ToPointer(), skipVTables); } @@ -15661,16 +15849,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindOrCreateModule(__Instance, __arg0); + var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0); __basicString0.Dispose(disposing: true, callNativeDtor:false); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i) { - var __ret = __Internal.GetTranslationUnits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTranslationUnits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15692,8 +15880,8 @@ public uint TranslationUnitsCount { get { - var __ret = __Internal.GetTranslationUnitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTranslationUnitsCount(__Instance); + return ___ret; } } } @@ -15877,6 +16065,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Stmt(native.ToPointer(), skipVTables); } @@ -16057,6 +16247,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclStmt(native.ToPointer(), skipVTables); } @@ -16134,8 +16326,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration Getdecls(uint i) { - var __ret = __Internal.Getdecls(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getdecls(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16184,8 +16376,8 @@ public uint GetdeclsCount { get { - var __ret = __Internal.GetdeclsCount(__Instance); - return __ret; + var ___ret = __Internal.GetdeclsCount(__Instance); + return ___ret; } } } @@ -16211,6 +16403,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NullStmt(native.ToPointer(), skipVTables); } @@ -16336,6 +16530,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundStmt(native.ToPointer(), skipVTables); } @@ -16413,8 +16609,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Stmt Getbody(uint i) { - var __ret = __Internal.Getbody(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getbody(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16516,8 +16712,8 @@ public uint GetbodyCount { get { - var __ret = __Internal.GetbodyCount(__Instance); - return __ret; + var ___ret = __Internal.GetbodyCount(__Instance); + return ___ret; } } } @@ -16547,6 +16743,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchCase(native.ToPointer(), skipVTables); } @@ -16686,6 +16884,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CaseStmt(native.ToPointer(), skipVTables); } @@ -16834,6 +17034,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DefaultStmt(native.ToPointer(), skipVTables); } @@ -16928,6 +17130,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo private bool __name_OwnsNativeMemory = false; internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LabelStmt(native.ToPointer(), skipVTables); } @@ -17061,6 +17265,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedStmt(native.ToPointer(), skipVTables); } @@ -17177,6 +17383,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IfStmt(native.ToPointer(), skipVTables); } @@ -17423,6 +17631,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchStmt(native.ToPointer(), skipVTables); } @@ -17613,6 +17823,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new WhileStmt(native.ToPointer(), skipVTables); } @@ -17763,6 +17975,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DoStmt(native.ToPointer(), skipVTables); } @@ -17915,6 +18129,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ForStmt(native.ToPointer(), skipVTables); } @@ -18103,6 +18319,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GotoStmt(native.ToPointer(), skipVTables); } @@ -18209,6 +18427,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt, internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IndirectGotoStmt(native.ToPointer(), skipVTables); } @@ -18327,6 +18547,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ContinueStmt(native.ToPointer(), skipVTables); } @@ -18418,6 +18640,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BreakStmt(native.ToPointer(), skipVTables); } @@ -18510,6 +18734,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ReturnStmt(native.ToPointer(), skipVTables); } @@ -18653,6 +18879,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStmt(native.ToPointer(), skipVTables); } @@ -18739,8 +18967,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getinputs(uint i) { - var __ret = __Internal.Getinputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getinputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18760,8 +18988,8 @@ public void Clearinputs() public global::CppSharp.Parser.AST.Expr Getoutputs(uint i) { - var __ret = __Internal.Getoutputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getoutputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18879,8 +19107,8 @@ public uint GetinputsCount { get { - var __ret = __Internal.GetinputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetinputsCount(__Instance); + return ___ret; } } @@ -18888,8 +19116,8 @@ public uint GetoutputsCount { get { - var __ret = __Internal.GetoutputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetoutputsCount(__Instance); + return ___ret; } } } @@ -18971,6 +19199,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStringPiece(native.ToPointer(), skipVTables); } @@ -19120,6 +19350,8 @@ public sbyte Modifier internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GCCAsmStmt(native.ToPointer(), skipVTables); } @@ -19244,6 +19476,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSAsmStmt(native.ToPointer(), skipVTables); } @@ -19395,6 +19629,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHExceptStmt(native.ToPointer(), skipVTables); } @@ -19515,6 +19751,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHFinallyStmt(native.ToPointer(), skipVTables); } @@ -19625,6 +19863,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHTryStmt(native.ToPointer(), skipVTables); } @@ -19785,6 +20025,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHLeaveStmt(native.ToPointer(), skipVTables); } @@ -19938,6 +20180,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Capture(native.ToPointer(), skipVTables); } @@ -20094,6 +20338,8 @@ public bool CapturesVariableArrayType internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CapturedStmt(native.ToPointer(), skipVTables); } @@ -20171,8 +20417,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -20221,8 +20467,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -20249,6 +20495,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXCatchStmt(native.ToPointer(), skipVTables); } @@ -20371,6 +20619,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTryStmt(native.ToPointer(), skipVTables); } @@ -20501,6 +20751,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt, internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXForRangeStmt(native.ToPointer(), skipVTables); } @@ -20760,6 +21012,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST. internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSDependentExistsStmt(native.ToPointer(), skipVTables); } @@ -20950,6 +21204,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CtorArgs(native.ToPointer(), skipVTables); } @@ -21028,6 +21284,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineBodyStmt(native.ToPointer(), skipVTables); } @@ -21297,6 +21555,8 @@ public enum SubStmt internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoreturnStmt(native.ToPointer(), skipVTables); } @@ -21772,6 +22032,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Classification(native.ToPointer(), skipVTables); } @@ -21954,6 +22216,8 @@ public bool IsModifiable internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Expr(native.ToPointer(), skipVTables); } @@ -22249,6 +22513,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullExpr(native.ToPointer(), skipVTables); } @@ -22369,6 +22635,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr, internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConstantExpr(native.ToPointer(), skipVTables); } @@ -22463,6 +22731,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr, internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OpaqueValueExpr(native.ToPointer(), skipVTables); } @@ -22606,6 +22876,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclRefExpr(native.ToPointer(), skipVTables); } @@ -22856,6 +23128,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IntegerLiteral(native.ToPointer(), skipVTables); } @@ -22975,6 +23249,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FixedPointLiteral(native.ToPointer(), skipVTables); } @@ -23104,6 +23380,8 @@ public enum CharacterKind internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharacterLiteral(native.ToPointer(), skipVTables); } @@ -23237,6 +23515,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr, internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FloatingLiteral(native.ToPointer(), skipVTables); } @@ -23368,6 +23648,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr, internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImaginaryLiteral(native.ToPointer(), skipVTables); } @@ -23500,6 +23782,8 @@ public enum StringKind internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StringLiteral(native.ToPointer(), skipVTables); } @@ -23820,6 +24104,8 @@ public enum IdentKind internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PredefinedExpr(native.ToPointer(), skipVTables); } @@ -23940,6 +24226,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenExpr(native.ToPointer(), skipVTables); } @@ -24082,6 +24370,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryOperator(native.ToPointer(), skipVTables); } @@ -24321,6 +24611,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OffsetOfExpr(native.ToPointer(), skipVTables); } @@ -24471,6 +24763,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -24663,6 +24957,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArraySubscriptExpr(native.ToPointer(), skipVTables); } @@ -24850,6 +25146,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExpr(native.ToPointer(), skipVTables); } @@ -24936,8 +25234,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -25071,8 +25369,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -25123,6 +25421,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberExpr(native.ToPointer(), skipVTables); } @@ -25387,6 +25687,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundLiteralExpr(native.ToPointer(), skipVTables); } @@ -25529,6 +25831,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos private bool __castKindName_OwnsNativeMemory = false; internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CastExpr(native.ToPointer(), skipVTables); } @@ -25755,6 +26059,8 @@ public enum OnStack_t internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25870,6 +26176,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExplicitCastExpr(native.ToPointer(), skipVTables); } @@ -26000,6 +26308,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CStyleCastExpr(native.ToPointer(), skipVTables); } @@ -26142,6 +26452,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperator(native.ToPointer(), skipVTables); } @@ -26539,6 +26851,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundAssignOperator(native.ToPointer(), skipVTables); } @@ -26686,6 +27000,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AbstractConditionalOperator(native.ToPointer(), skipVTables); } @@ -26866,6 +27182,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConditionalOperator(native.ToPointer(), skipVTables); } @@ -26992,6 +27310,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser. internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryConditionalOperator(native.ToPointer(), skipVTables); } @@ -27113,6 +27433,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AddrLabelExpr(native.ToPointer(), skipVTables); } @@ -27233,6 +27555,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StmtExpr(native.ToPointer(), skipVTables); } @@ -27367,6 +27691,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ShuffleVectorExpr(native.ToPointer(), skipVTables); } @@ -27500,6 +27826,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConvertVectorExpr(native.ToPointer(), skipVTables); } @@ -27639,6 +27967,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ChooseExpr(native.ToPointer(), skipVTables); } @@ -27839,6 +28169,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GNUNullExpr(native.ToPointer(), skipVTables); } @@ -27947,6 +28279,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VAArgExpr(native.ToPointer(), skipVTables); } @@ -28103,6 +28437,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InitListExpr(native.ToPointer(), skipVTables); } @@ -28401,6 +28737,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Designator(native.ToPointer(), skipVTables); } @@ -28655,6 +28993,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FieldDesignator(native.ToPointer(), skipVTables); } @@ -28763,6 +29103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables); } @@ -28841,6 +29183,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitExpr(native.ToPointer(), skipVTables); } @@ -29013,6 +29357,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NoInitExpr(native.ToPointer(), skipVTables); } @@ -29106,6 +29452,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables); } @@ -29227,6 +29575,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitLoopExpr(native.ToPointer(), skipVTables); } @@ -29346,6 +29696,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitIndexExpr(native.ToPointer(), skipVTables); } @@ -29437,6 +29789,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST. internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitValueInitExpr(native.ToPointer(), skipVTables); } @@ -29531,6 +29885,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenListExpr(native.ToPointer(), skipVTables); } @@ -29669,6 +30025,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GenericSelectionExpr(native.ToPointer(), skipVTables); } @@ -29871,6 +30229,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtVectorElementExpr(native.ToPointer(), skipVTables); } @@ -30030,6 +30390,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockExpr(native.ToPointer(), skipVTables); } @@ -30151,6 +30513,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsTypeExpr(native.ToPointer(), skipVTables); } @@ -30286,6 +30650,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr, internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PseudoObjectExpr(native.ToPointer(), skipVTables); } @@ -30496,6 +30862,8 @@ public enum AtomicOp internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AtomicExpr(native.ToPointer(), skipVTables); } @@ -30791,6 +31159,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypoExpr(native.ToPointer(), skipVTables); } @@ -30898,6 +31268,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXOperatorCallExpr(native.ToPointer(), skipVTables); } @@ -31073,6 +31445,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXMemberCallExpr(native.ToPointer(), skipVTables); } @@ -31223,6 +31597,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CUDAKernelCallExpr(native.ToPointer(), skipVTables); } @@ -31362,6 +31738,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli private bool __castName_OwnsNativeMemory = false; internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNamedCastExpr(native.ToPointer(), skipVTables); } @@ -31547,6 +31925,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStaticCastExpr(native.ToPointer(), skipVTables); } @@ -31651,6 +32031,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDynamicCastExpr(native.ToPointer(), skipVTables); } @@ -31767,6 +32149,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables); } @@ -31870,6 +32254,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstCastExpr(native.ToPointer(), skipVTables); } @@ -31986,6 +32372,8 @@ public enum LiteralOperatorKind internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UserDefinedLiteral(native.ToPointer(), skipVTables); } @@ -32137,6 +32525,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables); } @@ -32255,6 +32645,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST. internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables); } @@ -32360,6 +32752,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser. internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables); } @@ -32468,6 +32862,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTypeidExpr(native.ToPointer(), skipVTables); } @@ -32603,6 +32999,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertyRefExpr(native.ToPointer(), skipVTables); } @@ -32750,6 +33148,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables); } @@ -32888,6 +33288,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUuidofExpr(native.ToPointer(), skipVTables); } @@ -33040,6 +33442,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThisExpr(native.ToPointer(), skipVTables); } @@ -33160,6 +33564,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThrowExpr(native.ToPointer(), skipVTables); } @@ -33293,6 +33699,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultArgExpr(native.ToPointer(), skipVTables); } @@ -33413,6 +33821,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultInitExpr(native.ToPointer(), skipVTables); } @@ -33533,6 +33943,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables); } @@ -33673,6 +34085,8 @@ public enum ConstructionKind internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExpr(native.ToPointer(), skipVTables); } @@ -33759,8 +34173,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -33893,8 +34307,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -33935,6 +34349,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables); } @@ -34076,6 +34492,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST. internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables); } @@ -34218,6 +34636,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables); } @@ -34352,6 +34772,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LambdaExpr(native.ToPointer(), skipVTables); } @@ -34429,8 +34851,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -34573,8 +34995,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -34613,6 +35035,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables); } @@ -34754,6 +35178,8 @@ public enum InitializationStyle internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNewExpr(native.ToPointer(), skipVTables); } @@ -34831,8 +35257,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i) { - var __ret = __Internal.GetplacementArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetplacementArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -35047,8 +35473,8 @@ public uint GetplacementArgumentsCount { get { - var __ret = __Internal.GetplacementArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetplacementArgumentsCount(__Instance); + return ___ret; } } } @@ -35092,6 +35518,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDeleteExpr(native.ToPointer(), skipVTables); } @@ -35273,6 +35701,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables); } @@ -35473,6 +35903,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35593,6 +36025,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35728,6 +36162,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionTraitExpr(native.ToPointer(), skipVTables); } @@ -35887,6 +36323,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FindResult(native.ToPointer(), skipVTables); } @@ -35965,6 +36403,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OverloadExpr(native.ToPointer(), skipVTables); } @@ -36184,6 +36624,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedLookupExpr(native.ToPointer(), skipVTables); } @@ -36308,6 +36750,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser. internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables); } @@ -36493,6 +36937,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExprWithCleanups(native.ToPointer(), skipVTables); } @@ -36631,6 +37077,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables); } @@ -36708,8 +37156,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -36798,8 +37246,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -36850,6 +37298,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables); } @@ -37129,6 +37579,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedMemberExpr(native.ToPointer(), skipVTables); } @@ -37316,6 +37768,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr, internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNoexceptExpr(native.ToPointer(), skipVTables); } @@ -37436,6 +37890,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionExpr(native.ToPointer(), skipVTables); } @@ -37560,6 +38016,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SizeOfPackExpr(native.ToPointer(), skipVTables); } @@ -37732,6 +38190,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables); } @@ -37852,6 +38312,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp. internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables); } @@ -37973,6 +38435,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionParmPackExpr(native.ToPointer(), skipVTables); } @@ -38124,6 +38588,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtraState(native.ToPointer(), skipVTables); } @@ -38202,6 +38668,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables); } @@ -38355,6 +38823,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFoldExpr(native.ToPointer(), skipVTables); } @@ -38572,6 +39042,8 @@ public enum SubExpr internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineSuspendExpr(native.ToPointer(), skipVTables); } @@ -38768,6 +39240,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoawaitExpr(native.ToPointer(), skipVTables); } @@ -38889,6 +39363,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentCoawaitExpr(native.ToPointer(), skipVTables); } @@ -39028,6 +39504,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoyieldExpr(native.ToPointer(), skipVTables); } @@ -39199,6 +39677,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserTargetInfo(native.ToPointer(), skipVTables); } @@ -39871,6 +40351,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parser(native.ToPointer(), skipVTables); } @@ -40081,6 +40563,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppParserOptions(native.ToPointer(), skipVTables); } @@ -40163,8 +40647,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40179,8 +40663,8 @@ public void ClearArguments() public string GetCompilationOptions(uint i) { - var __ret = __Internal.GetCompilationOptions(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetCompilationOptions(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddCompilationOptions(string s) @@ -40195,8 +40679,8 @@ public void ClearCompilationOptions() public string GetSourceFiles(uint i) { - var __ret = __Internal.GetSourceFiles(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSourceFiles(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSourceFiles(string s) @@ -40211,8 +40695,8 @@ public void ClearSourceFiles() public string GetIncludeDirs(uint i) { - var __ret = __Internal.GetIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddIncludeDirs(string s) @@ -40227,8 +40711,8 @@ public void ClearIncludeDirs() public string GetSystemIncludeDirs(uint i) { - var __ret = __Internal.GetSystemIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSystemIncludeDirs(string s) @@ -40243,8 +40727,8 @@ public void ClearSystemIncludeDirs() public string GetDefines(uint i) { - var __ret = __Internal.GetDefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDefines(string s) @@ -40259,8 +40743,8 @@ public void ClearDefines() public string GetUndefines(uint i) { - var __ret = __Internal.GetUndefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetUndefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddUndefines(string s) @@ -40275,8 +40759,8 @@ public void ClearUndefines() public string GetSupportedStdTypes(uint i) { - var __ret = __Internal.GetSupportedStdTypes(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedStdTypes(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedStdTypes(string s) @@ -40291,8 +40775,8 @@ public void ClearSupportedStdTypes() public string GetSupportedFunctionTemplates(uint i) { - var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedFunctionTemplates(string s) @@ -40454,9 +40938,9 @@ public string ClangVersion { get { - var __ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(); - __Internal.GetClangVersion(new IntPtr(&__ret), __Instance); - var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); + var ___ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(); + __Internal.GetClangVersion(new IntPtr(&___ret), __Instance); + var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); __basicStringRet0.Dispose(); return __retString0; @@ -40467,8 +40951,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40476,8 +40960,8 @@ public uint CompilationOptionsCount { get { - var __ret = __Internal.GetCompilationOptionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetCompilationOptionsCount(__Instance); + return ___ret; } } @@ -40485,8 +40969,8 @@ public uint SourceFilesCount { get { - var __ret = __Internal.GetSourceFilesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSourceFilesCount(__Instance); + return ___ret; } } @@ -40494,8 +40978,8 @@ public uint IncludeDirsCount { get { - var __ret = __Internal.GetIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetIncludeDirsCount(__Instance); + return ___ret; } } @@ -40503,8 +40987,8 @@ public uint SystemIncludeDirsCount { get { - var __ret = __Internal.GetSystemIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance); + return ___ret; } } @@ -40512,8 +40996,8 @@ public uint DefinesCount { get { - var __ret = __Internal.GetDefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDefinesCount(__Instance); + return ___ret; } } @@ -40521,8 +41005,8 @@ public uint UndefinesCount { get { - var __ret = __Internal.GetUndefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetUndefinesCount(__Instance); + return ___ret; } } @@ -40530,8 +41014,8 @@ public uint SupportedStdTypesCount { get { - var __ret = __Internal.GetSupportedStdTypesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedStdTypesCount(__Instance); + return ___ret; } } @@ -40539,8 +41023,8 @@ public uint SupportedFunctionTemplatesCount { get { - var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return ___ret; } } } @@ -40620,6 +41104,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppLinkerOptions(native.ToPointer(), skipVTables); } @@ -40702,8 +41188,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40718,8 +41204,8 @@ public void ClearArguments() public string GetLibraryDirs(uint i) { - var __ret = __Internal.GetLibraryDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraryDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraryDirs(string s) @@ -40734,8 +41220,8 @@ public void ClearLibraryDirs() public string GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraries(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraries(string s) @@ -40752,8 +41238,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40761,8 +41247,8 @@ public uint LibraryDirsCount { get { - var __ret = __Internal.GetLibraryDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibraryDirsCount(__Instance); + return ___ret; } } @@ -40770,8 +41256,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -40817,6 +41303,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserDiagnostic(native.ToPointer(), skipVTables); } @@ -41029,6 +41517,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserResult(native.ToPointer(), skipVTables); } @@ -41111,11 +41601,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i) { - var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); - __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret); - global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); + __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret); + global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s) @@ -41133,8 +41623,8 @@ public void ClearDiagnostics() public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLibraries(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41183,8 +41673,8 @@ public uint DiagnosticsCount { get { - var __ret = __Internal.GetDiagnosticsCount(__Instance); - return __ret; + var ___ret = __Internal.GetDiagnosticsCount(__Instance); + return ___ret; } } @@ -41192,8 +41682,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -41242,6 +41732,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClangParser(native.ToPointer(), skipVTables); } @@ -41319,16 +41811,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseHeader(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseHeader(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseLibrary(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseLibrary(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41339,9 +41831,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41351,9 +41843,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString1 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString1, File); var __arg1 = __basicString1.__Instance; - var __ret = __Internal.Compile(__arg0, __arg1); + var ___ret = __Internal.Compile(__arg0, __arg1); __basicString1.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41364,9 +41856,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } } diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs index a2bb601c5..c7e2920ad 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs @@ -15,6 +15,8 @@ [assembly:InternalsVisibleTo("CppSharp.CppParser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace Std { } @@ -86,6 +88,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Allocator<_Tp>(native.ToPointer(), skipVTables); } @@ -231,6 +235,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharTraits<_CharT>(native.ToPointer(), skipVTables); } @@ -418,6 +424,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static BasicString<_CharT, _Traits, _Allocator> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BasicString<_CharT, _Traits, _Allocator>(native.ToPointer(), skipVTables); } @@ -520,16 +528,16 @@ public partial struct __Internal public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Assign(__arg0, __s); - var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Assign(__arg0, __s); + var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false); return __result0; } public static string Data(this global::Std.BasicString, global::Std.Allocator> @this) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Data(__arg0); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.Data(__arg0); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } } } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp index 04a272aee..7f36c1299 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp @@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST: extern "C" __declspec(dllexport) 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" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); } extern "C" __declspec(dllexport) 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" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs index de89c3f76..b83d0f97e 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs @@ -13,6 +13,8 @@ [assembly:InternalsVisibleTo("CppSharp.Parser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace CppSharp { namespace Parser @@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NativeLibrary(native.ToPointer(), skipVTables); } @@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetSymbols(uint i) { - var __ret = __Internal.GetSymbols(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSymbols(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSymbols(string s) @@ -219,8 +223,8 @@ public void ClearSymbols() public string GetDependencies(uint i) { - var __ret = __Internal.GetDependencies(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDependencies(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDependencies(string s) @@ -264,8 +268,8 @@ public uint SymbolsCount { get { - var __ret = __Internal.GetSymbolsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSymbolsCount(__Instance); + return ___ret; } } @@ -273,8 +277,8 @@ public uint DependenciesCount { get { - var __ret = __Internal.GetDependenciesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDependenciesCount(__Instance); + return ___ret; } } } @@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Comment(native.ToPointer(), skipVTables); } @@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockContentComment(native.ToPointer(), skipVTables); } @@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullComment(native.ToPointer(), skipVTables); } @@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i) { - var __ret = __Internal.GetBlocks(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBlocks(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -630,8 +640,8 @@ public uint BlocksCount { get { - var __ret = __Internal.GetBlocksCount(__Instance); - return __ret; + var ___ret = __Internal.GetBlocksCount(__Instance); + return ___ret; } } } @@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineContentComment(native.ToPointer(), skipVTables); } @@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParagraphComment(native.ToPointer(), skipVTables); } @@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i) { - var __ret = __Internal.GetContent(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetContent(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -887,8 +901,8 @@ public uint ContentCount { get { - var __ret = __Internal.GetContentCount(__Instance); - return __ret; + var ___ret = __Internal.GetContentCount(__Instance); + return ___ret; } } } @@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -1062,6 +1078,8 @@ public string Text internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockCommandComment(native.ToPointer(), skipVTables); } @@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s) @@ -1204,8 +1222,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -1241,6 +1259,8 @@ public enum PassDirection internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParamCommandComment(native.ToPointer(), skipVTables); } @@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TParamCommandComment(native.ToPointer(), skipVTables); } @@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public uint GetPosition(uint i) { - var __ret = __Internal.GetPosition(__Instance, i); - return __ret; + var ___ret = __Internal.GetPosition(__Instance, i); + return ___ret; } public void AddPosition(ref uint s) @@ -1477,8 +1499,8 @@ public uint PositionCount { get { - var __ret = __Internal.GetPositionCount(__Instance); - return __ret; + var ___ret = __Internal.GetPositionCount(__Instance); + return ___ret; } } } @@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } @@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockComment(native.ToPointer(), skipVTables); } @@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i) { - var __ret = __Internal.GetLines(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLines(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -1728,8 +1754,8 @@ public uint LinesCount { get { - var __ret = __Internal.GetLinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLinesCount(__Instance); + return ___ret; } } } @@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimLineComment(native.ToPointer(), skipVTables); } @@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -2023,6 +2053,8 @@ public string Text internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineCommandComment(native.ToPointer(), skipVTables); } @@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s) @@ -2150,8 +2182,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLTagComment(native.ToPointer(), skipVTables); } @@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Attribute(native.ToPointer(), skipVTables); } @@ -2429,6 +2465,8 @@ public string Value internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLStartTagComment(native.ToPointer(), skipVTables); } @@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i) { - var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); - __Internal.GetAttributes(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); - global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); + __Internal.GetAttributes(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret); + global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) @@ -2544,8 +2582,8 @@ public uint AttributesCount { get { - var __ret = __Internal.GetAttributesCount(__Instance); - return __ret; + var ___ret = __Internal.GetAttributesCount(__Instance); + return ___ret; } } } @@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLEndTagComment(native.ToPointer(), skipVTables); } @@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TextComment(native.ToPointer(), skipVTables); } @@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new RawComment(native.ToPointer(), skipVTables); } @@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SourceRange(native.ToPointer(), skipVTables); } @@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Type(native.ToPointer(), skipVTables); } @@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeQualifiers(native.ToPointer(), skipVTables); } @@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new QualifiedType(native.ToPointer(), skipVTables); } @@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TagType(native.ToPointer(), skipVTables); } @@ -3811,6 +3865,8 @@ public enum ArraySize internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayType(native.ToPointer(), skipVTables); } @@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionType(native.ToPointer(), skipVTables); } @@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -4103,8 +4161,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -4136,6 +4194,8 @@ public enum TypeModifier internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PointerType(native.ToPointer(), skipVTables); } @@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberPointerType(native.ToPointer(), skipVTables); } @@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefType(native.ToPointer(), skipVTables); } @@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedType(native.ToPointer(), skipVTables); } @@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DecayedType(native.ToPointer(), skipVTables); } @@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateArgument(native.ToPointer(), skipVTables); } @@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -4991,8 +5063,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -5145,8 +5219,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST. internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterType(native.ToPointer(), skipVTables); } @@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables); } @@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST. internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InjectedClassNameType(native.ToPointer(), skipVTables); } @@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentNameType(native.ToPointer(), skipVTables); } @@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionType(native.ToPointer(), skipVTables); } @@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryTransformType(native.ToPointer(), skipVTables); } @@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingType(native.ToPointer(), skipVTables); } @@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VectorType(native.ToPointer(), skipVTables); } @@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BuiltinType(native.ToPointer(), skipVTables); } @@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Declaration(native.ToPointer(), skipVTables); } @@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i) { - var __ret = __Internal.GetPreprocessedEntities(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetPreprocessedEntities(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities() public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i) { - var __ret = __Internal.GetRedeclarations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetRedeclarations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount { get { - var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance); - return __ret; + var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance); + return ___ret; } } @@ -6824,8 +6918,8 @@ public uint RedeclarationsCount { get { - var __ret = __Internal.GetRedeclarationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetRedeclarationsCount(__Instance); + return ___ret; } } } @@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclarationContext(native.ToPointer(), skipVTables); } @@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i) { - var __ret = __Internal.GetNamespaces(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetNamespaces(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7087,8 +7183,8 @@ public void ClearNamespaces() public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i) { - var __ret = __Internal.GetEnums(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetEnums(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7108,8 +7204,8 @@ public void ClearEnums() public global::CppSharp.Parser.AST.Function GetFunctions(uint i) { - var __ret = __Internal.GetFunctions(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFunctions(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7129,8 +7225,8 @@ public void ClearFunctions() public global::CppSharp.Parser.AST.Class GetClasses(uint i) { - var __ret = __Internal.GetClasses(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetClasses(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7150,8 +7246,8 @@ public void ClearClasses() public global::CppSharp.Parser.AST.Template GetTemplates(uint i) { - var __ret = __Internal.GetTemplates(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTemplates(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7171,8 +7267,8 @@ public void ClearTemplates() public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i) { - var __ret = __Internal.GetTypedefs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypedefs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7192,8 +7288,8 @@ public void ClearTypedefs() public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i) { - var __ret = __Internal.GetTypeAliases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypeAliases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7213,8 +7309,8 @@ public void ClearTypeAliases() public global::CppSharp.Parser.AST.Variable GetVariables(uint i) { - var __ret = __Internal.GetVariables(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetVariables(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7234,8 +7330,8 @@ public void ClearVariables() public global::CppSharp.Parser.AST.Friend GetFriends(uint i) { - var __ret = __Internal.GetFriends(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFriends(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7275,8 +7371,8 @@ public uint NamespacesCount { get { - var __ret = __Internal.GetNamespacesCount(__Instance); - return __ret; + var ___ret = __Internal.GetNamespacesCount(__Instance); + return ___ret; } } @@ -7284,8 +7380,8 @@ public uint EnumsCount { get { - var __ret = __Internal.GetEnumsCount(__Instance); - return __ret; + var ___ret = __Internal.GetEnumsCount(__Instance); + return ___ret; } } @@ -7293,8 +7389,8 @@ public uint FunctionsCount { get { - var __ret = __Internal.GetFunctionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFunctionsCount(__Instance); + return ___ret; } } @@ -7302,8 +7398,8 @@ public uint ClassesCount { get { - var __ret = __Internal.GetClassesCount(__Instance); - return __ret; + var ___ret = __Internal.GetClassesCount(__Instance); + return ___ret; } } @@ -7311,8 +7407,8 @@ public uint TemplatesCount { get { - var __ret = __Internal.GetTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTemplatesCount(__Instance); + return ___ret; } } @@ -7320,8 +7416,8 @@ public uint TypedefsCount { get { - var __ret = __Internal.GetTypedefsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypedefsCount(__Instance); + return ___ret; } } @@ -7329,8 +7425,8 @@ public uint TypeAliasesCount { get { - var __ret = __Internal.GetTypeAliasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypeAliasesCount(__Instance); + return ___ret; } } @@ -7338,8 +7434,8 @@ public uint VariablesCount { get { - var __ret = __Internal.GetVariablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVariablesCount(__Instance); + return ___ret; } } @@ -7347,8 +7443,8 @@ public uint FriendsCount { get { - var __ret = __Internal.GetFriendsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFriendsCount(__Instance); + return ___ret; } } } @@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefNameDecl(native.ToPointer(), skipVTables); } @@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefDecl(native.ToPointer(), skipVTables); } @@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAlias(native.ToPointer(), skipVTables); } @@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Friend(native.ToPointer(), skipVTables); } @@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StatementObsolete(native.ToPointer(), skipVTables); } @@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionObsolete(native.ToPointer(), skipVTables); } @@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperatorObsolete(native.ToPointer(), skipVTables); } @@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExprObsolete(native.ToPointer(), skipVTables); } @@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8429,8 +8541,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExprObsolete(native.ToPointer(), skipVTables); } @@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8574,8 +8688,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration, internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parameter(native.ToPointer(), skipVTables); } @@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Function(native.ToPointer(), skipVTables); } @@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9224,8 +9342,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -9324,6 +9442,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Method(native.ToPointer(), skipVTables); } @@ -9401,8 +9521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i) { - var __ret = __Internal.GetOverriddenMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetOverriddenMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9556,8 +9676,8 @@ public uint OverriddenMethodsCount { get { - var __ret = __Internal.GetOverriddenMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetOverriddenMethodsCount(__Instance); + return ___ret; } } } @@ -9680,6 +9800,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Item(native.ToPointer(), skipVTables); } @@ -9785,6 +9907,8 @@ public ulong Value internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Enumeration(native.ToPointer(), skipVTables); } @@ -9862,8 +9986,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i) { - var __ret = __Internal.GetItems(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetItems(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9886,9 +10010,9 @@ public void ClearItems() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindItemByName(__Instance, __arg0); + var ___ret = __Internal.FindItemByName(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9937,8 +10061,8 @@ public uint ItemsCount { get { - var __ret = __Internal.GetItemsCount(__Instance); - return __ret; + var ___ret = __Internal.GetItemsCount(__Instance); + return ___ret; } } } @@ -9987,6 +10111,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration, internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Variable(native.ToPointer(), skipVTables); } @@ -10156,6 +10282,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BaseClassSpecifier(native.ToPointer(), skipVTables); } @@ -10329,6 +10457,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Field(native.ToPointer(), skipVTables); } @@ -10500,6 +10630,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AccessSpecifierDecl(native.ToPointer(), skipVTables); } @@ -10612,6 +10744,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableComponent(native.ToPointer(), skipVTables); } @@ -10777,6 +10911,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableLayout(native.ToPointer(), skipVTables); } @@ -10859,9 +10995,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i) { - var __ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal(); - __Internal.GetComponents(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal(); + __Internal.GetComponents(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret); } public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s) @@ -10881,8 +11017,8 @@ public uint ComponentsCount { get { - var __ret = __Internal.GetComponentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetComponentsCount(__Instance); + return ___ret; } } } @@ -10927,6 +11063,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VFTableInfo(native.ToPointer(), skipVTables); } @@ -11102,6 +11240,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutField(native.ToPointer(), skipVTables); } @@ -11276,6 +11416,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutBase(native.ToPointer(), skipVTables); } @@ -11467,6 +11609,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassLayout(native.ToPointer(), skipVTables); } @@ -11549,11 +11693,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i) { - var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); - __Internal.GetVFTables(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret); - global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); + __Internal.GetVFTables(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret); + global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s) @@ -11571,11 +11715,11 @@ public void ClearVFTables() public global::CppSharp.Parser.AST.LayoutField GetFields(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); - __Internal.GetFields(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); + __Internal.GetFields(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddFields(global::CppSharp.Parser.AST.LayoutField s) @@ -11593,11 +11737,11 @@ public void ClearFields() public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); - __Internal.GetBases(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); + __Internal.GetBases(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddBases(global::CppSharp.Parser.AST.LayoutBase s) @@ -11723,8 +11867,8 @@ public uint VFTablesCount { get { - var __ret = __Internal.GetVFTablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVFTablesCount(__Instance); + return ___ret; } } @@ -11732,8 +11876,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -11741,8 +11885,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } } @@ -11862,6 +12006,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Class(native.ToPointer(), skipVTables); } @@ -11939,8 +12085,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i) { - var __ret = __Internal.GetBases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11960,8 +12106,8 @@ public void ClearBases() public global::CppSharp.Parser.AST.Field GetFields(uint i) { - var __ret = __Internal.GetFields(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFields(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11981,8 +12127,8 @@ public void ClearFields() public global::CppSharp.Parser.AST.Method GetMethods(uint i) { - var __ret = __Internal.GetMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12002,8 +12148,8 @@ public void ClearMethods() public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i) { - var __ret = __Internal.GetSpecifiers(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecifiers(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12182,8 +12328,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } @@ -12191,8 +12337,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -12200,8 +12346,8 @@ public uint MethodsCount { get { - var __ret = __Internal.GetMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetMethodsCount(__Instance); + return ___ret; } } @@ -12209,8 +12355,8 @@ public uint SpecifiersCount { get { - var __ret = __Internal.GetSpecifiersCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecifiersCount(__Instance); + return ___ret; } } } @@ -12272,6 +12418,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration, internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Template(native.ToPointer(), skipVTables); } @@ -12358,8 +12506,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12400,8 +12548,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -12448,6 +12596,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAliasTemplate(native.ToPointer(), skipVTables); } @@ -12567,6 +12717,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameter(native.ToPointer(), skipVTables); } @@ -12732,6 +12884,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser. internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateTemplateParameter(native.ToPointer(), skipVTables); } @@ -12891,6 +13045,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST. internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -12984,7 +13140,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 180)] + [StructLayout(LayoutKind.Sequential, Size = 188)] public new partial struct __Internal { internal global::CppSharp.Parser.AST.DeclarationKind kind; @@ -13031,6 +13187,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NonTypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -13250,6 +13408,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplate(native.ToPointer(), skipVTables); } @@ -13327,8 +13487,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13351,9 +13511,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13362,9 +13522,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13372,8 +13532,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13460,6 +13620,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -13537,9 +13699,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -13586,8 +13748,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -13662,6 +13824,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -13796,6 +13960,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplate(native.ToPointer(), skipVTables); } @@ -13873,8 +14039,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13897,9 +14063,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13907,8 +14073,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13965,6 +14131,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14047,9 +14215,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14110,8 +14278,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14177,6 +14345,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template, internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplate(native.ToPointer(), skipVTables); } @@ -14254,8 +14424,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14278,9 +14448,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14289,9 +14459,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14299,8 +14469,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -14364,6 +14534,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser. internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14441,9 +14613,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14490,8 +14662,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14543,6 +14715,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp. internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -14659,6 +14833,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingTypename(native.ToPointer(), skipVTables); } @@ -14788,6 +14964,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Namespace(native.ToPointer(), skipVTables); } @@ -14913,6 +15091,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PreprocessedEntity(native.ToPointer(), skipVTables); } @@ -15053,6 +15233,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroDefinition(native.ToPointer(), skipVTables); } @@ -15207,6 +15389,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroExpansion(native.ToPointer(), skipVTables); } @@ -15393,6 +15577,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TranslationUnit(native.ToPointer(), skipVTables); } @@ -15470,8 +15656,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i) { - var __ret = __Internal.GetMacros(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMacros(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15520,8 +15706,8 @@ public uint MacrosCount { get { - var __ret = __Internal.GetMacrosCount(__Instance); - return __ret; + var ___ret = __Internal.GetMacrosCount(__Instance); + return ___ret; } } } @@ -15578,6 +15764,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ASTContext(native.ToPointer(), skipVTables); } @@ -15663,16 +15851,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) __basicString0.__Instance; - var __ret = __Internal.FindOrCreateModule(__Instance, __arg0); + var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0); __basicString0.Dispose(disposing: true, callNativeDtor:false); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i) { - var __ret = __Internal.GetTranslationUnits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTranslationUnits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15694,8 +15882,8 @@ public uint TranslationUnitsCount { get { - var __ret = __Internal.GetTranslationUnitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTranslationUnitsCount(__Instance); + return ___ret; } } } @@ -15879,6 +16067,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Stmt(native.ToPointer(), skipVTables); } @@ -16059,6 +16249,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclStmt(native.ToPointer(), skipVTables); } @@ -16136,8 +16328,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration Getdecls(uint i) { - var __ret = __Internal.Getdecls(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getdecls(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16186,8 +16378,8 @@ public uint GetdeclsCount { get { - var __ret = __Internal.GetdeclsCount(__Instance); - return __ret; + var ___ret = __Internal.GetdeclsCount(__Instance); + return ___ret; } } } @@ -16213,6 +16405,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NullStmt(native.ToPointer(), skipVTables); } @@ -16338,6 +16532,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundStmt(native.ToPointer(), skipVTables); } @@ -16415,8 +16611,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Stmt Getbody(uint i) { - var __ret = __Internal.Getbody(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getbody(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16518,8 +16714,8 @@ public uint GetbodyCount { get { - var __ret = __Internal.GetbodyCount(__Instance); - return __ret; + var ___ret = __Internal.GetbodyCount(__Instance); + return ___ret; } } } @@ -16549,6 +16745,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchCase(native.ToPointer(), skipVTables); } @@ -16688,6 +16886,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CaseStmt(native.ToPointer(), skipVTables); } @@ -16836,6 +17036,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DefaultStmt(native.ToPointer(), skipVTables); } @@ -16930,6 +17132,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo private bool __name_OwnsNativeMemory = false; internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LabelStmt(native.ToPointer(), skipVTables); } @@ -17063,6 +17267,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedStmt(native.ToPointer(), skipVTables); } @@ -17179,6 +17385,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IfStmt(native.ToPointer(), skipVTables); } @@ -17425,6 +17633,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchStmt(native.ToPointer(), skipVTables); } @@ -17615,6 +17825,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new WhileStmt(native.ToPointer(), skipVTables); } @@ -17765,6 +17977,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DoStmt(native.ToPointer(), skipVTables); } @@ -17917,6 +18131,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ForStmt(native.ToPointer(), skipVTables); } @@ -18105,6 +18321,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GotoStmt(native.ToPointer(), skipVTables); } @@ -18211,6 +18429,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt, internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IndirectGotoStmt(native.ToPointer(), skipVTables); } @@ -18329,6 +18549,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ContinueStmt(native.ToPointer(), skipVTables); } @@ -18420,6 +18642,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BreakStmt(native.ToPointer(), skipVTables); } @@ -18512,6 +18736,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ReturnStmt(native.ToPointer(), skipVTables); } @@ -18655,6 +18881,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStmt(native.ToPointer(), skipVTables); } @@ -18741,8 +18969,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getinputs(uint i) { - var __ret = __Internal.Getinputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getinputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18762,8 +18990,8 @@ public void Clearinputs() public global::CppSharp.Parser.AST.Expr Getoutputs(uint i) { - var __ret = __Internal.Getoutputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getoutputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18881,8 +19109,8 @@ public uint GetinputsCount { get { - var __ret = __Internal.GetinputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetinputsCount(__Instance); + return ___ret; } } @@ -18890,8 +19118,8 @@ public uint GetoutputsCount { get { - var __ret = __Internal.GetoutputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetoutputsCount(__Instance); + return ___ret; } } } @@ -18973,6 +19201,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStringPiece(native.ToPointer(), skipVTables); } @@ -19122,6 +19352,8 @@ public sbyte Modifier internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GCCAsmStmt(native.ToPointer(), skipVTables); } @@ -19246,6 +19478,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSAsmStmt(native.ToPointer(), skipVTables); } @@ -19397,6 +19631,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHExceptStmt(native.ToPointer(), skipVTables); } @@ -19517,6 +19753,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHFinallyStmt(native.ToPointer(), skipVTables); } @@ -19627,6 +19865,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHTryStmt(native.ToPointer(), skipVTables); } @@ -19787,6 +20027,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHLeaveStmt(native.ToPointer(), skipVTables); } @@ -19940,6 +20182,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Capture(native.ToPointer(), skipVTables); } @@ -20096,6 +20340,8 @@ public bool CapturesVariableArrayType internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CapturedStmt(native.ToPointer(), skipVTables); } @@ -20173,8 +20419,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -20223,8 +20469,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -20251,6 +20497,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXCatchStmt(native.ToPointer(), skipVTables); } @@ -20373,6 +20621,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTryStmt(native.ToPointer(), skipVTables); } @@ -20503,6 +20753,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt, internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXForRangeStmt(native.ToPointer(), skipVTables); } @@ -20762,6 +21014,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST. internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSDependentExistsStmt(native.ToPointer(), skipVTables); } @@ -20952,6 +21206,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CtorArgs(native.ToPointer(), skipVTables); } @@ -21030,6 +21286,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineBodyStmt(native.ToPointer(), skipVTables); } @@ -21299,6 +21557,8 @@ public enum SubStmt internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoreturnStmt(native.ToPointer(), skipVTables); } @@ -21774,6 +22034,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Classification(native.ToPointer(), skipVTables); } @@ -21956,6 +22218,8 @@ public bool IsModifiable internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Expr(native.ToPointer(), skipVTables); } @@ -22251,6 +22515,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullExpr(native.ToPointer(), skipVTables); } @@ -22371,6 +22637,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr, internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConstantExpr(native.ToPointer(), skipVTables); } @@ -22466,6 +22734,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr, internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OpaqueValueExpr(native.ToPointer(), skipVTables); } @@ -22609,6 +22879,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclRefExpr(native.ToPointer(), skipVTables); } @@ -22859,6 +23131,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IntegerLiteral(native.ToPointer(), skipVTables); } @@ -22978,6 +23252,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FixedPointLiteral(native.ToPointer(), skipVTables); } @@ -23107,6 +23383,8 @@ public enum CharacterKind internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharacterLiteral(native.ToPointer(), skipVTables); } @@ -23241,6 +23519,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr, internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FloatingLiteral(native.ToPointer(), skipVTables); } @@ -23372,6 +23652,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr, internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImaginaryLiteral(native.ToPointer(), skipVTables); } @@ -23504,6 +23786,8 @@ public enum StringKind internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StringLiteral(native.ToPointer(), skipVTables); } @@ -23824,6 +24108,8 @@ public enum IdentKind internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PredefinedExpr(native.ToPointer(), skipVTables); } @@ -23944,6 +24230,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenExpr(native.ToPointer(), skipVTables); } @@ -24086,6 +24374,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryOperator(native.ToPointer(), skipVTables); } @@ -24325,6 +24615,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OffsetOfExpr(native.ToPointer(), skipVTables); } @@ -24475,6 +24767,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -24667,6 +24961,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArraySubscriptExpr(native.ToPointer(), skipVTables); } @@ -24854,6 +25150,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExpr(native.ToPointer(), skipVTables); } @@ -24940,8 +25238,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -25075,8 +25373,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -25127,6 +25425,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberExpr(native.ToPointer(), skipVTables); } @@ -25391,6 +25691,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundLiteralExpr(native.ToPointer(), skipVTables); } @@ -25533,6 +25835,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos private bool __castKindName_OwnsNativeMemory = false; internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CastExpr(native.ToPointer(), skipVTables); } @@ -25759,6 +26063,8 @@ public enum OnStack_t internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25874,6 +26180,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExplicitCastExpr(native.ToPointer(), skipVTables); } @@ -26004,6 +26312,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CStyleCastExpr(native.ToPointer(), skipVTables); } @@ -26146,6 +26456,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperator(native.ToPointer(), skipVTables); } @@ -26543,6 +26855,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundAssignOperator(native.ToPointer(), skipVTables); } @@ -26690,6 +27004,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AbstractConditionalOperator(native.ToPointer(), skipVTables); } @@ -26870,6 +27186,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConditionalOperator(native.ToPointer(), skipVTables); } @@ -26996,6 +27314,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser. internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryConditionalOperator(native.ToPointer(), skipVTables); } @@ -27117,6 +27437,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AddrLabelExpr(native.ToPointer(), skipVTables); } @@ -27237,6 +27559,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StmtExpr(native.ToPointer(), skipVTables); } @@ -27371,6 +27695,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ShuffleVectorExpr(native.ToPointer(), skipVTables); } @@ -27504,6 +27830,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConvertVectorExpr(native.ToPointer(), skipVTables); } @@ -27644,6 +27972,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ChooseExpr(native.ToPointer(), skipVTables); } @@ -27844,6 +28174,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GNUNullExpr(native.ToPointer(), skipVTables); } @@ -27952,6 +28284,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VAArgExpr(native.ToPointer(), skipVTables); } @@ -28108,6 +28442,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InitListExpr(native.ToPointer(), skipVTables); } @@ -28406,6 +28742,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Designator(native.ToPointer(), skipVTables); } @@ -28660,6 +28998,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FieldDesignator(native.ToPointer(), skipVTables); } @@ -28768,6 +29108,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables); } @@ -28846,6 +29188,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitExpr(native.ToPointer(), skipVTables); } @@ -29018,6 +29362,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NoInitExpr(native.ToPointer(), skipVTables); } @@ -29111,6 +29457,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables); } @@ -29232,6 +29580,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitLoopExpr(native.ToPointer(), skipVTables); } @@ -29351,6 +29701,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitIndexExpr(native.ToPointer(), skipVTables); } @@ -29442,6 +29794,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST. internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitValueInitExpr(native.ToPointer(), skipVTables); } @@ -29536,6 +29890,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenListExpr(native.ToPointer(), skipVTables); } @@ -29674,6 +30030,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GenericSelectionExpr(native.ToPointer(), skipVTables); } @@ -29876,6 +30234,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtVectorElementExpr(native.ToPointer(), skipVTables); } @@ -30035,6 +30395,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockExpr(native.ToPointer(), skipVTables); } @@ -30156,6 +30518,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsTypeExpr(native.ToPointer(), skipVTables); } @@ -30291,6 +30655,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr, internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PseudoObjectExpr(native.ToPointer(), skipVTables); } @@ -30501,6 +30867,8 @@ public enum AtomicOp internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AtomicExpr(native.ToPointer(), skipVTables); } @@ -30796,6 +31164,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypoExpr(native.ToPointer(), skipVTables); } @@ -30903,6 +31273,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXOperatorCallExpr(native.ToPointer(), skipVTables); } @@ -31078,6 +31450,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXMemberCallExpr(native.ToPointer(), skipVTables); } @@ -31228,6 +31602,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CUDAKernelCallExpr(native.ToPointer(), skipVTables); } @@ -31367,6 +31743,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli private bool __castName_OwnsNativeMemory = false; internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNamedCastExpr(native.ToPointer(), skipVTables); } @@ -31552,6 +31930,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStaticCastExpr(native.ToPointer(), skipVTables); } @@ -31656,6 +32036,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDynamicCastExpr(native.ToPointer(), skipVTables); } @@ -31772,6 +32154,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables); } @@ -31875,6 +32259,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstCastExpr(native.ToPointer(), skipVTables); } @@ -31991,6 +32377,8 @@ public enum LiteralOperatorKind internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UserDefinedLiteral(native.ToPointer(), skipVTables); } @@ -32143,6 +32531,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables); } @@ -32261,6 +32651,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST. internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables); } @@ -32366,6 +32758,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser. internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables); } @@ -32474,6 +32868,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTypeidExpr(native.ToPointer(), skipVTables); } @@ -32610,6 +33006,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertyRefExpr(native.ToPointer(), skipVTables); } @@ -32757,6 +33155,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables); } @@ -32895,6 +33295,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUuidofExpr(native.ToPointer(), skipVTables); } @@ -33047,6 +33449,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThisExpr(native.ToPointer(), skipVTables); } @@ -33167,6 +33571,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThrowExpr(native.ToPointer(), skipVTables); } @@ -33300,6 +33706,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultArgExpr(native.ToPointer(), skipVTables); } @@ -33420,6 +33828,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultInitExpr(native.ToPointer(), skipVTables); } @@ -33540,6 +33950,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables); } @@ -33680,6 +34092,8 @@ public enum ConstructionKind internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExpr(native.ToPointer(), skipVTables); } @@ -33766,8 +34180,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -33900,8 +34314,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -33943,6 +34357,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables); } @@ -34084,6 +34500,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST. internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables); } @@ -34226,6 +34644,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables); } @@ -34360,6 +34780,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LambdaExpr(native.ToPointer(), skipVTables); } @@ -34437,8 +34859,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -34581,8 +35003,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -34621,6 +35043,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables); } @@ -34762,6 +35186,8 @@ public enum InitializationStyle internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNewExpr(native.ToPointer(), skipVTables); } @@ -34839,8 +35265,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i) { - var __ret = __Internal.GetplacementArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetplacementArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -35055,8 +35481,8 @@ public uint GetplacementArgumentsCount { get { - var __ret = __Internal.GetplacementArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetplacementArgumentsCount(__Instance); + return ___ret; } } } @@ -35101,6 +35527,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDeleteExpr(native.ToPointer(), skipVTables); } @@ -35282,6 +35710,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables); } @@ -35483,6 +35913,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35603,6 +36035,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35738,6 +36172,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionTraitExpr(native.ToPointer(), skipVTables); } @@ -35897,6 +36333,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FindResult(native.ToPointer(), skipVTables); } @@ -35975,6 +36413,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OverloadExpr(native.ToPointer(), skipVTables); } @@ -36194,6 +36634,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedLookupExpr(native.ToPointer(), skipVTables); } @@ -36318,6 +36760,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser. internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables); } @@ -36503,6 +36947,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExprWithCleanups(native.ToPointer(), skipVTables); } @@ -36641,6 +37087,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables); } @@ -36718,8 +37166,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -36808,8 +37256,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -36861,6 +37309,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables); } @@ -37140,6 +37590,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedMemberExpr(native.ToPointer(), skipVTables); } @@ -37327,6 +37779,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr, internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNoexceptExpr(native.ToPointer(), skipVTables); } @@ -37447,6 +37901,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionExpr(native.ToPointer(), skipVTables); } @@ -37571,6 +38027,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SizeOfPackExpr(native.ToPointer(), skipVTables); } @@ -37743,6 +38201,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables); } @@ -37863,6 +38323,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp. internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables); } @@ -37984,6 +38446,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionParmPackExpr(native.ToPointer(), skipVTables); } @@ -38135,6 +38599,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtraState(native.ToPointer(), skipVTables); } @@ -38213,6 +38679,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables); } @@ -38366,6 +38834,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFoldExpr(native.ToPointer(), skipVTables); } @@ -38583,6 +39053,8 @@ public enum SubExpr internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineSuspendExpr(native.ToPointer(), skipVTables); } @@ -38779,6 +39251,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoawaitExpr(native.ToPointer(), skipVTables); } @@ -38900,6 +39374,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentCoawaitExpr(native.ToPointer(), skipVTables); } @@ -39039,6 +39515,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoyieldExpr(native.ToPointer(), skipVTables); } @@ -39210,6 +39688,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserTargetInfo(native.ToPointer(), skipVTables); } @@ -39882,6 +40362,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parser(native.ToPointer(), skipVTables); } @@ -40092,6 +40574,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppParserOptions(native.ToPointer(), skipVTables); } @@ -40174,8 +40658,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40190,8 +40674,8 @@ public void ClearArguments() public string GetCompilationOptions(uint i) { - var __ret = __Internal.GetCompilationOptions(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetCompilationOptions(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddCompilationOptions(string s) @@ -40206,8 +40690,8 @@ public void ClearCompilationOptions() public string GetSourceFiles(uint i) { - var __ret = __Internal.GetSourceFiles(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSourceFiles(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSourceFiles(string s) @@ -40222,8 +40706,8 @@ public void ClearSourceFiles() public string GetIncludeDirs(uint i) { - var __ret = __Internal.GetIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddIncludeDirs(string s) @@ -40238,8 +40722,8 @@ public void ClearIncludeDirs() public string GetSystemIncludeDirs(uint i) { - var __ret = __Internal.GetSystemIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSystemIncludeDirs(string s) @@ -40254,8 +40738,8 @@ public void ClearSystemIncludeDirs() public string GetDefines(uint i) { - var __ret = __Internal.GetDefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDefines(string s) @@ -40270,8 +40754,8 @@ public void ClearDefines() public string GetUndefines(uint i) { - var __ret = __Internal.GetUndefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetUndefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddUndefines(string s) @@ -40286,8 +40770,8 @@ public void ClearUndefines() public string GetSupportedStdTypes(uint i) { - var __ret = __Internal.GetSupportedStdTypes(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedStdTypes(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedStdTypes(string s) @@ -40302,8 +40786,8 @@ public void ClearSupportedStdTypes() public string GetSupportedFunctionTemplates(uint i) { - var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedFunctionTemplates(string s) @@ -40465,9 +40949,9 @@ public string ClangVersion { get { - var __ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); - __Internal.GetClangVersion(__Instance, new IntPtr(&__ret)); - var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); + var ___ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); + __Internal.GetClangVersion(__Instance, new IntPtr(&___ret)); + var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); __basicStringRet0.Dispose(); return __retString0; @@ -40478,8 +40962,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40487,8 +40971,8 @@ public uint CompilationOptionsCount { get { - var __ret = __Internal.GetCompilationOptionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetCompilationOptionsCount(__Instance); + return ___ret; } } @@ -40496,8 +40980,8 @@ public uint SourceFilesCount { get { - var __ret = __Internal.GetSourceFilesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSourceFilesCount(__Instance); + return ___ret; } } @@ -40505,8 +40989,8 @@ public uint IncludeDirsCount { get { - var __ret = __Internal.GetIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetIncludeDirsCount(__Instance); + return ___ret; } } @@ -40514,8 +40998,8 @@ public uint SystemIncludeDirsCount { get { - var __ret = __Internal.GetSystemIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance); + return ___ret; } } @@ -40523,8 +41007,8 @@ public uint DefinesCount { get { - var __ret = __Internal.GetDefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDefinesCount(__Instance); + return ___ret; } } @@ -40532,8 +41016,8 @@ public uint UndefinesCount { get { - var __ret = __Internal.GetUndefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetUndefinesCount(__Instance); + return ___ret; } } @@ -40541,8 +41025,8 @@ public uint SupportedStdTypesCount { get { - var __ret = __Internal.GetSupportedStdTypesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedStdTypesCount(__Instance); + return ___ret; } } @@ -40550,8 +41034,8 @@ public uint SupportedFunctionTemplatesCount { get { - var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return ___ret; } } } @@ -40631,6 +41115,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppLinkerOptions(native.ToPointer(), skipVTables); } @@ -40713,8 +41199,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40729,8 +41215,8 @@ public void ClearArguments() public string GetLibraryDirs(uint i) { - var __ret = __Internal.GetLibraryDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraryDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraryDirs(string s) @@ -40745,8 +41231,8 @@ public void ClearLibraryDirs() public string GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraries(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraries(string s) @@ -40763,8 +41249,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40772,8 +41258,8 @@ public uint LibraryDirsCount { get { - var __ret = __Internal.GetLibraryDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibraryDirsCount(__Instance); + return ___ret; } } @@ -40781,8 +41267,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -40828,6 +41314,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserDiagnostic(native.ToPointer(), skipVTables); } @@ -41040,6 +41528,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserResult(native.ToPointer(), skipVTables); } @@ -41122,11 +41612,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i) { - var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); - __Internal.GetDiagnostics(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret); - global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); + __Internal.GetDiagnostics(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret); + global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s) @@ -41144,8 +41634,8 @@ public void ClearDiagnostics() public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLibraries(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41194,8 +41684,8 @@ public uint DiagnosticsCount { get { - var __ret = __Internal.GetDiagnosticsCount(__Instance); - return __ret; + var ___ret = __Internal.GetDiagnosticsCount(__Instance); + return ___ret; } } @@ -41203,8 +41693,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -41253,6 +41743,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClangParser(native.ToPointer(), skipVTables); } @@ -41330,16 +41822,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseHeader(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseHeader(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseLibrary(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseLibrary(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41350,9 +41842,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41362,9 +41854,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString1 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString1, File); var __arg1 = __basicString1.__Instance; - var __ret = __Internal.Compile(__arg0, __arg1); + var ___ret = __Internal.Compile(__arg0, __arg1); __basicString1.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41375,9 +41867,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs index a6427be1e..7ebca0dad 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs @@ -15,6 +15,8 @@ [assembly:InternalsVisibleTo("CppSharp.CppParser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace Std { namespace Vector @@ -99,6 +101,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static Allocator<_Ty> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Allocator<_Ty>(native.ToPointer(), skipVTables); } @@ -167,15 +171,6 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) return; NativeToManagedMap.TryRemove(__Instance, out _); DisposePartial(disposing); - if (callNativeDtor) - { - var ___Ty = typeof(_Ty); - if (___Ty.IsAssignableFrom(typeof(sbyte))) - { - return; - } - throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); - } if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; @@ -243,6 +238,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static BasicString<_Elem, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BasicString<_Elem, _Traits, _Alloc>(native.ToPointer(), skipVTables); } @@ -389,6 +386,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static CharTraits<_Elem> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharTraits<_Elem>(native.ToPointer(), skipVTables); } @@ -463,16 +462,16 @@ public partial struct __Internal public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string _Ptr) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Assign(__arg0, _Ptr); - var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Assign(__arg0, _Ptr); + var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false); return __result0; } public static string Data(this global::Std.BasicString, global::Std.Allocator> @this) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Data(__arg0); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.Data(__arg0); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp index 0ac2c5a0e..38c9d198b 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp @@ -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(); } diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs index 576edd3c1..fe3ab591a 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs @@ -13,6 +13,8 @@ [assembly:InternalsVisibleTo("CppSharp.Parser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace CppSharp { namespace Parser @@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NativeLibrary(native.ToPointer(), skipVTables); } @@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetSymbols(uint i) { - var __ret = __Internal.GetSymbols(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSymbols(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSymbols(string s) @@ -219,8 +223,8 @@ public void ClearSymbols() public string GetDependencies(uint i) { - var __ret = __Internal.GetDependencies(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDependencies(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDependencies(string s) @@ -264,8 +268,8 @@ public uint SymbolsCount { get { - var __ret = __Internal.GetSymbolsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSymbolsCount(__Instance); + return ___ret; } } @@ -273,8 +277,8 @@ public uint DependenciesCount { get { - var __ret = __Internal.GetDependenciesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDependenciesCount(__Instance); + return ___ret; } } } @@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Comment(native.ToPointer(), skipVTables); } @@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockContentComment(native.ToPointer(), skipVTables); } @@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullComment(native.ToPointer(), skipVTables); } @@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i) { - var __ret = __Internal.GetBlocks(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBlocks(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -630,8 +640,8 @@ public uint BlocksCount { get { - var __ret = __Internal.GetBlocksCount(__Instance); - return __ret; + var ___ret = __Internal.GetBlocksCount(__Instance); + return ___ret; } } } @@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineContentComment(native.ToPointer(), skipVTables); } @@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParagraphComment(native.ToPointer(), skipVTables); } @@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i) { - var __ret = __Internal.GetContent(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetContent(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -887,8 +901,8 @@ public uint ContentCount { get { - var __ret = __Internal.GetContentCount(__Instance); - return __ret; + var ___ret = __Internal.GetContentCount(__Instance); + return ___ret; } } } @@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -1062,6 +1078,8 @@ public string Text internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockCommandComment(native.ToPointer(), skipVTables); } @@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s) @@ -1204,8 +1222,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -1241,6 +1259,8 @@ public enum PassDirection : uint internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParamCommandComment(native.ToPointer(), skipVTables); } @@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TParamCommandComment(native.ToPointer(), skipVTables); } @@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public uint GetPosition(uint i) { - var __ret = __Internal.GetPosition(__Instance, i); - return __ret; + var ___ret = __Internal.GetPosition(__Instance, i); + return ___ret; } public void AddPosition(ref uint s) @@ -1477,8 +1499,8 @@ public uint PositionCount { get { - var __ret = __Internal.GetPositionCount(__Instance); - return __ret; + var ___ret = __Internal.GetPositionCount(__Instance); + return ___ret; } } } @@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } @@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockComment(native.ToPointer(), skipVTables); } @@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i) { - var __ret = __Internal.GetLines(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLines(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -1728,8 +1754,8 @@ public uint LinesCount { get { - var __ret = __Internal.GetLinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLinesCount(__Instance); + return ___ret; } } } @@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimLineComment(native.ToPointer(), skipVTables); } @@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -2023,6 +2053,8 @@ public string Text internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineCommandComment(native.ToPointer(), skipVTables); } @@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s) @@ -2150,8 +2182,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLTagComment(native.ToPointer(), skipVTables); } @@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Attribute(native.ToPointer(), skipVTables); } @@ -2429,6 +2465,8 @@ public string Value internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLStartTagComment(native.ToPointer(), skipVTables); } @@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i) { - var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); - __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); - global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); + __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret); + global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) @@ -2544,8 +2582,8 @@ public uint AttributesCount { get { - var __ret = __Internal.GetAttributesCount(__Instance); - return __ret; + var ___ret = __Internal.GetAttributesCount(__Instance); + return ___ret; } } } @@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLEndTagComment(native.ToPointer(), skipVTables); } @@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TextComment(native.ToPointer(), skipVTables); } @@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new RawComment(native.ToPointer(), skipVTables); } @@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SourceRange(native.ToPointer(), skipVTables); } @@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Type(native.ToPointer(), skipVTables); } @@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeQualifiers(native.ToPointer(), skipVTables); } @@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new QualifiedType(native.ToPointer(), skipVTables); } @@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TagType(native.ToPointer(), skipVTables); } @@ -3811,6 +3865,8 @@ public enum ArraySize internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayType(native.ToPointer(), skipVTables); } @@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionType(native.ToPointer(), skipVTables); } @@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -4103,8 +4161,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -4136,6 +4194,8 @@ public enum TypeModifier internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PointerType(native.ToPointer(), skipVTables); } @@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberPointerType(native.ToPointer(), skipVTables); } @@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefType(native.ToPointer(), skipVTables); } @@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedType(native.ToPointer(), skipVTables); } @@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DecayedType(native.ToPointer(), skipVTables); } @@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateArgument(native.ToPointer(), skipVTables); } @@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -4991,8 +5063,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -5145,8 +5219,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST. internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterType(native.ToPointer(), skipVTables); } @@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables); } @@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST. internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InjectedClassNameType(native.ToPointer(), skipVTables); } @@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentNameType(native.ToPointer(), skipVTables); } @@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionType(native.ToPointer(), skipVTables); } @@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryTransformType(native.ToPointer(), skipVTables); } @@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingType(native.ToPointer(), skipVTables); } @@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VectorType(native.ToPointer(), skipVTables); } @@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BuiltinType(native.ToPointer(), skipVTables); } @@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Declaration(native.ToPointer(), skipVTables); } @@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i) { - var __ret = __Internal.GetPreprocessedEntities(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetPreprocessedEntities(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities() public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i) { - var __ret = __Internal.GetRedeclarations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetRedeclarations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount { get { - var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance); - return __ret; + var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance); + return ___ret; } } @@ -6824,8 +6918,8 @@ public uint RedeclarationsCount { get { - var __ret = __Internal.GetRedeclarationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetRedeclarationsCount(__Instance); + return ___ret; } } } @@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclarationContext(native.ToPointer(), skipVTables); } @@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i) { - var __ret = __Internal.GetNamespaces(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetNamespaces(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7087,8 +7183,8 @@ public void ClearNamespaces() public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i) { - var __ret = __Internal.GetEnums(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetEnums(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7108,8 +7204,8 @@ public void ClearEnums() public global::CppSharp.Parser.AST.Function GetFunctions(uint i) { - var __ret = __Internal.GetFunctions(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFunctions(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7129,8 +7225,8 @@ public void ClearFunctions() public global::CppSharp.Parser.AST.Class GetClasses(uint i) { - var __ret = __Internal.GetClasses(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetClasses(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7150,8 +7246,8 @@ public void ClearClasses() public global::CppSharp.Parser.AST.Template GetTemplates(uint i) { - var __ret = __Internal.GetTemplates(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTemplates(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7171,8 +7267,8 @@ public void ClearTemplates() public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i) { - var __ret = __Internal.GetTypedefs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypedefs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7192,8 +7288,8 @@ public void ClearTypedefs() public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i) { - var __ret = __Internal.GetTypeAliases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypeAliases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7213,8 +7309,8 @@ public void ClearTypeAliases() public global::CppSharp.Parser.AST.Variable GetVariables(uint i) { - var __ret = __Internal.GetVariables(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetVariables(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7234,8 +7330,8 @@ public void ClearVariables() public global::CppSharp.Parser.AST.Friend GetFriends(uint i) { - var __ret = __Internal.GetFriends(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFriends(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7275,8 +7371,8 @@ public uint NamespacesCount { get { - var __ret = __Internal.GetNamespacesCount(__Instance); - return __ret; + var ___ret = __Internal.GetNamespacesCount(__Instance); + return ___ret; } } @@ -7284,8 +7380,8 @@ public uint EnumsCount { get { - var __ret = __Internal.GetEnumsCount(__Instance); - return __ret; + var ___ret = __Internal.GetEnumsCount(__Instance); + return ___ret; } } @@ -7293,8 +7389,8 @@ public uint FunctionsCount { get { - var __ret = __Internal.GetFunctionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFunctionsCount(__Instance); + return ___ret; } } @@ -7302,8 +7398,8 @@ public uint ClassesCount { get { - var __ret = __Internal.GetClassesCount(__Instance); - return __ret; + var ___ret = __Internal.GetClassesCount(__Instance); + return ___ret; } } @@ -7311,8 +7407,8 @@ public uint TemplatesCount { get { - var __ret = __Internal.GetTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTemplatesCount(__Instance); + return ___ret; } } @@ -7320,8 +7416,8 @@ public uint TypedefsCount { get { - var __ret = __Internal.GetTypedefsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypedefsCount(__Instance); + return ___ret; } } @@ -7329,8 +7425,8 @@ public uint TypeAliasesCount { get { - var __ret = __Internal.GetTypeAliasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypeAliasesCount(__Instance); + return ___ret; } } @@ -7338,8 +7434,8 @@ public uint VariablesCount { get { - var __ret = __Internal.GetVariablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVariablesCount(__Instance); + return ___ret; } } @@ -7347,8 +7443,8 @@ public uint FriendsCount { get { - var __ret = __Internal.GetFriendsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFriendsCount(__Instance); + return ___ret; } } } @@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefNameDecl(native.ToPointer(), skipVTables); } @@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefDecl(native.ToPointer(), skipVTables); } @@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAlias(native.ToPointer(), skipVTables); } @@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Friend(native.ToPointer(), skipVTables); } @@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StatementObsolete(native.ToPointer(), skipVTables); } @@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionObsolete(native.ToPointer(), skipVTables); } @@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperatorObsolete(native.ToPointer(), skipVTables); } @@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExprObsolete(native.ToPointer(), skipVTables); } @@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8429,8 +8541,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExprObsolete(native.ToPointer(), skipVTables); } @@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8574,8 +8688,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration, internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parameter(native.ToPointer(), skipVTables); } @@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Function(native.ToPointer(), skipVTables); } @@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9224,8 +9342,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -9324,6 +9442,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Method(native.ToPointer(), skipVTables); } @@ -9401,8 +9521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i) { - var __ret = __Internal.GetOverriddenMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetOverriddenMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9556,8 +9676,8 @@ public uint OverriddenMethodsCount { get { - var __ret = __Internal.GetOverriddenMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetOverriddenMethodsCount(__Instance); + return ___ret; } } } @@ -9680,6 +9800,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Item(native.ToPointer(), skipVTables); } @@ -9785,6 +9907,8 @@ public ulong Value internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Enumeration(native.ToPointer(), skipVTables); } @@ -9862,8 +9986,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i) { - var __ret = __Internal.GetItems(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetItems(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9886,9 +10010,9 @@ public void ClearItems() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindItemByName(__Instance, __arg0); + var ___ret = __Internal.FindItemByName(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9937,8 +10061,8 @@ public uint ItemsCount { get { - var __ret = __Internal.GetItemsCount(__Instance); - return __ret; + var ___ret = __Internal.GetItemsCount(__Instance); + return ___ret; } } } @@ -9987,6 +10111,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration, internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Variable(native.ToPointer(), skipVTables); } @@ -10156,6 +10282,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BaseClassSpecifier(native.ToPointer(), skipVTables); } @@ -10329,6 +10457,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Field(native.ToPointer(), skipVTables); } @@ -10500,6 +10630,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AccessSpecifierDecl(native.ToPointer(), skipVTables); } @@ -10612,6 +10744,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableComponent(native.ToPointer(), skipVTables); } @@ -10777,6 +10911,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableLayout(native.ToPointer(), skipVTables); } @@ -10859,8 +10995,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i) { - var __ret = __Internal.GetComponents(__Instance, i); - return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret); + var ___ret = __Internal.GetComponents(__Instance, i); + return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret); } public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s) @@ -10880,8 +11016,8 @@ public uint ComponentsCount { get { - var __ret = __Internal.GetComponentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetComponentsCount(__Instance); + return ___ret; } } } @@ -10926,6 +11062,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VFTableInfo(native.ToPointer(), skipVTables); } @@ -11101,6 +11239,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutField(native.ToPointer(), skipVTables); } @@ -11275,6 +11415,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutBase(native.ToPointer(), skipVTables); } @@ -11466,6 +11608,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassLayout(native.ToPointer(), skipVTables); } @@ -11548,11 +11692,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i) { - var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); - __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret); - global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); + __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret); + global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s) @@ -11570,11 +11714,11 @@ public void ClearVFTables() public global::CppSharp.Parser.AST.LayoutField GetFields(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); - __Internal.GetFields(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); + __Internal.GetFields(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddFields(global::CppSharp.Parser.AST.LayoutField s) @@ -11592,11 +11736,11 @@ public void ClearFields() public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); - __Internal.GetBases(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); + __Internal.GetBases(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddBases(global::CppSharp.Parser.AST.LayoutBase s) @@ -11722,8 +11866,8 @@ public uint VFTablesCount { get { - var __ret = __Internal.GetVFTablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVFTablesCount(__Instance); + return ___ret; } } @@ -11731,8 +11875,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -11740,8 +11884,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } } @@ -11861,6 +12005,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Class(native.ToPointer(), skipVTables); } @@ -11938,8 +12084,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i) { - var __ret = __Internal.GetBases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11959,8 +12105,8 @@ public void ClearBases() public global::CppSharp.Parser.AST.Field GetFields(uint i) { - var __ret = __Internal.GetFields(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFields(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11980,8 +12126,8 @@ public void ClearFields() public global::CppSharp.Parser.AST.Method GetMethods(uint i) { - var __ret = __Internal.GetMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12001,8 +12147,8 @@ public void ClearMethods() public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i) { - var __ret = __Internal.GetSpecifiers(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecifiers(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12181,8 +12327,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } @@ -12190,8 +12336,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -12199,8 +12345,8 @@ public uint MethodsCount { get { - var __ret = __Internal.GetMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetMethodsCount(__Instance); + return ___ret; } } @@ -12208,8 +12354,8 @@ public uint SpecifiersCount { get { - var __ret = __Internal.GetSpecifiersCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecifiersCount(__Instance); + return ___ret; } } } @@ -12271,6 +12417,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration, internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Template(native.ToPointer(), skipVTables); } @@ -12357,8 +12505,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12399,8 +12547,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -12447,6 +12595,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAliasTemplate(native.ToPointer(), skipVTables); } @@ -12566,6 +12716,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameter(native.ToPointer(), skipVTables); } @@ -12731,6 +12883,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser. internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateTemplateParameter(native.ToPointer(), skipVTables); } @@ -12890,6 +13044,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST. internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -12983,7 +13139,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 240)] + [StructLayout(LayoutKind.Sequential, Size = 256)] public new partial struct __Internal { internal global::CppSharp.Parser.AST.DeclarationKind kind; @@ -13030,6 +13186,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NonTypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -13249,6 +13407,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplate(native.ToPointer(), skipVTables); } @@ -13326,8 +13486,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13350,9 +13510,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13361,9 +13521,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13371,8 +13531,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13459,6 +13619,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -13536,9 +13698,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -13585,8 +13747,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -13661,6 +13823,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -13795,6 +13959,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplate(native.ToPointer(), skipVTables); } @@ -13872,8 +14038,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13896,9 +14062,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13906,8 +14072,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13964,6 +14130,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14046,9 +14214,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14109,8 +14277,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14176,6 +14344,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template, internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplate(native.ToPointer(), skipVTables); } @@ -14253,8 +14423,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14277,9 +14447,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14288,9 +14458,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14298,8 +14468,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -14363,6 +14533,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser. internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14440,9 +14612,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14489,8 +14661,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14542,6 +14714,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp. internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -14658,6 +14832,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingTypename(native.ToPointer(), skipVTables); } @@ -14786,6 +14962,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Namespace(native.ToPointer(), skipVTables); } @@ -14911,6 +15089,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PreprocessedEntity(native.ToPointer(), skipVTables); } @@ -15051,6 +15231,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroDefinition(native.ToPointer(), skipVTables); } @@ -15205,6 +15387,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroExpansion(native.ToPointer(), skipVTables); } @@ -15390,6 +15574,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TranslationUnit(native.ToPointer(), skipVTables); } @@ -15467,8 +15653,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i) { - var __ret = __Internal.GetMacros(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMacros(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15517,8 +15703,8 @@ public uint MacrosCount { get { - var __ret = __Internal.GetMacrosCount(__Instance); - return __ret; + var ___ret = __Internal.GetMacrosCount(__Instance); + return ___ret; } } } @@ -15575,6 +15761,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ASTContext(native.ToPointer(), skipVTables); } @@ -15660,16 +15848,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindOrCreateModule(__Instance, __arg0); + var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0); __basicString0.Dispose(disposing: true, callNativeDtor:false); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i) { - var __ret = __Internal.GetTranslationUnits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTranslationUnits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15691,8 +15879,8 @@ public uint TranslationUnitsCount { get { - var __ret = __Internal.GetTranslationUnitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTranslationUnitsCount(__Instance); + return ___ret; } } } @@ -15876,6 +16064,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Stmt(native.ToPointer(), skipVTables); } @@ -16056,6 +16246,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclStmt(native.ToPointer(), skipVTables); } @@ -16133,8 +16325,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration Getdecls(uint i) { - var __ret = __Internal.Getdecls(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getdecls(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16183,8 +16375,8 @@ public uint GetdeclsCount { get { - var __ret = __Internal.GetdeclsCount(__Instance); - return __ret; + var ___ret = __Internal.GetdeclsCount(__Instance); + return ___ret; } } } @@ -16210,6 +16402,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NullStmt(native.ToPointer(), skipVTables); } @@ -16335,6 +16529,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundStmt(native.ToPointer(), skipVTables); } @@ -16412,8 +16608,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Stmt Getbody(uint i) { - var __ret = __Internal.Getbody(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getbody(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16515,8 +16711,8 @@ public uint GetbodyCount { get { - var __ret = __Internal.GetbodyCount(__Instance); - return __ret; + var ___ret = __Internal.GetbodyCount(__Instance); + return ___ret; } } } @@ -16546,6 +16742,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchCase(native.ToPointer(), skipVTables); } @@ -16685,6 +16883,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CaseStmt(native.ToPointer(), skipVTables); } @@ -16833,6 +17033,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DefaultStmt(native.ToPointer(), skipVTables); } @@ -16927,6 +17129,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo private bool __name_OwnsNativeMemory = false; internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LabelStmt(native.ToPointer(), skipVTables); } @@ -17060,6 +17264,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedStmt(native.ToPointer(), skipVTables); } @@ -17176,6 +17382,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IfStmt(native.ToPointer(), skipVTables); } @@ -17422,6 +17630,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchStmt(native.ToPointer(), skipVTables); } @@ -17612,6 +17822,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new WhileStmt(native.ToPointer(), skipVTables); } @@ -17762,6 +17974,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DoStmt(native.ToPointer(), skipVTables); } @@ -17914,6 +18128,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ForStmt(native.ToPointer(), skipVTables); } @@ -18102,6 +18318,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GotoStmt(native.ToPointer(), skipVTables); } @@ -18208,6 +18426,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt, internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IndirectGotoStmt(native.ToPointer(), skipVTables); } @@ -18326,6 +18546,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ContinueStmt(native.ToPointer(), skipVTables); } @@ -18417,6 +18639,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BreakStmt(native.ToPointer(), skipVTables); } @@ -18509,6 +18733,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ReturnStmt(native.ToPointer(), skipVTables); } @@ -18652,6 +18878,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStmt(native.ToPointer(), skipVTables); } @@ -18738,8 +18966,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getinputs(uint i) { - var __ret = __Internal.Getinputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getinputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18759,8 +18987,8 @@ public void Clearinputs() public global::CppSharp.Parser.AST.Expr Getoutputs(uint i) { - var __ret = __Internal.Getoutputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getoutputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18878,8 +19106,8 @@ public uint GetinputsCount { get { - var __ret = __Internal.GetinputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetinputsCount(__Instance); + return ___ret; } } @@ -18887,8 +19115,8 @@ public uint GetoutputsCount { get { - var __ret = __Internal.GetoutputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetoutputsCount(__Instance); + return ___ret; } } } @@ -18970,6 +19198,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStringPiece(native.ToPointer(), skipVTables); } @@ -19119,6 +19349,8 @@ public sbyte Modifier internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GCCAsmStmt(native.ToPointer(), skipVTables); } @@ -19243,6 +19475,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSAsmStmt(native.ToPointer(), skipVTables); } @@ -19394,6 +19628,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHExceptStmt(native.ToPointer(), skipVTables); } @@ -19514,6 +19750,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHFinallyStmt(native.ToPointer(), skipVTables); } @@ -19624,6 +19862,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHTryStmt(native.ToPointer(), skipVTables); } @@ -19784,6 +20024,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHLeaveStmt(native.ToPointer(), skipVTables); } @@ -19937,6 +20179,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Capture(native.ToPointer(), skipVTables); } @@ -20093,6 +20337,8 @@ public bool CapturesVariableArrayType internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CapturedStmt(native.ToPointer(), skipVTables); } @@ -20170,8 +20416,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -20220,8 +20466,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -20248,6 +20494,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXCatchStmt(native.ToPointer(), skipVTables); } @@ -20370,6 +20618,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTryStmt(native.ToPointer(), skipVTables); } @@ -20500,6 +20750,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt, internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXForRangeStmt(native.ToPointer(), skipVTables); } @@ -20759,6 +21011,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST. internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSDependentExistsStmt(native.ToPointer(), skipVTables); } @@ -20949,6 +21203,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CtorArgs(native.ToPointer(), skipVTables); } @@ -21027,6 +21283,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineBodyStmt(native.ToPointer(), skipVTables); } @@ -21296,6 +21554,8 @@ public enum SubStmt internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoreturnStmt(native.ToPointer(), skipVTables); } @@ -21771,6 +22031,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Classification(native.ToPointer(), skipVTables); } @@ -21953,6 +22215,8 @@ public bool IsModifiable internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Expr(native.ToPointer(), skipVTables); } @@ -22248,6 +22512,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullExpr(native.ToPointer(), skipVTables); } @@ -22368,6 +22634,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr, internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConstantExpr(native.ToPointer(), skipVTables); } @@ -22462,6 +22730,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr, internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OpaqueValueExpr(native.ToPointer(), skipVTables); } @@ -22605,6 +22875,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclRefExpr(native.ToPointer(), skipVTables); } @@ -22855,6 +23127,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IntegerLiteral(native.ToPointer(), skipVTables); } @@ -22974,6 +23248,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FixedPointLiteral(native.ToPointer(), skipVTables); } @@ -23103,6 +23379,8 @@ public enum CharacterKind internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharacterLiteral(native.ToPointer(), skipVTables); } @@ -23236,6 +23514,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr, internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FloatingLiteral(native.ToPointer(), skipVTables); } @@ -23367,6 +23647,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr, internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImaginaryLiteral(native.ToPointer(), skipVTables); } @@ -23499,6 +23781,8 @@ public enum StringKind internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StringLiteral(native.ToPointer(), skipVTables); } @@ -23819,6 +24103,8 @@ public enum IdentKind internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PredefinedExpr(native.ToPointer(), skipVTables); } @@ -23939,6 +24225,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenExpr(native.ToPointer(), skipVTables); } @@ -24081,6 +24369,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryOperator(native.ToPointer(), skipVTables); } @@ -24320,6 +24610,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OffsetOfExpr(native.ToPointer(), skipVTables); } @@ -24470,6 +24762,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -24662,6 +24956,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArraySubscriptExpr(native.ToPointer(), skipVTables); } @@ -24849,6 +25145,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExpr(native.ToPointer(), skipVTables); } @@ -24935,8 +25233,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -25070,8 +25368,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -25122,6 +25420,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberExpr(native.ToPointer(), skipVTables); } @@ -25386,6 +25686,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundLiteralExpr(native.ToPointer(), skipVTables); } @@ -25528,6 +25830,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos private bool __castKindName_OwnsNativeMemory = false; internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CastExpr(native.ToPointer(), skipVTables); } @@ -25754,6 +26058,8 @@ public enum OnStack_t internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25869,6 +26175,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25999,6 +26307,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CStyleCastExpr(native.ToPointer(), skipVTables); } @@ -26141,6 +26451,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperator(native.ToPointer(), skipVTables); } @@ -26538,6 +26850,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundAssignOperator(native.ToPointer(), skipVTables); } @@ -26685,6 +26999,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AbstractConditionalOperator(native.ToPointer(), skipVTables); } @@ -26865,6 +27181,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConditionalOperator(native.ToPointer(), skipVTables); } @@ -26991,6 +27309,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser. internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryConditionalOperator(native.ToPointer(), skipVTables); } @@ -27112,6 +27432,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AddrLabelExpr(native.ToPointer(), skipVTables); } @@ -27232,6 +27554,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StmtExpr(native.ToPointer(), skipVTables); } @@ -27366,6 +27690,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ShuffleVectorExpr(native.ToPointer(), skipVTables); } @@ -27499,6 +27825,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConvertVectorExpr(native.ToPointer(), skipVTables); } @@ -27638,6 +27966,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ChooseExpr(native.ToPointer(), skipVTables); } @@ -27838,6 +28168,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GNUNullExpr(native.ToPointer(), skipVTables); } @@ -27946,6 +28278,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VAArgExpr(native.ToPointer(), skipVTables); } @@ -28102,6 +28436,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InitListExpr(native.ToPointer(), skipVTables); } @@ -28400,6 +28736,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Designator(native.ToPointer(), skipVTables); } @@ -28654,6 +28992,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FieldDesignator(native.ToPointer(), skipVTables); } @@ -28762,6 +29102,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables); } @@ -28840,6 +29182,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitExpr(native.ToPointer(), skipVTables); } @@ -29012,6 +29356,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NoInitExpr(native.ToPointer(), skipVTables); } @@ -29105,6 +29451,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables); } @@ -29226,6 +29574,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitLoopExpr(native.ToPointer(), skipVTables); } @@ -29345,6 +29695,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitIndexExpr(native.ToPointer(), skipVTables); } @@ -29436,6 +29788,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST. internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitValueInitExpr(native.ToPointer(), skipVTables); } @@ -29530,6 +29884,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenListExpr(native.ToPointer(), skipVTables); } @@ -29668,6 +30024,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GenericSelectionExpr(native.ToPointer(), skipVTables); } @@ -29870,6 +30228,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtVectorElementExpr(native.ToPointer(), skipVTables); } @@ -30029,6 +30389,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockExpr(native.ToPointer(), skipVTables); } @@ -30150,6 +30512,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsTypeExpr(native.ToPointer(), skipVTables); } @@ -30285,6 +30649,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr, internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PseudoObjectExpr(native.ToPointer(), skipVTables); } @@ -30495,6 +30861,8 @@ public enum AtomicOp internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AtomicExpr(native.ToPointer(), skipVTables); } @@ -30790,6 +31158,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypoExpr(native.ToPointer(), skipVTables); } @@ -30897,6 +31267,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXOperatorCallExpr(native.ToPointer(), skipVTables); } @@ -31072,6 +31444,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXMemberCallExpr(native.ToPointer(), skipVTables); } @@ -31222,6 +31596,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CUDAKernelCallExpr(native.ToPointer(), skipVTables); } @@ -31361,6 +31737,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli private bool __castName_OwnsNativeMemory = false; internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNamedCastExpr(native.ToPointer(), skipVTables); } @@ -31546,6 +31924,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStaticCastExpr(native.ToPointer(), skipVTables); } @@ -31650,6 +32030,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDynamicCastExpr(native.ToPointer(), skipVTables); } @@ -31766,6 +32148,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables); } @@ -31869,6 +32253,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstCastExpr(native.ToPointer(), skipVTables); } @@ -31985,6 +32371,8 @@ public enum LiteralOperatorKind internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UserDefinedLiteral(native.ToPointer(), skipVTables); } @@ -32136,6 +32524,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables); } @@ -32254,6 +32644,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST. internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables); } @@ -32359,6 +32751,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser. internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables); } @@ -32467,6 +32861,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTypeidExpr(native.ToPointer(), skipVTables); } @@ -32602,6 +32998,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertyRefExpr(native.ToPointer(), skipVTables); } @@ -32749,6 +33147,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables); } @@ -32887,6 +33287,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUuidofExpr(native.ToPointer(), skipVTables); } @@ -33039,6 +33441,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThisExpr(native.ToPointer(), skipVTables); } @@ -33159,6 +33563,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThrowExpr(native.ToPointer(), skipVTables); } @@ -33292,6 +33698,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultArgExpr(native.ToPointer(), skipVTables); } @@ -33412,6 +33820,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultInitExpr(native.ToPointer(), skipVTables); } @@ -33532,6 +33942,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables); } @@ -33672,6 +34084,8 @@ public enum ConstructionKind internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExpr(native.ToPointer(), skipVTables); } @@ -33758,8 +34172,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -33892,8 +34306,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -33934,6 +34348,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables); } @@ -34075,6 +34491,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST. internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables); } @@ -34217,6 +34635,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables); } @@ -34351,6 +34771,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LambdaExpr(native.ToPointer(), skipVTables); } @@ -34428,8 +34850,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -34572,8 +34994,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -34612,6 +35034,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables); } @@ -34753,6 +35177,8 @@ public enum InitializationStyle internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNewExpr(native.ToPointer(), skipVTables); } @@ -34830,8 +35256,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i) { - var __ret = __Internal.GetplacementArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetplacementArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -35046,8 +35472,8 @@ public uint GetplacementArgumentsCount { get { - var __ret = __Internal.GetplacementArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetplacementArgumentsCount(__Instance); + return ___ret; } } } @@ -35091,6 +35517,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDeleteExpr(native.ToPointer(), skipVTables); } @@ -35272,6 +35700,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables); } @@ -35472,6 +35902,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35592,6 +36024,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35727,6 +36161,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionTraitExpr(native.ToPointer(), skipVTables); } @@ -35886,6 +36322,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FindResult(native.ToPointer(), skipVTables); } @@ -35964,6 +36402,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OverloadExpr(native.ToPointer(), skipVTables); } @@ -36183,6 +36623,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedLookupExpr(native.ToPointer(), skipVTables); } @@ -36307,6 +36749,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser. internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables); } @@ -36492,6 +36936,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExprWithCleanups(native.ToPointer(), skipVTables); } @@ -36630,6 +37076,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables); } @@ -36707,8 +37155,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -36797,8 +37245,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -36849,6 +37297,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables); } @@ -37128,6 +37578,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedMemberExpr(native.ToPointer(), skipVTables); } @@ -37315,6 +37767,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr, internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNoexceptExpr(native.ToPointer(), skipVTables); } @@ -37435,6 +37889,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionExpr(native.ToPointer(), skipVTables); } @@ -37559,6 +38015,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SizeOfPackExpr(native.ToPointer(), skipVTables); } @@ -37731,6 +38189,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables); } @@ -37851,6 +38311,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp. internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables); } @@ -37972,6 +38434,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionParmPackExpr(native.ToPointer(), skipVTables); } @@ -38123,6 +38587,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtraState(native.ToPointer(), skipVTables); } @@ -38201,6 +38667,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables); } @@ -38354,6 +38822,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFoldExpr(native.ToPointer(), skipVTables); } @@ -38571,6 +39041,8 @@ public enum SubExpr internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineSuspendExpr(native.ToPointer(), skipVTables); } @@ -38767,6 +39239,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoawaitExpr(native.ToPointer(), skipVTables); } @@ -38888,6 +39362,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentCoawaitExpr(native.ToPointer(), skipVTables); } @@ -39027,6 +39503,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoyieldExpr(native.ToPointer(), skipVTables); } @@ -39198,6 +39676,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserTargetInfo(native.ToPointer(), skipVTables); } @@ -39870,6 +40350,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parser(native.ToPointer(), skipVTables); } @@ -40080,6 +40562,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppParserOptions(native.ToPointer(), skipVTables); } @@ -40162,8 +40646,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40178,8 +40662,8 @@ public void ClearArguments() public string GetCompilationOptions(uint i) { - var __ret = __Internal.GetCompilationOptions(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetCompilationOptions(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddCompilationOptions(string s) @@ -40194,8 +40678,8 @@ public void ClearCompilationOptions() public string GetSourceFiles(uint i) { - var __ret = __Internal.GetSourceFiles(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSourceFiles(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSourceFiles(string s) @@ -40210,8 +40694,8 @@ public void ClearSourceFiles() public string GetIncludeDirs(uint i) { - var __ret = __Internal.GetIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddIncludeDirs(string s) @@ -40226,8 +40710,8 @@ public void ClearIncludeDirs() public string GetSystemIncludeDirs(uint i) { - var __ret = __Internal.GetSystemIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSystemIncludeDirs(string s) @@ -40242,8 +40726,8 @@ public void ClearSystemIncludeDirs() public string GetDefines(uint i) { - var __ret = __Internal.GetDefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDefines(string s) @@ -40258,8 +40742,8 @@ public void ClearDefines() public string GetUndefines(uint i) { - var __ret = __Internal.GetUndefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetUndefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddUndefines(string s) @@ -40274,8 +40758,8 @@ public void ClearUndefines() public string GetSupportedStdTypes(uint i) { - var __ret = __Internal.GetSupportedStdTypes(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedStdTypes(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedStdTypes(string s) @@ -40290,8 +40774,8 @@ public void ClearSupportedStdTypes() public string GetSupportedFunctionTemplates(uint i) { - var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedFunctionTemplates(string s) @@ -40453,9 +40937,9 @@ public string ClangVersion { get { - var __ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(); - __Internal.GetClangVersion(new IntPtr(&__ret), __Instance); - var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); + var ___ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(); + __Internal.GetClangVersion(new IntPtr(&___ret), __Instance); + var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); __basicStringRet0.Dispose(); return __retString0; @@ -40466,8 +40950,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40475,8 +40959,8 @@ public uint CompilationOptionsCount { get { - var __ret = __Internal.GetCompilationOptionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetCompilationOptionsCount(__Instance); + return ___ret; } } @@ -40484,8 +40968,8 @@ public uint SourceFilesCount { get { - var __ret = __Internal.GetSourceFilesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSourceFilesCount(__Instance); + return ___ret; } } @@ -40493,8 +40977,8 @@ public uint IncludeDirsCount { get { - var __ret = __Internal.GetIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetIncludeDirsCount(__Instance); + return ___ret; } } @@ -40502,8 +40986,8 @@ public uint SystemIncludeDirsCount { get { - var __ret = __Internal.GetSystemIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance); + return ___ret; } } @@ -40511,8 +40995,8 @@ public uint DefinesCount { get { - var __ret = __Internal.GetDefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDefinesCount(__Instance); + return ___ret; } } @@ -40520,8 +41004,8 @@ public uint UndefinesCount { get { - var __ret = __Internal.GetUndefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetUndefinesCount(__Instance); + return ___ret; } } @@ -40529,8 +41013,8 @@ public uint SupportedStdTypesCount { get { - var __ret = __Internal.GetSupportedStdTypesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedStdTypesCount(__Instance); + return ___ret; } } @@ -40538,8 +41022,8 @@ public uint SupportedFunctionTemplatesCount { get { - var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return ___ret; } } } @@ -40619,6 +41103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppLinkerOptions(native.ToPointer(), skipVTables); } @@ -40701,8 +41187,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40717,8 +41203,8 @@ public void ClearArguments() public string GetLibraryDirs(uint i) { - var __ret = __Internal.GetLibraryDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraryDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraryDirs(string s) @@ -40733,8 +41219,8 @@ public void ClearLibraryDirs() public string GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraries(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraries(string s) @@ -40751,8 +41237,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40760,8 +41246,8 @@ public uint LibraryDirsCount { get { - var __ret = __Internal.GetLibraryDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibraryDirsCount(__Instance); + return ___ret; } } @@ -40769,8 +41255,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -40816,6 +41302,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserDiagnostic(native.ToPointer(), skipVTables); } @@ -41028,6 +41516,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserResult(native.ToPointer(), skipVTables); } @@ -41110,11 +41600,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i) { - var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); - __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret); - global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); + __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret); + global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s) @@ -41132,8 +41622,8 @@ public void ClearDiagnostics() public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLibraries(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41182,8 +41672,8 @@ public uint DiagnosticsCount { get { - var __ret = __Internal.GetDiagnosticsCount(__Instance); - return __ret; + var ___ret = __Internal.GetDiagnosticsCount(__Instance); + return ___ret; } } @@ -41191,8 +41681,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -41241,6 +41731,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClangParser(native.ToPointer(), skipVTables); } @@ -41318,16 +41810,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseHeader(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseHeader(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseLibrary(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseLibrary(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41338,9 +41830,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41350,9 +41842,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString1 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString1, File); var __arg1 = __basicString1.__Instance; - var __ret = __Internal.Compile(__arg0, __arg1); + var ___ret = __Internal.Compile(__arg0, __arg1); __basicString1.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41363,9 +41855,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs index c3b49d4bb..086462296 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs @@ -15,6 +15,8 @@ [assembly:InternalsVisibleTo("CppSharp.CppParser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace Std { } @@ -86,6 +88,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Allocator<_Tp>(native.ToPointer(), skipVTables); } @@ -231,6 +235,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharTraits<_CharT>(native.ToPointer(), skipVTables); } @@ -418,6 +424,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static BasicString<_CharT, _Traits, _Allocator> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BasicString<_CharT, _Traits, _Allocator>(native.ToPointer(), skipVTables); } @@ -520,16 +528,16 @@ public partial struct __Internal public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Assign(__arg0, __s); - var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Assign(__arg0, __s); + var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false); return __result0; } public static string Data(this global::Std.BasicString, global::Std.Allocator> @this) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Data(__arg0); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.Data(__arg0); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp index 0ac2c5a0e..38c9d198b 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp @@ -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(); } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs index 4c6201974..edb1b55cb 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs @@ -13,6 +13,8 @@ [assembly:InternalsVisibleTo("CppSharp.Parser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace CppSharp { namespace Parser @@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NativeLibrary(native.ToPointer(), skipVTables); } @@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetSymbols(uint i) { - var __ret = __Internal.GetSymbols(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSymbols(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSymbols(string s) @@ -219,8 +223,8 @@ public void ClearSymbols() public string GetDependencies(uint i) { - var __ret = __Internal.GetDependencies(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDependencies(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDependencies(string s) @@ -264,8 +268,8 @@ public uint SymbolsCount { get { - var __ret = __Internal.GetSymbolsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSymbolsCount(__Instance); + return ___ret; } } @@ -273,8 +277,8 @@ public uint DependenciesCount { get { - var __ret = __Internal.GetDependenciesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDependenciesCount(__Instance); + return ___ret; } } } @@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Comment(native.ToPointer(), skipVTables); } @@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockContentComment(native.ToPointer(), skipVTables); } @@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullComment(native.ToPointer(), skipVTables); } @@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i) { - var __ret = __Internal.GetBlocks(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBlocks(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -630,8 +640,8 @@ public uint BlocksCount { get { - var __ret = __Internal.GetBlocksCount(__Instance); - return __ret; + var ___ret = __Internal.GetBlocksCount(__Instance); + return ___ret; } } } @@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineContentComment(native.ToPointer(), skipVTables); } @@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParagraphComment(native.ToPointer(), skipVTables); } @@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i) { - var __ret = __Internal.GetContent(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetContent(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -887,8 +901,8 @@ public uint ContentCount { get { - var __ret = __Internal.GetContentCount(__Instance); - return __ret; + var ___ret = __Internal.GetContentCount(__Instance); + return ___ret; } } } @@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -1062,6 +1078,8 @@ public string Text internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockCommandComment(native.ToPointer(), skipVTables); } @@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s) @@ -1204,8 +1222,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -1241,6 +1259,8 @@ public enum PassDirection : uint internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParamCommandComment(native.ToPointer(), skipVTables); } @@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TParamCommandComment(native.ToPointer(), skipVTables); } @@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public uint GetPosition(uint i) { - var __ret = __Internal.GetPosition(__Instance, i); - return __ret; + var ___ret = __Internal.GetPosition(__Instance, i); + return ___ret; } public void AddPosition(ref uint s) @@ -1477,8 +1499,8 @@ public uint PositionCount { get { - var __ret = __Internal.GetPositionCount(__Instance); - return __ret; + var ___ret = __Internal.GetPositionCount(__Instance); + return ___ret; } } } @@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } @@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockComment(native.ToPointer(), skipVTables); } @@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i) { - var __ret = __Internal.GetLines(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLines(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -1728,8 +1754,8 @@ public uint LinesCount { get { - var __ret = __Internal.GetLinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLinesCount(__Instance); + return ___ret; } } } @@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimLineComment(native.ToPointer(), skipVTables); } @@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -2023,6 +2053,8 @@ public string Text internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineCommandComment(native.ToPointer(), skipVTables); } @@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s) @@ -2150,8 +2182,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLTagComment(native.ToPointer(), skipVTables); } @@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Attribute(native.ToPointer(), skipVTables); } @@ -2429,6 +2465,8 @@ public string Value internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLStartTagComment(native.ToPointer(), skipVTables); } @@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i) { - var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); - __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); - global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); + __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret); + global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) @@ -2544,8 +2582,8 @@ public uint AttributesCount { get { - var __ret = __Internal.GetAttributesCount(__Instance); - return __ret; + var ___ret = __Internal.GetAttributesCount(__Instance); + return ___ret; } } } @@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLEndTagComment(native.ToPointer(), skipVTables); } @@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TextComment(native.ToPointer(), skipVTables); } @@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new RawComment(native.ToPointer(), skipVTables); } @@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SourceRange(native.ToPointer(), skipVTables); } @@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Type(native.ToPointer(), skipVTables); } @@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeQualifiers(native.ToPointer(), skipVTables); } @@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new QualifiedType(native.ToPointer(), skipVTables); } @@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TagType(native.ToPointer(), skipVTables); } @@ -3811,6 +3865,8 @@ public enum ArraySize internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayType(native.ToPointer(), skipVTables); } @@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionType(native.ToPointer(), skipVTables); } @@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -4103,8 +4161,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -4136,6 +4194,8 @@ public enum TypeModifier internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PointerType(native.ToPointer(), skipVTables); } @@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberPointerType(native.ToPointer(), skipVTables); } @@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefType(native.ToPointer(), skipVTables); } @@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedType(native.ToPointer(), skipVTables); } @@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DecayedType(native.ToPointer(), skipVTables); } @@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateArgument(native.ToPointer(), skipVTables); } @@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -4991,8 +5063,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -5145,8 +5219,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST. internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterType(native.ToPointer(), skipVTables); } @@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables); } @@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST. internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InjectedClassNameType(native.ToPointer(), skipVTables); } @@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentNameType(native.ToPointer(), skipVTables); } @@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionType(native.ToPointer(), skipVTables); } @@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryTransformType(native.ToPointer(), skipVTables); } @@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingType(native.ToPointer(), skipVTables); } @@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VectorType(native.ToPointer(), skipVTables); } @@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BuiltinType(native.ToPointer(), skipVTables); } @@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Declaration(native.ToPointer(), skipVTables); } @@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i) { - var __ret = __Internal.GetPreprocessedEntities(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetPreprocessedEntities(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities() public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i) { - var __ret = __Internal.GetRedeclarations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetRedeclarations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount { get { - var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance); - return __ret; + var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance); + return ___ret; } } @@ -6824,8 +6918,8 @@ public uint RedeclarationsCount { get { - var __ret = __Internal.GetRedeclarationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetRedeclarationsCount(__Instance); + return ___ret; } } } @@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclarationContext(native.ToPointer(), skipVTables); } @@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i) { - var __ret = __Internal.GetNamespaces(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetNamespaces(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7087,8 +7183,8 @@ public void ClearNamespaces() public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i) { - var __ret = __Internal.GetEnums(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetEnums(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7108,8 +7204,8 @@ public void ClearEnums() public global::CppSharp.Parser.AST.Function GetFunctions(uint i) { - var __ret = __Internal.GetFunctions(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFunctions(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7129,8 +7225,8 @@ public void ClearFunctions() public global::CppSharp.Parser.AST.Class GetClasses(uint i) { - var __ret = __Internal.GetClasses(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetClasses(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7150,8 +7246,8 @@ public void ClearClasses() public global::CppSharp.Parser.AST.Template GetTemplates(uint i) { - var __ret = __Internal.GetTemplates(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTemplates(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7171,8 +7267,8 @@ public void ClearTemplates() public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i) { - var __ret = __Internal.GetTypedefs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypedefs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7192,8 +7288,8 @@ public void ClearTypedefs() public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i) { - var __ret = __Internal.GetTypeAliases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypeAliases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7213,8 +7309,8 @@ public void ClearTypeAliases() public global::CppSharp.Parser.AST.Variable GetVariables(uint i) { - var __ret = __Internal.GetVariables(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetVariables(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7234,8 +7330,8 @@ public void ClearVariables() public global::CppSharp.Parser.AST.Friend GetFriends(uint i) { - var __ret = __Internal.GetFriends(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFriends(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7275,8 +7371,8 @@ public uint NamespacesCount { get { - var __ret = __Internal.GetNamespacesCount(__Instance); - return __ret; + var ___ret = __Internal.GetNamespacesCount(__Instance); + return ___ret; } } @@ -7284,8 +7380,8 @@ public uint EnumsCount { get { - var __ret = __Internal.GetEnumsCount(__Instance); - return __ret; + var ___ret = __Internal.GetEnumsCount(__Instance); + return ___ret; } } @@ -7293,8 +7389,8 @@ public uint FunctionsCount { get { - var __ret = __Internal.GetFunctionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFunctionsCount(__Instance); + return ___ret; } } @@ -7302,8 +7398,8 @@ public uint ClassesCount { get { - var __ret = __Internal.GetClassesCount(__Instance); - return __ret; + var ___ret = __Internal.GetClassesCount(__Instance); + return ___ret; } } @@ -7311,8 +7407,8 @@ public uint TemplatesCount { get { - var __ret = __Internal.GetTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTemplatesCount(__Instance); + return ___ret; } } @@ -7320,8 +7416,8 @@ public uint TypedefsCount { get { - var __ret = __Internal.GetTypedefsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypedefsCount(__Instance); + return ___ret; } } @@ -7329,8 +7425,8 @@ public uint TypeAliasesCount { get { - var __ret = __Internal.GetTypeAliasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypeAliasesCount(__Instance); + return ___ret; } } @@ -7338,8 +7434,8 @@ public uint VariablesCount { get { - var __ret = __Internal.GetVariablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVariablesCount(__Instance); + return ___ret; } } @@ -7347,8 +7443,8 @@ public uint FriendsCount { get { - var __ret = __Internal.GetFriendsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFriendsCount(__Instance); + return ___ret; } } } @@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefNameDecl(native.ToPointer(), skipVTables); } @@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefDecl(native.ToPointer(), skipVTables); } @@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAlias(native.ToPointer(), skipVTables); } @@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Friend(native.ToPointer(), skipVTables); } @@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StatementObsolete(native.ToPointer(), skipVTables); } @@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionObsolete(native.ToPointer(), skipVTables); } @@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperatorObsolete(native.ToPointer(), skipVTables); } @@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExprObsolete(native.ToPointer(), skipVTables); } @@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8429,8 +8541,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExprObsolete(native.ToPointer(), skipVTables); } @@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8574,8 +8688,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration, internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parameter(native.ToPointer(), skipVTables); } @@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Function(native.ToPointer(), skipVTables); } @@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9224,8 +9342,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -9324,6 +9442,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Method(native.ToPointer(), skipVTables); } @@ -9401,8 +9521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i) { - var __ret = __Internal.GetOverriddenMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetOverriddenMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9556,8 +9676,8 @@ public uint OverriddenMethodsCount { get { - var __ret = __Internal.GetOverriddenMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetOverriddenMethodsCount(__Instance); + return ___ret; } } } @@ -9680,6 +9800,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Item(native.ToPointer(), skipVTables); } @@ -9785,6 +9907,8 @@ public ulong Value internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Enumeration(native.ToPointer(), skipVTables); } @@ -9862,8 +9986,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i) { - var __ret = __Internal.GetItems(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetItems(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9886,9 +10010,9 @@ public void ClearItems() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindItemByName(__Instance, __arg0); + var ___ret = __Internal.FindItemByName(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9937,8 +10061,8 @@ public uint ItemsCount { get { - var __ret = __Internal.GetItemsCount(__Instance); - return __ret; + var ___ret = __Internal.GetItemsCount(__Instance); + return ___ret; } } } @@ -9987,6 +10111,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration, internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Variable(native.ToPointer(), skipVTables); } @@ -10156,6 +10282,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BaseClassSpecifier(native.ToPointer(), skipVTables); } @@ -10329,6 +10457,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Field(native.ToPointer(), skipVTables); } @@ -10500,6 +10630,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AccessSpecifierDecl(native.ToPointer(), skipVTables); } @@ -10612,6 +10744,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableComponent(native.ToPointer(), skipVTables); } @@ -10777,6 +10911,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableLayout(native.ToPointer(), skipVTables); } @@ -10859,8 +10995,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i) { - var __ret = __Internal.GetComponents(__Instance, i); - return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret); + var ___ret = __Internal.GetComponents(__Instance, i); + return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret); } public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s) @@ -10880,8 +11016,8 @@ public uint ComponentsCount { get { - var __ret = __Internal.GetComponentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetComponentsCount(__Instance); + return ___ret; } } } @@ -10926,6 +11062,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VFTableInfo(native.ToPointer(), skipVTables); } @@ -11101,6 +11239,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutField(native.ToPointer(), skipVTables); } @@ -11275,6 +11415,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutBase(native.ToPointer(), skipVTables); } @@ -11466,6 +11608,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassLayout(native.ToPointer(), skipVTables); } @@ -11548,11 +11692,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i) { - var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); - __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret); - global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); + __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret); + global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s) @@ -11570,11 +11714,11 @@ public void ClearVFTables() public global::CppSharp.Parser.AST.LayoutField GetFields(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); - __Internal.GetFields(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); + __Internal.GetFields(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddFields(global::CppSharp.Parser.AST.LayoutField s) @@ -11592,11 +11736,11 @@ public void ClearFields() public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); - __Internal.GetBases(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); + __Internal.GetBases(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddBases(global::CppSharp.Parser.AST.LayoutBase s) @@ -11722,8 +11866,8 @@ public uint VFTablesCount { get { - var __ret = __Internal.GetVFTablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVFTablesCount(__Instance); + return ___ret; } } @@ -11731,8 +11875,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -11740,8 +11884,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } } @@ -11861,6 +12005,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Class(native.ToPointer(), skipVTables); } @@ -11938,8 +12084,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i) { - var __ret = __Internal.GetBases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11959,8 +12105,8 @@ public void ClearBases() public global::CppSharp.Parser.AST.Field GetFields(uint i) { - var __ret = __Internal.GetFields(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFields(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11980,8 +12126,8 @@ public void ClearFields() public global::CppSharp.Parser.AST.Method GetMethods(uint i) { - var __ret = __Internal.GetMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12001,8 +12147,8 @@ public void ClearMethods() public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i) { - var __ret = __Internal.GetSpecifiers(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecifiers(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12181,8 +12327,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } @@ -12190,8 +12336,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -12199,8 +12345,8 @@ public uint MethodsCount { get { - var __ret = __Internal.GetMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetMethodsCount(__Instance); + return ___ret; } } @@ -12208,8 +12354,8 @@ public uint SpecifiersCount { get { - var __ret = __Internal.GetSpecifiersCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecifiersCount(__Instance); + return ___ret; } } } @@ -12271,6 +12417,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration, internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Template(native.ToPointer(), skipVTables); } @@ -12357,8 +12505,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12399,8 +12547,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -12447,6 +12595,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAliasTemplate(native.ToPointer(), skipVTables); } @@ -12566,6 +12716,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameter(native.ToPointer(), skipVTables); } @@ -12731,6 +12883,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser. internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateTemplateParameter(native.ToPointer(), skipVTables); } @@ -12890,6 +13044,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST. internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -12983,7 +13139,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 264)] + [StructLayout(LayoutKind.Sequential, Size = 280)] public new partial struct __Internal { internal global::CppSharp.Parser.AST.DeclarationKind kind; @@ -13030,6 +13186,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NonTypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -13249,6 +13407,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplate(native.ToPointer(), skipVTables); } @@ -13326,8 +13486,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13350,9 +13510,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13361,9 +13521,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13371,8 +13531,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13459,6 +13619,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -13536,9 +13698,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -13585,8 +13747,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -13661,6 +13823,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -13795,6 +13959,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplate(native.ToPointer(), skipVTables); } @@ -13872,8 +14038,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13896,9 +14062,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13906,8 +14072,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13964,6 +14130,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14046,9 +14214,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14109,8 +14277,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14176,6 +14344,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template, internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplate(native.ToPointer(), skipVTables); } @@ -14253,8 +14423,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14277,9 +14447,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14288,9 +14458,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14298,8 +14468,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -14363,6 +14533,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser. internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14440,9 +14612,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14489,8 +14661,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14542,6 +14714,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp. internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -14658,6 +14832,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingTypename(native.ToPointer(), skipVTables); } @@ -14786,6 +14962,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Namespace(native.ToPointer(), skipVTables); } @@ -14911,6 +15089,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PreprocessedEntity(native.ToPointer(), skipVTables); } @@ -15051,6 +15231,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroDefinition(native.ToPointer(), skipVTables); } @@ -15205,6 +15387,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroExpansion(native.ToPointer(), skipVTables); } @@ -15390,6 +15574,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TranslationUnit(native.ToPointer(), skipVTables); } @@ -15467,8 +15653,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i) { - var __ret = __Internal.GetMacros(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMacros(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15517,8 +15703,8 @@ public uint MacrosCount { get { - var __ret = __Internal.GetMacrosCount(__Instance); - return __ret; + var ___ret = __Internal.GetMacrosCount(__Instance); + return ___ret; } } } @@ -15575,6 +15761,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ASTContext(native.ToPointer(), skipVTables); } @@ -15660,16 +15848,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindOrCreateModule(__Instance, __arg0); + var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0); __basicString0.Dispose(disposing: true, callNativeDtor:false); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i) { - var __ret = __Internal.GetTranslationUnits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTranslationUnits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15691,8 +15879,8 @@ public uint TranslationUnitsCount { get { - var __ret = __Internal.GetTranslationUnitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTranslationUnitsCount(__Instance); + return ___ret; } } } @@ -15876,6 +16064,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Stmt(native.ToPointer(), skipVTables); } @@ -16056,6 +16246,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclStmt(native.ToPointer(), skipVTables); } @@ -16133,8 +16325,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration Getdecls(uint i) { - var __ret = __Internal.Getdecls(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getdecls(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16183,8 +16375,8 @@ public uint GetdeclsCount { get { - var __ret = __Internal.GetdeclsCount(__Instance); - return __ret; + var ___ret = __Internal.GetdeclsCount(__Instance); + return ___ret; } } } @@ -16210,6 +16402,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NullStmt(native.ToPointer(), skipVTables); } @@ -16335,6 +16529,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundStmt(native.ToPointer(), skipVTables); } @@ -16412,8 +16608,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Stmt Getbody(uint i) { - var __ret = __Internal.Getbody(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getbody(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16515,8 +16711,8 @@ public uint GetbodyCount { get { - var __ret = __Internal.GetbodyCount(__Instance); - return __ret; + var ___ret = __Internal.GetbodyCount(__Instance); + return ___ret; } } } @@ -16546,6 +16742,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchCase(native.ToPointer(), skipVTables); } @@ -16685,6 +16883,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CaseStmt(native.ToPointer(), skipVTables); } @@ -16833,6 +17033,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DefaultStmt(native.ToPointer(), skipVTables); } @@ -16927,6 +17129,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo private bool __name_OwnsNativeMemory = false; internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LabelStmt(native.ToPointer(), skipVTables); } @@ -17060,6 +17264,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedStmt(native.ToPointer(), skipVTables); } @@ -17176,6 +17382,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IfStmt(native.ToPointer(), skipVTables); } @@ -17422,6 +17630,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchStmt(native.ToPointer(), skipVTables); } @@ -17612,6 +17822,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new WhileStmt(native.ToPointer(), skipVTables); } @@ -17762,6 +17974,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DoStmt(native.ToPointer(), skipVTables); } @@ -17914,6 +18128,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ForStmt(native.ToPointer(), skipVTables); } @@ -18102,6 +18318,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GotoStmt(native.ToPointer(), skipVTables); } @@ -18208,6 +18426,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt, internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IndirectGotoStmt(native.ToPointer(), skipVTables); } @@ -18326,6 +18546,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ContinueStmt(native.ToPointer(), skipVTables); } @@ -18417,6 +18639,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BreakStmt(native.ToPointer(), skipVTables); } @@ -18509,6 +18733,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ReturnStmt(native.ToPointer(), skipVTables); } @@ -18652,6 +18878,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStmt(native.ToPointer(), skipVTables); } @@ -18738,8 +18966,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getinputs(uint i) { - var __ret = __Internal.Getinputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getinputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18759,8 +18987,8 @@ public void Clearinputs() public global::CppSharp.Parser.AST.Expr Getoutputs(uint i) { - var __ret = __Internal.Getoutputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getoutputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18878,8 +19106,8 @@ public uint GetinputsCount { get { - var __ret = __Internal.GetinputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetinputsCount(__Instance); + return ___ret; } } @@ -18887,8 +19115,8 @@ public uint GetoutputsCount { get { - var __ret = __Internal.GetoutputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetoutputsCount(__Instance); + return ___ret; } } } @@ -18970,6 +19198,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStringPiece(native.ToPointer(), skipVTables); } @@ -19119,6 +19349,8 @@ public sbyte Modifier internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GCCAsmStmt(native.ToPointer(), skipVTables); } @@ -19243,6 +19475,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSAsmStmt(native.ToPointer(), skipVTables); } @@ -19394,6 +19628,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHExceptStmt(native.ToPointer(), skipVTables); } @@ -19514,6 +19750,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHFinallyStmt(native.ToPointer(), skipVTables); } @@ -19624,6 +19862,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHTryStmt(native.ToPointer(), skipVTables); } @@ -19784,6 +20024,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHLeaveStmt(native.ToPointer(), skipVTables); } @@ -19937,6 +20179,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Capture(native.ToPointer(), skipVTables); } @@ -20093,6 +20337,8 @@ public bool CapturesVariableArrayType internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CapturedStmt(native.ToPointer(), skipVTables); } @@ -20170,8 +20416,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -20220,8 +20466,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -20248,6 +20494,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXCatchStmt(native.ToPointer(), skipVTables); } @@ -20370,6 +20618,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTryStmt(native.ToPointer(), skipVTables); } @@ -20500,6 +20750,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt, internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXForRangeStmt(native.ToPointer(), skipVTables); } @@ -20759,6 +21011,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST. internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSDependentExistsStmt(native.ToPointer(), skipVTables); } @@ -20949,6 +21203,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CtorArgs(native.ToPointer(), skipVTables); } @@ -21027,6 +21283,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineBodyStmt(native.ToPointer(), skipVTables); } @@ -21296,6 +21554,8 @@ public enum SubStmt internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoreturnStmt(native.ToPointer(), skipVTables); } @@ -21771,6 +22031,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Classification(native.ToPointer(), skipVTables); } @@ -21953,6 +22215,8 @@ public bool IsModifiable internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Expr(native.ToPointer(), skipVTables); } @@ -22248,6 +22512,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullExpr(native.ToPointer(), skipVTables); } @@ -22368,6 +22634,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr, internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConstantExpr(native.ToPointer(), skipVTables); } @@ -22462,6 +22730,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr, internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OpaqueValueExpr(native.ToPointer(), skipVTables); } @@ -22605,6 +22875,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclRefExpr(native.ToPointer(), skipVTables); } @@ -22855,6 +23127,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IntegerLiteral(native.ToPointer(), skipVTables); } @@ -22974,6 +23248,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FixedPointLiteral(native.ToPointer(), skipVTables); } @@ -23103,6 +23379,8 @@ public enum CharacterKind internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharacterLiteral(native.ToPointer(), skipVTables); } @@ -23236,6 +23514,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr, internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FloatingLiteral(native.ToPointer(), skipVTables); } @@ -23367,6 +23647,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr, internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImaginaryLiteral(native.ToPointer(), skipVTables); } @@ -23499,6 +23781,8 @@ public enum StringKind internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StringLiteral(native.ToPointer(), skipVTables); } @@ -23819,6 +24103,8 @@ public enum IdentKind internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PredefinedExpr(native.ToPointer(), skipVTables); } @@ -23939,6 +24225,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenExpr(native.ToPointer(), skipVTables); } @@ -24081,6 +24369,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryOperator(native.ToPointer(), skipVTables); } @@ -24320,6 +24610,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OffsetOfExpr(native.ToPointer(), skipVTables); } @@ -24470,6 +24762,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -24662,6 +24956,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArraySubscriptExpr(native.ToPointer(), skipVTables); } @@ -24849,6 +25145,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExpr(native.ToPointer(), skipVTables); } @@ -24935,8 +25233,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -25070,8 +25368,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -25122,6 +25420,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberExpr(native.ToPointer(), skipVTables); } @@ -25386,6 +25686,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundLiteralExpr(native.ToPointer(), skipVTables); } @@ -25528,6 +25830,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos private bool __castKindName_OwnsNativeMemory = false; internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CastExpr(native.ToPointer(), skipVTables); } @@ -25754,6 +26058,8 @@ public enum OnStack_t internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25869,6 +26175,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25999,6 +26307,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CStyleCastExpr(native.ToPointer(), skipVTables); } @@ -26141,6 +26451,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperator(native.ToPointer(), skipVTables); } @@ -26538,6 +26850,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundAssignOperator(native.ToPointer(), skipVTables); } @@ -26685,6 +26999,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AbstractConditionalOperator(native.ToPointer(), skipVTables); } @@ -26865,6 +27181,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConditionalOperator(native.ToPointer(), skipVTables); } @@ -26991,6 +27309,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser. internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryConditionalOperator(native.ToPointer(), skipVTables); } @@ -27112,6 +27432,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AddrLabelExpr(native.ToPointer(), skipVTables); } @@ -27232,6 +27554,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StmtExpr(native.ToPointer(), skipVTables); } @@ -27366,6 +27690,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ShuffleVectorExpr(native.ToPointer(), skipVTables); } @@ -27499,6 +27825,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConvertVectorExpr(native.ToPointer(), skipVTables); } @@ -27638,6 +27966,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ChooseExpr(native.ToPointer(), skipVTables); } @@ -27838,6 +28168,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GNUNullExpr(native.ToPointer(), skipVTables); } @@ -27946,6 +28278,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VAArgExpr(native.ToPointer(), skipVTables); } @@ -28102,6 +28436,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InitListExpr(native.ToPointer(), skipVTables); } @@ -28400,6 +28736,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Designator(native.ToPointer(), skipVTables); } @@ -28654,6 +28992,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FieldDesignator(native.ToPointer(), skipVTables); } @@ -28762,6 +29102,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables); } @@ -28840,6 +29182,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitExpr(native.ToPointer(), skipVTables); } @@ -29012,6 +29356,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NoInitExpr(native.ToPointer(), skipVTables); } @@ -29105,6 +29451,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables); } @@ -29226,6 +29574,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitLoopExpr(native.ToPointer(), skipVTables); } @@ -29345,6 +29695,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitIndexExpr(native.ToPointer(), skipVTables); } @@ -29436,6 +29788,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST. internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitValueInitExpr(native.ToPointer(), skipVTables); } @@ -29530,6 +29884,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenListExpr(native.ToPointer(), skipVTables); } @@ -29668,6 +30024,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GenericSelectionExpr(native.ToPointer(), skipVTables); } @@ -29870,6 +30228,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtVectorElementExpr(native.ToPointer(), skipVTables); } @@ -30029,6 +30389,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockExpr(native.ToPointer(), skipVTables); } @@ -30150,6 +30512,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsTypeExpr(native.ToPointer(), skipVTables); } @@ -30285,6 +30649,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr, internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PseudoObjectExpr(native.ToPointer(), skipVTables); } @@ -30495,6 +30861,8 @@ public enum AtomicOp internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AtomicExpr(native.ToPointer(), skipVTables); } @@ -30790,6 +31158,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypoExpr(native.ToPointer(), skipVTables); } @@ -30897,6 +31267,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXOperatorCallExpr(native.ToPointer(), skipVTables); } @@ -31072,6 +31444,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXMemberCallExpr(native.ToPointer(), skipVTables); } @@ -31222,6 +31596,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CUDAKernelCallExpr(native.ToPointer(), skipVTables); } @@ -31361,6 +31737,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli private bool __castName_OwnsNativeMemory = false; internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNamedCastExpr(native.ToPointer(), skipVTables); } @@ -31546,6 +31924,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStaticCastExpr(native.ToPointer(), skipVTables); } @@ -31650,6 +32030,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDynamicCastExpr(native.ToPointer(), skipVTables); } @@ -31766,6 +32148,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables); } @@ -31869,6 +32253,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstCastExpr(native.ToPointer(), skipVTables); } @@ -31985,6 +32371,8 @@ public enum LiteralOperatorKind internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UserDefinedLiteral(native.ToPointer(), skipVTables); } @@ -32136,6 +32524,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables); } @@ -32254,6 +32644,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST. internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables); } @@ -32359,6 +32751,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser. internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables); } @@ -32467,6 +32861,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTypeidExpr(native.ToPointer(), skipVTables); } @@ -32602,6 +32998,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertyRefExpr(native.ToPointer(), skipVTables); } @@ -32749,6 +33147,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables); } @@ -32887,6 +33287,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUuidofExpr(native.ToPointer(), skipVTables); } @@ -33039,6 +33441,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThisExpr(native.ToPointer(), skipVTables); } @@ -33159,6 +33563,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThrowExpr(native.ToPointer(), skipVTables); } @@ -33292,6 +33698,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultArgExpr(native.ToPointer(), skipVTables); } @@ -33412,6 +33820,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultInitExpr(native.ToPointer(), skipVTables); } @@ -33532,6 +33942,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables); } @@ -33672,6 +34084,8 @@ public enum ConstructionKind internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExpr(native.ToPointer(), skipVTables); } @@ -33758,8 +34172,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -33892,8 +34306,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -33934,6 +34348,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables); } @@ -34075,6 +34491,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST. internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables); } @@ -34217,6 +34635,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables); } @@ -34351,6 +34771,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LambdaExpr(native.ToPointer(), skipVTables); } @@ -34428,8 +34850,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -34572,8 +34994,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -34612,6 +35034,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables); } @@ -34753,6 +35177,8 @@ public enum InitializationStyle internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNewExpr(native.ToPointer(), skipVTables); } @@ -34830,8 +35256,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i) { - var __ret = __Internal.GetplacementArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetplacementArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -35046,8 +35472,8 @@ public uint GetplacementArgumentsCount { get { - var __ret = __Internal.GetplacementArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetplacementArgumentsCount(__Instance); + return ___ret; } } } @@ -35091,6 +35517,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDeleteExpr(native.ToPointer(), skipVTables); } @@ -35272,6 +35700,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables); } @@ -35472,6 +35902,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35592,6 +36024,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35727,6 +36161,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionTraitExpr(native.ToPointer(), skipVTables); } @@ -35886,6 +36322,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FindResult(native.ToPointer(), skipVTables); } @@ -35964,6 +36402,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OverloadExpr(native.ToPointer(), skipVTables); } @@ -36183,6 +36623,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedLookupExpr(native.ToPointer(), skipVTables); } @@ -36307,6 +36749,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser. internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables); } @@ -36492,6 +36936,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExprWithCleanups(native.ToPointer(), skipVTables); } @@ -36630,6 +37076,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables); } @@ -36707,8 +37155,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -36797,8 +37245,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -36849,6 +37297,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables); } @@ -37128,6 +37578,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedMemberExpr(native.ToPointer(), skipVTables); } @@ -37315,6 +37767,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr, internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNoexceptExpr(native.ToPointer(), skipVTables); } @@ -37435,6 +37889,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionExpr(native.ToPointer(), skipVTables); } @@ -37559,6 +38015,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SizeOfPackExpr(native.ToPointer(), skipVTables); } @@ -37731,6 +38189,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables); } @@ -37851,6 +38311,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp. internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables); } @@ -37972,6 +38434,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionParmPackExpr(native.ToPointer(), skipVTables); } @@ -38123,6 +38587,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtraState(native.ToPointer(), skipVTables); } @@ -38201,6 +38667,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables); } @@ -38354,6 +38822,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFoldExpr(native.ToPointer(), skipVTables); } @@ -38571,6 +39041,8 @@ public enum SubExpr internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineSuspendExpr(native.ToPointer(), skipVTables); } @@ -38767,6 +39239,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoawaitExpr(native.ToPointer(), skipVTables); } @@ -38888,6 +39362,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentCoawaitExpr(native.ToPointer(), skipVTables); } @@ -39027,6 +39503,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoyieldExpr(native.ToPointer(), skipVTables); } @@ -39198,6 +39676,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserTargetInfo(native.ToPointer(), skipVTables); } @@ -39870,6 +40350,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parser(native.ToPointer(), skipVTables); } @@ -40080,6 +40562,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppParserOptions(native.ToPointer(), skipVTables); } @@ -40162,8 +40646,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40178,8 +40662,8 @@ public void ClearArguments() public string GetCompilationOptions(uint i) { - var __ret = __Internal.GetCompilationOptions(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetCompilationOptions(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddCompilationOptions(string s) @@ -40194,8 +40678,8 @@ public void ClearCompilationOptions() public string GetSourceFiles(uint i) { - var __ret = __Internal.GetSourceFiles(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSourceFiles(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSourceFiles(string s) @@ -40210,8 +40694,8 @@ public void ClearSourceFiles() public string GetIncludeDirs(uint i) { - var __ret = __Internal.GetIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddIncludeDirs(string s) @@ -40226,8 +40710,8 @@ public void ClearIncludeDirs() public string GetSystemIncludeDirs(uint i) { - var __ret = __Internal.GetSystemIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSystemIncludeDirs(string s) @@ -40242,8 +40726,8 @@ public void ClearSystemIncludeDirs() public string GetDefines(uint i) { - var __ret = __Internal.GetDefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDefines(string s) @@ -40258,8 +40742,8 @@ public void ClearDefines() public string GetUndefines(uint i) { - var __ret = __Internal.GetUndefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetUndefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddUndefines(string s) @@ -40274,8 +40758,8 @@ public void ClearUndefines() public string GetSupportedStdTypes(uint i) { - var __ret = __Internal.GetSupportedStdTypes(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedStdTypes(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedStdTypes(string s) @@ -40290,8 +40774,8 @@ public void ClearSupportedStdTypes() public string GetSupportedFunctionTemplates(uint i) { - var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedFunctionTemplates(string s) @@ -40453,9 +40937,9 @@ public string ClangVersion { get { - var __ret = new global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); - __Internal.GetClangVersion(new IntPtr(&__ret), __Instance); - var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); + var ___ret = new global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); + __Internal.GetClangVersion(new IntPtr(&___ret), __Instance); + var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); __basicStringRet0.Dispose(); return __retString0; @@ -40466,8 +40950,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40475,8 +40959,8 @@ public uint CompilationOptionsCount { get { - var __ret = __Internal.GetCompilationOptionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetCompilationOptionsCount(__Instance); + return ___ret; } } @@ -40484,8 +40968,8 @@ public uint SourceFilesCount { get { - var __ret = __Internal.GetSourceFilesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSourceFilesCount(__Instance); + return ___ret; } } @@ -40493,8 +40977,8 @@ public uint IncludeDirsCount { get { - var __ret = __Internal.GetIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetIncludeDirsCount(__Instance); + return ___ret; } } @@ -40502,8 +40986,8 @@ public uint SystemIncludeDirsCount { get { - var __ret = __Internal.GetSystemIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance); + return ___ret; } } @@ -40511,8 +40995,8 @@ public uint DefinesCount { get { - var __ret = __Internal.GetDefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDefinesCount(__Instance); + return ___ret; } } @@ -40520,8 +41004,8 @@ public uint UndefinesCount { get { - var __ret = __Internal.GetUndefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetUndefinesCount(__Instance); + return ___ret; } } @@ -40529,8 +41013,8 @@ public uint SupportedStdTypesCount { get { - var __ret = __Internal.GetSupportedStdTypesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedStdTypesCount(__Instance); + return ___ret; } } @@ -40538,8 +41022,8 @@ public uint SupportedFunctionTemplatesCount { get { - var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return ___ret; } } } @@ -40619,6 +41103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppLinkerOptions(native.ToPointer(), skipVTables); } @@ -40701,8 +41187,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40717,8 +41203,8 @@ public void ClearArguments() public string GetLibraryDirs(uint i) { - var __ret = __Internal.GetLibraryDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraryDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraryDirs(string s) @@ -40733,8 +41219,8 @@ public void ClearLibraryDirs() public string GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraries(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraries(string s) @@ -40751,8 +41237,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40760,8 +41246,8 @@ public uint LibraryDirsCount { get { - var __ret = __Internal.GetLibraryDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibraryDirsCount(__Instance); + return ___ret; } } @@ -40769,8 +41255,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -40816,6 +41302,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserDiagnostic(native.ToPointer(), skipVTables); } @@ -41028,6 +41516,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserResult(native.ToPointer(), skipVTables); } @@ -41110,11 +41600,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i) { - var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); - __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret); - global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); + __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret); + global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s) @@ -41132,8 +41622,8 @@ public void ClearDiagnostics() public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLibraries(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41182,8 +41672,8 @@ public uint DiagnosticsCount { get { - var __ret = __Internal.GetDiagnosticsCount(__Instance); - return __ret; + var ___ret = __Internal.GetDiagnosticsCount(__Instance); + return ___ret; } } @@ -41191,8 +41681,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -41241,6 +41731,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClangParser(native.ToPointer(), skipVTables); } @@ -41318,16 +41810,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseHeader(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseHeader(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseLibrary(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseLibrary(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41338,9 +41830,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41350,9 +41842,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString1 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString1, File); var __arg1 = __basicString1.__Instance; - var __ret = __Internal.Compile(__arg0, __arg1); + var ___ret = __Internal.Compile(__arg0, __arg1); __basicString1.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41363,9 +41855,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs index cba538aca..cdf0bbf78 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs @@ -15,6 +15,8 @@ [assembly:InternalsVisibleTo("CppSharp.CppParser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace Std { namespace Allocator @@ -52,6 +54,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Allocator<_Tp>(native.ToPointer(), skipVTables); } @@ -256,6 +260,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharTraits<_CharT>(native.ToPointer(), skipVTables); } @@ -390,6 +396,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static BasicString<_CharT, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BasicString<_CharT, _Traits, _Alloc>(native.ToPointer(), skipVTables); } @@ -492,16 +500,16 @@ public partial struct __Internal public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Assign(__arg0, __s); - var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Assign(__arg0, __s); + var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false); return __result0; } public static string Data(this global::Std.BasicString, global::Std.Allocator> @this) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Data(__arg0); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.Data(__arg0); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp index 0ac2c5a0e..38c9d198b 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp @@ -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(); } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs index 2b7e1e837..ec7ffd9eb 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs @@ -13,6 +13,8 @@ [assembly:InternalsVisibleTo("CppSharp.Parser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace CppSharp { namespace Parser @@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NativeLibrary(native.ToPointer(), skipVTables); } @@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetSymbols(uint i) { - var __ret = __Internal.GetSymbols(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSymbols(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSymbols(string s) @@ -219,8 +223,8 @@ public void ClearSymbols() public string GetDependencies(uint i) { - var __ret = __Internal.GetDependencies(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDependencies(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDependencies(string s) @@ -264,8 +268,8 @@ public uint SymbolsCount { get { - var __ret = __Internal.GetSymbolsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSymbolsCount(__Instance); + return ___ret; } } @@ -273,8 +277,8 @@ public uint DependenciesCount { get { - var __ret = __Internal.GetDependenciesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDependenciesCount(__Instance); + return ___ret; } } } @@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Comment(native.ToPointer(), skipVTables); } @@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockContentComment(native.ToPointer(), skipVTables); } @@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullComment(native.ToPointer(), skipVTables); } @@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i) { - var __ret = __Internal.GetBlocks(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBlocks(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -630,8 +640,8 @@ public uint BlocksCount { get { - var __ret = __Internal.GetBlocksCount(__Instance); - return __ret; + var ___ret = __Internal.GetBlocksCount(__Instance); + return ___ret; } } } @@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineContentComment(native.ToPointer(), skipVTables); } @@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParagraphComment(native.ToPointer(), skipVTables); } @@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i) { - var __ret = __Internal.GetContent(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetContent(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -887,8 +901,8 @@ public uint ContentCount { get { - var __ret = __Internal.GetContentCount(__Instance); - return __ret; + var ___ret = __Internal.GetContentCount(__Instance); + return ___ret; } } } @@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -1062,6 +1078,8 @@ public string Text internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockCommandComment(native.ToPointer(), skipVTables); } @@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s) @@ -1204,8 +1222,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -1241,6 +1259,8 @@ public enum PassDirection : uint internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParamCommandComment(native.ToPointer(), skipVTables); } @@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TParamCommandComment(native.ToPointer(), skipVTables); } @@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public uint GetPosition(uint i) { - var __ret = __Internal.GetPosition(__Instance, i); - return __ret; + var ___ret = __Internal.GetPosition(__Instance, i); + return ___ret; } public void AddPosition(ref uint s) @@ -1477,8 +1499,8 @@ public uint PositionCount { get { - var __ret = __Internal.GetPositionCount(__Instance); - return __ret; + var ___ret = __Internal.GetPositionCount(__Instance); + return ___ret; } } } @@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } @@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockComment(native.ToPointer(), skipVTables); } @@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i) { - var __ret = __Internal.GetLines(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLines(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -1728,8 +1754,8 @@ public uint LinesCount { get { - var __ret = __Internal.GetLinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLinesCount(__Instance); + return ___ret; } } } @@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimLineComment(native.ToPointer(), skipVTables); } @@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -2023,6 +2053,8 @@ public string Text internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineCommandComment(native.ToPointer(), skipVTables); } @@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s) @@ -2150,8 +2182,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLTagComment(native.ToPointer(), skipVTables); } @@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Attribute(native.ToPointer(), skipVTables); } @@ -2429,6 +2465,8 @@ public string Value internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLStartTagComment(native.ToPointer(), skipVTables); } @@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i) { - var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); - __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); - global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); + __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret); + global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) @@ -2544,8 +2582,8 @@ public uint AttributesCount { get { - var __ret = __Internal.GetAttributesCount(__Instance); - return __ret; + var ___ret = __Internal.GetAttributesCount(__Instance); + return ___ret; } } } @@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLEndTagComment(native.ToPointer(), skipVTables); } @@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TextComment(native.ToPointer(), skipVTables); } @@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new RawComment(native.ToPointer(), skipVTables); } @@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SourceRange(native.ToPointer(), skipVTables); } @@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Type(native.ToPointer(), skipVTables); } @@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeQualifiers(native.ToPointer(), skipVTables); } @@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new QualifiedType(native.ToPointer(), skipVTables); } @@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TagType(native.ToPointer(), skipVTables); } @@ -3811,6 +3865,8 @@ public enum ArraySize internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayType(native.ToPointer(), skipVTables); } @@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionType(native.ToPointer(), skipVTables); } @@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -4103,8 +4161,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -4136,6 +4194,8 @@ public enum TypeModifier internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PointerType(native.ToPointer(), skipVTables); } @@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberPointerType(native.ToPointer(), skipVTables); } @@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefType(native.ToPointer(), skipVTables); } @@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedType(native.ToPointer(), skipVTables); } @@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DecayedType(native.ToPointer(), skipVTables); } @@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateArgument(native.ToPointer(), skipVTables); } @@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -4991,8 +5063,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -5145,8 +5219,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST. internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterType(native.ToPointer(), skipVTables); } @@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables); } @@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST. internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InjectedClassNameType(native.ToPointer(), skipVTables); } @@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentNameType(native.ToPointer(), skipVTables); } @@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionType(native.ToPointer(), skipVTables); } @@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryTransformType(native.ToPointer(), skipVTables); } @@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingType(native.ToPointer(), skipVTables); } @@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VectorType(native.ToPointer(), skipVTables); } @@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BuiltinType(native.ToPointer(), skipVTables); } @@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Declaration(native.ToPointer(), skipVTables); } @@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i) { - var __ret = __Internal.GetPreprocessedEntities(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetPreprocessedEntities(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities() public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i) { - var __ret = __Internal.GetRedeclarations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetRedeclarations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount { get { - var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance); - return __ret; + var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance); + return ___ret; } } @@ -6824,8 +6918,8 @@ public uint RedeclarationsCount { get { - var __ret = __Internal.GetRedeclarationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetRedeclarationsCount(__Instance); + return ___ret; } } } @@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclarationContext(native.ToPointer(), skipVTables); } @@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i) { - var __ret = __Internal.GetNamespaces(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetNamespaces(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7087,8 +7183,8 @@ public void ClearNamespaces() public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i) { - var __ret = __Internal.GetEnums(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetEnums(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7108,8 +7204,8 @@ public void ClearEnums() public global::CppSharp.Parser.AST.Function GetFunctions(uint i) { - var __ret = __Internal.GetFunctions(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFunctions(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7129,8 +7225,8 @@ public void ClearFunctions() public global::CppSharp.Parser.AST.Class GetClasses(uint i) { - var __ret = __Internal.GetClasses(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetClasses(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7150,8 +7246,8 @@ public void ClearClasses() public global::CppSharp.Parser.AST.Template GetTemplates(uint i) { - var __ret = __Internal.GetTemplates(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTemplates(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7171,8 +7267,8 @@ public void ClearTemplates() public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i) { - var __ret = __Internal.GetTypedefs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypedefs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7192,8 +7288,8 @@ public void ClearTypedefs() public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i) { - var __ret = __Internal.GetTypeAliases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypeAliases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7213,8 +7309,8 @@ public void ClearTypeAliases() public global::CppSharp.Parser.AST.Variable GetVariables(uint i) { - var __ret = __Internal.GetVariables(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetVariables(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7234,8 +7330,8 @@ public void ClearVariables() public global::CppSharp.Parser.AST.Friend GetFriends(uint i) { - var __ret = __Internal.GetFriends(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFriends(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7275,8 +7371,8 @@ public uint NamespacesCount { get { - var __ret = __Internal.GetNamespacesCount(__Instance); - return __ret; + var ___ret = __Internal.GetNamespacesCount(__Instance); + return ___ret; } } @@ -7284,8 +7380,8 @@ public uint EnumsCount { get { - var __ret = __Internal.GetEnumsCount(__Instance); - return __ret; + var ___ret = __Internal.GetEnumsCount(__Instance); + return ___ret; } } @@ -7293,8 +7389,8 @@ public uint FunctionsCount { get { - var __ret = __Internal.GetFunctionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFunctionsCount(__Instance); + return ___ret; } } @@ -7302,8 +7398,8 @@ public uint ClassesCount { get { - var __ret = __Internal.GetClassesCount(__Instance); - return __ret; + var ___ret = __Internal.GetClassesCount(__Instance); + return ___ret; } } @@ -7311,8 +7407,8 @@ public uint TemplatesCount { get { - var __ret = __Internal.GetTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTemplatesCount(__Instance); + return ___ret; } } @@ -7320,8 +7416,8 @@ public uint TypedefsCount { get { - var __ret = __Internal.GetTypedefsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypedefsCount(__Instance); + return ___ret; } } @@ -7329,8 +7425,8 @@ public uint TypeAliasesCount { get { - var __ret = __Internal.GetTypeAliasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypeAliasesCount(__Instance); + return ___ret; } } @@ -7338,8 +7434,8 @@ public uint VariablesCount { get { - var __ret = __Internal.GetVariablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVariablesCount(__Instance); + return ___ret; } } @@ -7347,8 +7443,8 @@ public uint FriendsCount { get { - var __ret = __Internal.GetFriendsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFriendsCount(__Instance); + return ___ret; } } } @@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefNameDecl(native.ToPointer(), skipVTables); } @@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefDecl(native.ToPointer(), skipVTables); } @@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAlias(native.ToPointer(), skipVTables); } @@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Friend(native.ToPointer(), skipVTables); } @@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StatementObsolete(native.ToPointer(), skipVTables); } @@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionObsolete(native.ToPointer(), skipVTables); } @@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperatorObsolete(native.ToPointer(), skipVTables); } @@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExprObsolete(native.ToPointer(), skipVTables); } @@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8429,8 +8541,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExprObsolete(native.ToPointer(), skipVTables); } @@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8574,8 +8688,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration, internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parameter(native.ToPointer(), skipVTables); } @@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Function(native.ToPointer(), skipVTables); } @@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9224,8 +9342,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -9324,6 +9442,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Method(native.ToPointer(), skipVTables); } @@ -9401,8 +9521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i) { - var __ret = __Internal.GetOverriddenMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetOverriddenMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9556,8 +9676,8 @@ public uint OverriddenMethodsCount { get { - var __ret = __Internal.GetOverriddenMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetOverriddenMethodsCount(__Instance); + return ___ret; } } } @@ -9680,6 +9800,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Item(native.ToPointer(), skipVTables); } @@ -9785,6 +9907,8 @@ public ulong Value internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Enumeration(native.ToPointer(), skipVTables); } @@ -9862,8 +9986,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i) { - var __ret = __Internal.GetItems(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetItems(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9886,9 +10010,9 @@ public void ClearItems() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindItemByName(__Instance, __arg0); + var ___ret = __Internal.FindItemByName(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9937,8 +10061,8 @@ public uint ItemsCount { get { - var __ret = __Internal.GetItemsCount(__Instance); - return __ret; + var ___ret = __Internal.GetItemsCount(__Instance); + return ___ret; } } } @@ -9987,6 +10111,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration, internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Variable(native.ToPointer(), skipVTables); } @@ -10156,6 +10282,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BaseClassSpecifier(native.ToPointer(), skipVTables); } @@ -10329,6 +10457,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Field(native.ToPointer(), skipVTables); } @@ -10500,6 +10630,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AccessSpecifierDecl(native.ToPointer(), skipVTables); } @@ -10612,6 +10744,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableComponent(native.ToPointer(), skipVTables); } @@ -10777,6 +10911,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableLayout(native.ToPointer(), skipVTables); } @@ -10859,8 +10995,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i) { - var __ret = __Internal.GetComponents(__Instance, i); - return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret); + var ___ret = __Internal.GetComponents(__Instance, i); + return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret); } public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s) @@ -10880,8 +11016,8 @@ public uint ComponentsCount { get { - var __ret = __Internal.GetComponentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetComponentsCount(__Instance); + return ___ret; } } } @@ -10926,6 +11062,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VFTableInfo(native.ToPointer(), skipVTables); } @@ -11101,6 +11239,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutField(native.ToPointer(), skipVTables); } @@ -11275,6 +11415,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutBase(native.ToPointer(), skipVTables); } @@ -11466,6 +11608,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassLayout(native.ToPointer(), skipVTables); } @@ -11548,11 +11692,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i) { - var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); - __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret); - global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); + __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret); + global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s) @@ -11570,11 +11714,11 @@ public void ClearVFTables() public global::CppSharp.Parser.AST.LayoutField GetFields(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); - __Internal.GetFields(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); + __Internal.GetFields(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddFields(global::CppSharp.Parser.AST.LayoutField s) @@ -11592,11 +11736,11 @@ public void ClearFields() public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); - __Internal.GetBases(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); + __Internal.GetBases(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddBases(global::CppSharp.Parser.AST.LayoutBase s) @@ -11722,8 +11866,8 @@ public uint VFTablesCount { get { - var __ret = __Internal.GetVFTablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVFTablesCount(__Instance); + return ___ret; } } @@ -11731,8 +11875,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -11740,8 +11884,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } } @@ -11861,6 +12005,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Class(native.ToPointer(), skipVTables); } @@ -11938,8 +12084,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i) { - var __ret = __Internal.GetBases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11959,8 +12105,8 @@ public void ClearBases() public global::CppSharp.Parser.AST.Field GetFields(uint i) { - var __ret = __Internal.GetFields(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFields(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11980,8 +12126,8 @@ public void ClearFields() public global::CppSharp.Parser.AST.Method GetMethods(uint i) { - var __ret = __Internal.GetMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12001,8 +12147,8 @@ public void ClearMethods() public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i) { - var __ret = __Internal.GetSpecifiers(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecifiers(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12181,8 +12327,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } @@ -12190,8 +12336,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -12199,8 +12345,8 @@ public uint MethodsCount { get { - var __ret = __Internal.GetMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetMethodsCount(__Instance); + return ___ret; } } @@ -12208,8 +12354,8 @@ public uint SpecifiersCount { get { - var __ret = __Internal.GetSpecifiersCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecifiersCount(__Instance); + return ___ret; } } } @@ -12271,6 +12417,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration, internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Template(native.ToPointer(), skipVTables); } @@ -12357,8 +12505,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12399,8 +12547,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -12447,6 +12595,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAliasTemplate(native.ToPointer(), skipVTables); } @@ -12566,6 +12716,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameter(native.ToPointer(), skipVTables); } @@ -12731,6 +12883,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser. internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateTemplateParameter(native.ToPointer(), skipVTables); } @@ -12890,6 +13044,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST. internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -12983,7 +13139,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 192)] + [StructLayout(LayoutKind.Sequential, Size = 208)] public new partial struct __Internal { internal global::CppSharp.Parser.AST.DeclarationKind kind; @@ -13030,6 +13186,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NonTypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -13249,6 +13407,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplate(native.ToPointer(), skipVTables); } @@ -13326,8 +13486,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13350,9 +13510,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13361,9 +13521,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13371,8 +13531,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13459,6 +13619,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -13536,9 +13698,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -13585,8 +13747,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -13661,6 +13823,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -13795,6 +13959,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplate(native.ToPointer(), skipVTables); } @@ -13872,8 +14038,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13896,9 +14062,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13906,8 +14072,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13964,6 +14130,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14046,9 +14214,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14109,8 +14277,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14176,6 +14344,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template, internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplate(native.ToPointer(), skipVTables); } @@ -14253,8 +14423,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14277,9 +14447,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14288,9 +14458,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14298,8 +14468,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -14363,6 +14533,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser. internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14440,9 +14612,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(new IntPtr(&__ret), __Instance, i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(new IntPtr(&___ret), __Instance, i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14489,8 +14661,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14542,6 +14714,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp. internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -14658,6 +14832,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingTypename(native.ToPointer(), skipVTables); } @@ -14786,6 +14962,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Namespace(native.ToPointer(), skipVTables); } @@ -14911,6 +15089,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PreprocessedEntity(native.ToPointer(), skipVTables); } @@ -15051,6 +15231,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroDefinition(native.ToPointer(), skipVTables); } @@ -15205,6 +15387,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroExpansion(native.ToPointer(), skipVTables); } @@ -15390,6 +15574,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TranslationUnit(native.ToPointer(), skipVTables); } @@ -15467,8 +15653,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i) { - var __ret = __Internal.GetMacros(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMacros(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15517,8 +15703,8 @@ public uint MacrosCount { get { - var __ret = __Internal.GetMacrosCount(__Instance); - return __ret; + var ___ret = __Internal.GetMacrosCount(__Instance); + return ___ret; } } } @@ -15575,6 +15761,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ASTContext(native.ToPointer(), skipVTables); } @@ -15660,16 +15848,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindOrCreateModule(__Instance, __arg0); + var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0); __basicString0.Dispose(disposing: true, callNativeDtor:false); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i) { - var __ret = __Internal.GetTranslationUnits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTranslationUnits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15691,8 +15879,8 @@ public uint TranslationUnitsCount { get { - var __ret = __Internal.GetTranslationUnitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTranslationUnitsCount(__Instance); + return ___ret; } } } @@ -15876,6 +16064,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Stmt(native.ToPointer(), skipVTables); } @@ -16056,6 +16246,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclStmt(native.ToPointer(), skipVTables); } @@ -16133,8 +16325,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration Getdecls(uint i) { - var __ret = __Internal.Getdecls(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getdecls(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16183,8 +16375,8 @@ public uint GetdeclsCount { get { - var __ret = __Internal.GetdeclsCount(__Instance); - return __ret; + var ___ret = __Internal.GetdeclsCount(__Instance); + return ___ret; } } } @@ -16210,6 +16402,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NullStmt(native.ToPointer(), skipVTables); } @@ -16335,6 +16529,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundStmt(native.ToPointer(), skipVTables); } @@ -16412,8 +16608,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Stmt Getbody(uint i) { - var __ret = __Internal.Getbody(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getbody(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16515,8 +16711,8 @@ public uint GetbodyCount { get { - var __ret = __Internal.GetbodyCount(__Instance); - return __ret; + var ___ret = __Internal.GetbodyCount(__Instance); + return ___ret; } } } @@ -16546,6 +16742,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchCase(native.ToPointer(), skipVTables); } @@ -16685,6 +16883,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CaseStmt(native.ToPointer(), skipVTables); } @@ -16833,6 +17033,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DefaultStmt(native.ToPointer(), skipVTables); } @@ -16927,6 +17129,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo private bool __name_OwnsNativeMemory = false; internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LabelStmt(native.ToPointer(), skipVTables); } @@ -17060,6 +17264,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedStmt(native.ToPointer(), skipVTables); } @@ -17176,6 +17382,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IfStmt(native.ToPointer(), skipVTables); } @@ -17422,6 +17630,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchStmt(native.ToPointer(), skipVTables); } @@ -17612,6 +17822,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new WhileStmt(native.ToPointer(), skipVTables); } @@ -17762,6 +17974,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DoStmt(native.ToPointer(), skipVTables); } @@ -17914,6 +18128,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ForStmt(native.ToPointer(), skipVTables); } @@ -18102,6 +18318,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GotoStmt(native.ToPointer(), skipVTables); } @@ -18208,6 +18426,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt, internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IndirectGotoStmt(native.ToPointer(), skipVTables); } @@ -18326,6 +18546,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ContinueStmt(native.ToPointer(), skipVTables); } @@ -18417,6 +18639,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BreakStmt(native.ToPointer(), skipVTables); } @@ -18509,6 +18733,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ReturnStmt(native.ToPointer(), skipVTables); } @@ -18652,6 +18878,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStmt(native.ToPointer(), skipVTables); } @@ -18738,8 +18966,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getinputs(uint i) { - var __ret = __Internal.Getinputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getinputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18759,8 +18987,8 @@ public void Clearinputs() public global::CppSharp.Parser.AST.Expr Getoutputs(uint i) { - var __ret = __Internal.Getoutputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getoutputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18878,8 +19106,8 @@ public uint GetinputsCount { get { - var __ret = __Internal.GetinputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetinputsCount(__Instance); + return ___ret; } } @@ -18887,8 +19115,8 @@ public uint GetoutputsCount { get { - var __ret = __Internal.GetoutputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetoutputsCount(__Instance); + return ___ret; } } } @@ -18970,6 +19198,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStringPiece(native.ToPointer(), skipVTables); } @@ -19119,6 +19349,8 @@ public sbyte Modifier internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GCCAsmStmt(native.ToPointer(), skipVTables); } @@ -19243,6 +19475,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSAsmStmt(native.ToPointer(), skipVTables); } @@ -19394,6 +19628,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHExceptStmt(native.ToPointer(), skipVTables); } @@ -19514,6 +19750,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHFinallyStmt(native.ToPointer(), skipVTables); } @@ -19624,6 +19862,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHTryStmt(native.ToPointer(), skipVTables); } @@ -19784,6 +20024,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHLeaveStmt(native.ToPointer(), skipVTables); } @@ -19937,6 +20179,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Capture(native.ToPointer(), skipVTables); } @@ -20093,6 +20337,8 @@ public bool CapturesVariableArrayType internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CapturedStmt(native.ToPointer(), skipVTables); } @@ -20170,8 +20416,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -20220,8 +20466,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -20248,6 +20494,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXCatchStmt(native.ToPointer(), skipVTables); } @@ -20370,6 +20618,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTryStmt(native.ToPointer(), skipVTables); } @@ -20500,6 +20750,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt, internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXForRangeStmt(native.ToPointer(), skipVTables); } @@ -20759,6 +21011,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST. internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSDependentExistsStmt(native.ToPointer(), skipVTables); } @@ -20949,6 +21203,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CtorArgs(native.ToPointer(), skipVTables); } @@ -21027,6 +21283,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineBodyStmt(native.ToPointer(), skipVTables); } @@ -21296,6 +21554,8 @@ public enum SubStmt internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoreturnStmt(native.ToPointer(), skipVTables); } @@ -21771,6 +22031,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Classification(native.ToPointer(), skipVTables); } @@ -21953,6 +22215,8 @@ public bool IsModifiable internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Expr(native.ToPointer(), skipVTables); } @@ -22248,6 +22512,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullExpr(native.ToPointer(), skipVTables); } @@ -22368,6 +22634,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr, internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConstantExpr(native.ToPointer(), skipVTables); } @@ -22462,6 +22730,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr, internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OpaqueValueExpr(native.ToPointer(), skipVTables); } @@ -22605,6 +22875,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclRefExpr(native.ToPointer(), skipVTables); } @@ -22855,6 +23127,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IntegerLiteral(native.ToPointer(), skipVTables); } @@ -22974,6 +23248,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FixedPointLiteral(native.ToPointer(), skipVTables); } @@ -23103,6 +23379,8 @@ public enum CharacterKind internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharacterLiteral(native.ToPointer(), skipVTables); } @@ -23236,6 +23514,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr, internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FloatingLiteral(native.ToPointer(), skipVTables); } @@ -23367,6 +23647,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr, internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImaginaryLiteral(native.ToPointer(), skipVTables); } @@ -23499,6 +23781,8 @@ public enum StringKind internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StringLiteral(native.ToPointer(), skipVTables); } @@ -23819,6 +24103,8 @@ public enum IdentKind internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PredefinedExpr(native.ToPointer(), skipVTables); } @@ -23939,6 +24225,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenExpr(native.ToPointer(), skipVTables); } @@ -24081,6 +24369,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryOperator(native.ToPointer(), skipVTables); } @@ -24320,6 +24610,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OffsetOfExpr(native.ToPointer(), skipVTables); } @@ -24470,6 +24762,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -24662,6 +24956,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArraySubscriptExpr(native.ToPointer(), skipVTables); } @@ -24849,6 +25145,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExpr(native.ToPointer(), skipVTables); } @@ -24935,8 +25233,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -25070,8 +25368,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -25122,6 +25420,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberExpr(native.ToPointer(), skipVTables); } @@ -25386,6 +25686,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundLiteralExpr(native.ToPointer(), skipVTables); } @@ -25528,6 +25830,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos private bool __castKindName_OwnsNativeMemory = false; internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CastExpr(native.ToPointer(), skipVTables); } @@ -25754,6 +26058,8 @@ public enum OnStack_t internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25869,6 +26175,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25999,6 +26307,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CStyleCastExpr(native.ToPointer(), skipVTables); } @@ -26141,6 +26451,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperator(native.ToPointer(), skipVTables); } @@ -26538,6 +26850,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundAssignOperator(native.ToPointer(), skipVTables); } @@ -26685,6 +26999,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AbstractConditionalOperator(native.ToPointer(), skipVTables); } @@ -26865,6 +27181,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConditionalOperator(native.ToPointer(), skipVTables); } @@ -26991,6 +27309,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser. internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryConditionalOperator(native.ToPointer(), skipVTables); } @@ -27112,6 +27432,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AddrLabelExpr(native.ToPointer(), skipVTables); } @@ -27232,6 +27554,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StmtExpr(native.ToPointer(), skipVTables); } @@ -27366,6 +27690,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ShuffleVectorExpr(native.ToPointer(), skipVTables); } @@ -27499,6 +27825,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConvertVectorExpr(native.ToPointer(), skipVTables); } @@ -27638,6 +27966,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ChooseExpr(native.ToPointer(), skipVTables); } @@ -27838,6 +28168,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GNUNullExpr(native.ToPointer(), skipVTables); } @@ -27946,6 +28278,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VAArgExpr(native.ToPointer(), skipVTables); } @@ -28102,6 +28436,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InitListExpr(native.ToPointer(), skipVTables); } @@ -28400,6 +28736,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Designator(native.ToPointer(), skipVTables); } @@ -28654,6 +28992,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FieldDesignator(native.ToPointer(), skipVTables); } @@ -28762,6 +29102,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables); } @@ -28840,6 +29182,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitExpr(native.ToPointer(), skipVTables); } @@ -29012,6 +29356,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NoInitExpr(native.ToPointer(), skipVTables); } @@ -29105,6 +29451,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables); } @@ -29226,6 +29574,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitLoopExpr(native.ToPointer(), skipVTables); } @@ -29345,6 +29695,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitIndexExpr(native.ToPointer(), skipVTables); } @@ -29436,6 +29788,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST. internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitValueInitExpr(native.ToPointer(), skipVTables); } @@ -29530,6 +29884,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenListExpr(native.ToPointer(), skipVTables); } @@ -29668,6 +30024,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GenericSelectionExpr(native.ToPointer(), skipVTables); } @@ -29870,6 +30228,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtVectorElementExpr(native.ToPointer(), skipVTables); } @@ -30029,6 +30389,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockExpr(native.ToPointer(), skipVTables); } @@ -30150,6 +30512,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsTypeExpr(native.ToPointer(), skipVTables); } @@ -30285,6 +30649,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr, internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PseudoObjectExpr(native.ToPointer(), skipVTables); } @@ -30495,6 +30861,8 @@ public enum AtomicOp internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AtomicExpr(native.ToPointer(), skipVTables); } @@ -30790,6 +31158,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypoExpr(native.ToPointer(), skipVTables); } @@ -30897,6 +31267,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXOperatorCallExpr(native.ToPointer(), skipVTables); } @@ -31072,6 +31444,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXMemberCallExpr(native.ToPointer(), skipVTables); } @@ -31222,6 +31596,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CUDAKernelCallExpr(native.ToPointer(), skipVTables); } @@ -31361,6 +31737,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli private bool __castName_OwnsNativeMemory = false; internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNamedCastExpr(native.ToPointer(), skipVTables); } @@ -31546,6 +31924,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStaticCastExpr(native.ToPointer(), skipVTables); } @@ -31650,6 +32030,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDynamicCastExpr(native.ToPointer(), skipVTables); } @@ -31766,6 +32148,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables); } @@ -31869,6 +32253,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstCastExpr(native.ToPointer(), skipVTables); } @@ -31985,6 +32371,8 @@ public enum LiteralOperatorKind internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UserDefinedLiteral(native.ToPointer(), skipVTables); } @@ -32136,6 +32524,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables); } @@ -32254,6 +32644,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST. internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables); } @@ -32359,6 +32751,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser. internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables); } @@ -32467,6 +32861,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTypeidExpr(native.ToPointer(), skipVTables); } @@ -32602,6 +32998,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertyRefExpr(native.ToPointer(), skipVTables); } @@ -32749,6 +33147,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables); } @@ -32887,6 +33287,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUuidofExpr(native.ToPointer(), skipVTables); } @@ -33039,6 +33441,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThisExpr(native.ToPointer(), skipVTables); } @@ -33159,6 +33563,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThrowExpr(native.ToPointer(), skipVTables); } @@ -33292,6 +33698,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultArgExpr(native.ToPointer(), skipVTables); } @@ -33412,6 +33820,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultInitExpr(native.ToPointer(), skipVTables); } @@ -33532,6 +33942,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables); } @@ -33672,6 +34084,8 @@ public enum ConstructionKind internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExpr(native.ToPointer(), skipVTables); } @@ -33758,8 +34172,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -33892,8 +34306,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -33934,6 +34348,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables); } @@ -34075,6 +34491,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST. internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables); } @@ -34217,6 +34635,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables); } @@ -34351,6 +34771,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LambdaExpr(native.ToPointer(), skipVTables); } @@ -34428,8 +34850,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -34572,8 +34994,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -34612,6 +35034,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables); } @@ -34753,6 +35177,8 @@ public enum InitializationStyle internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNewExpr(native.ToPointer(), skipVTables); } @@ -34830,8 +35256,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i) { - var __ret = __Internal.GetplacementArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetplacementArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -35046,8 +35472,8 @@ public uint GetplacementArgumentsCount { get { - var __ret = __Internal.GetplacementArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetplacementArgumentsCount(__Instance); + return ___ret; } } } @@ -35091,6 +35517,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDeleteExpr(native.ToPointer(), skipVTables); } @@ -35272,6 +35700,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables); } @@ -35472,6 +35902,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35592,6 +36024,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35727,6 +36161,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionTraitExpr(native.ToPointer(), skipVTables); } @@ -35886,6 +36322,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FindResult(native.ToPointer(), skipVTables); } @@ -35964,6 +36402,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OverloadExpr(native.ToPointer(), skipVTables); } @@ -36183,6 +36623,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedLookupExpr(native.ToPointer(), skipVTables); } @@ -36307,6 +36749,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser. internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables); } @@ -36492,6 +36936,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExprWithCleanups(native.ToPointer(), skipVTables); } @@ -36630,6 +37076,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables); } @@ -36707,8 +37155,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -36797,8 +37245,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -36849,6 +37297,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables); } @@ -37128,6 +37578,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedMemberExpr(native.ToPointer(), skipVTables); } @@ -37315,6 +37767,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr, internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNoexceptExpr(native.ToPointer(), skipVTables); } @@ -37435,6 +37889,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionExpr(native.ToPointer(), skipVTables); } @@ -37559,6 +38015,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SizeOfPackExpr(native.ToPointer(), skipVTables); } @@ -37731,6 +38189,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables); } @@ -37851,6 +38311,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp. internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables); } @@ -37972,6 +38434,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionParmPackExpr(native.ToPointer(), skipVTables); } @@ -38123,6 +38587,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtraState(native.ToPointer(), skipVTables); } @@ -38201,6 +38667,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables); } @@ -38354,6 +38822,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFoldExpr(native.ToPointer(), skipVTables); } @@ -38571,6 +39041,8 @@ public enum SubExpr internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineSuspendExpr(native.ToPointer(), skipVTables); } @@ -38767,6 +39239,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoawaitExpr(native.ToPointer(), skipVTables); } @@ -38888,6 +39362,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentCoawaitExpr(native.ToPointer(), skipVTables); } @@ -39027,6 +39503,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoyieldExpr(native.ToPointer(), skipVTables); } @@ -39198,6 +39676,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserTargetInfo(native.ToPointer(), skipVTables); } @@ -39870,6 +40350,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parser(native.ToPointer(), skipVTables); } @@ -40080,6 +40562,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppParserOptions(native.ToPointer(), skipVTables); } @@ -40162,8 +40646,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40178,8 +40662,8 @@ public void ClearArguments() public string GetCompilationOptions(uint i) { - var __ret = __Internal.GetCompilationOptions(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetCompilationOptions(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddCompilationOptions(string s) @@ -40194,8 +40678,8 @@ public void ClearCompilationOptions() public string GetSourceFiles(uint i) { - var __ret = __Internal.GetSourceFiles(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSourceFiles(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSourceFiles(string s) @@ -40210,8 +40694,8 @@ public void ClearSourceFiles() public string GetIncludeDirs(uint i) { - var __ret = __Internal.GetIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddIncludeDirs(string s) @@ -40226,8 +40710,8 @@ public void ClearIncludeDirs() public string GetSystemIncludeDirs(uint i) { - var __ret = __Internal.GetSystemIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSystemIncludeDirs(string s) @@ -40242,8 +40726,8 @@ public void ClearSystemIncludeDirs() public string GetDefines(uint i) { - var __ret = __Internal.GetDefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDefines(string s) @@ -40258,8 +40742,8 @@ public void ClearDefines() public string GetUndefines(uint i) { - var __ret = __Internal.GetUndefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetUndefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddUndefines(string s) @@ -40274,8 +40758,8 @@ public void ClearUndefines() public string GetSupportedStdTypes(uint i) { - var __ret = __Internal.GetSupportedStdTypes(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedStdTypes(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedStdTypes(string s) @@ -40290,8 +40774,8 @@ public void ClearSupportedStdTypes() public string GetSupportedFunctionTemplates(uint i) { - var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedFunctionTemplates(string s) @@ -40453,9 +40937,9 @@ public string ClangVersion { get { - var __ret = new global::Std.BasicString.__Internal(); - __Internal.GetClangVersion(new IntPtr(&__ret), __Instance); - var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); + var ___ret = new global::Std.BasicString.__Internal(); + __Internal.GetClangVersion(new IntPtr(&___ret), __Instance); + var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); __basicStringRet0.Dispose(); return __retString0; @@ -40466,8 +40950,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40475,8 +40959,8 @@ public uint CompilationOptionsCount { get { - var __ret = __Internal.GetCompilationOptionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetCompilationOptionsCount(__Instance); + return ___ret; } } @@ -40484,8 +40968,8 @@ public uint SourceFilesCount { get { - var __ret = __Internal.GetSourceFilesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSourceFilesCount(__Instance); + return ___ret; } } @@ -40493,8 +40977,8 @@ public uint IncludeDirsCount { get { - var __ret = __Internal.GetIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetIncludeDirsCount(__Instance); + return ___ret; } } @@ -40502,8 +40986,8 @@ public uint SystemIncludeDirsCount { get { - var __ret = __Internal.GetSystemIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance); + return ___ret; } } @@ -40511,8 +40995,8 @@ public uint DefinesCount { get { - var __ret = __Internal.GetDefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDefinesCount(__Instance); + return ___ret; } } @@ -40520,8 +41004,8 @@ public uint UndefinesCount { get { - var __ret = __Internal.GetUndefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetUndefinesCount(__Instance); + return ___ret; } } @@ -40529,8 +41013,8 @@ public uint SupportedStdTypesCount { get { - var __ret = __Internal.GetSupportedStdTypesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedStdTypesCount(__Instance); + return ___ret; } } @@ -40538,8 +41022,8 @@ public uint SupportedFunctionTemplatesCount { get { - var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return ___ret; } } } @@ -40619,6 +41103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppLinkerOptions(native.ToPointer(), skipVTables); } @@ -40701,8 +41187,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40717,8 +41203,8 @@ public void ClearArguments() public string GetLibraryDirs(uint i) { - var __ret = __Internal.GetLibraryDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraryDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraryDirs(string s) @@ -40733,8 +41219,8 @@ public void ClearLibraryDirs() public string GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraries(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraries(string s) @@ -40751,8 +41237,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40760,8 +41246,8 @@ public uint LibraryDirsCount { get { - var __ret = __Internal.GetLibraryDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibraryDirsCount(__Instance); + return ___ret; } } @@ -40769,8 +41255,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -40816,6 +41302,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserDiagnostic(native.ToPointer(), skipVTables); } @@ -41028,6 +41516,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserResult(native.ToPointer(), skipVTables); } @@ -41110,11 +41600,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i) { - var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); - __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i); - var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret); - global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); + __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i); + var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret); + global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s) @@ -41132,8 +41622,8 @@ public void ClearDiagnostics() public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLibraries(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41182,8 +41672,8 @@ public uint DiagnosticsCount { get { - var __ret = __Internal.GetDiagnosticsCount(__Instance); - return __ret; + var ___ret = __Internal.GetDiagnosticsCount(__Instance); + return ___ret; } } @@ -41191,8 +41681,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -41241,6 +41731,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClangParser(native.ToPointer(), skipVTables); } @@ -41318,16 +41810,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseHeader(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseHeader(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseLibrary(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseLibrary(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41338,9 +41830,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41350,9 +41842,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString1 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString1, File); var __arg1 = __basicString1.__Instance; - var __ret = __Internal.Compile(__arg0, __arg1); + var ___ret = __Internal.Compile(__arg0, __arg1); __basicString1.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41363,9 +41855,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs index 66048f8dc..91785e9fd 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs @@ -15,6 +15,8 @@ [assembly:InternalsVisibleTo("CppSharp.CppParser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace Std { namespace Allocator @@ -52,6 +54,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Allocator<_Tp>(native.ToPointer(), skipVTables); } @@ -256,6 +260,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharTraits<_CharT>(native.ToPointer(), skipVTables); } @@ -366,6 +372,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static BasicString<_CharT, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BasicString<_CharT, _Traits, _Alloc>(native.ToPointer(), skipVTables); } @@ -468,16 +476,16 @@ public partial struct __Internal public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Assign(__arg0, __s); - var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Assign(__arg0, __s); + var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false); return __result0; } public static string Data(this global::Std.BasicString, global::Std.Allocator> @this) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Data(__arg0); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.Data(__arg0); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp index 04a272aee..7f36c1299 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp @@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST: extern "C" __declspec(dllexport) 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" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); } extern "C" __declspec(dllexport) 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" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); } diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs index 5c6dadc5f..f884b3abb 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs @@ -13,6 +13,8 @@ [assembly:InternalsVisibleTo("CppSharp.Parser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace CppSharp { namespace Parser @@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NativeLibrary(native.ToPointer(), skipVTables); } @@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetSymbols(uint i) { - var __ret = __Internal.GetSymbols(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSymbols(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSymbols(string s) @@ -219,8 +223,8 @@ public void ClearSymbols() public string GetDependencies(uint i) { - var __ret = __Internal.GetDependencies(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDependencies(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDependencies(string s) @@ -264,8 +268,8 @@ public uint SymbolsCount { get { - var __ret = __Internal.GetSymbolsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSymbolsCount(__Instance); + return ___ret; } } @@ -273,8 +277,8 @@ public uint DependenciesCount { get { - var __ret = __Internal.GetDependenciesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDependenciesCount(__Instance); + return ___ret; } } } @@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Comment(native.ToPointer(), skipVTables); } @@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockContentComment(native.ToPointer(), skipVTables); } @@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullComment(native.ToPointer(), skipVTables); } @@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i) { - var __ret = __Internal.GetBlocks(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBlocks(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -630,8 +640,8 @@ public uint BlocksCount { get { - var __ret = __Internal.GetBlocksCount(__Instance); - return __ret; + var ___ret = __Internal.GetBlocksCount(__Instance); + return ___ret; } } } @@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineContentComment(native.ToPointer(), skipVTables); } @@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParagraphComment(native.ToPointer(), skipVTables); } @@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i) { - var __ret = __Internal.GetContent(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetContent(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -887,8 +901,8 @@ public uint ContentCount { get { - var __ret = __Internal.GetContentCount(__Instance); - return __ret; + var ___ret = __Internal.GetContentCount(__Instance); + return ___ret; } } } @@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -1062,6 +1078,8 @@ public string Text internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockCommandComment(native.ToPointer(), skipVTables); } @@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s) @@ -1204,8 +1222,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -1241,6 +1259,8 @@ public enum PassDirection internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParamCommandComment(native.ToPointer(), skipVTables); } @@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TParamCommandComment(native.ToPointer(), skipVTables); } @@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public uint GetPosition(uint i) { - var __ret = __Internal.GetPosition(__Instance, i); - return __ret; + var ___ret = __Internal.GetPosition(__Instance, i); + return ___ret; } public void AddPosition(ref uint s) @@ -1477,8 +1499,8 @@ public uint PositionCount { get { - var __ret = __Internal.GetPositionCount(__Instance); - return __ret; + var ___ret = __Internal.GetPositionCount(__Instance); + return ___ret; } } } @@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } @@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimBlockComment(native.ToPointer(), skipVTables); } @@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i) { - var __ret = __Internal.GetLines(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLines(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false); return __result0; } @@ -1728,8 +1754,8 @@ public uint LinesCount { get { - var __ret = __Internal.GetLinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLinesCount(__Instance); + return ___ret; } } } @@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VerbatimLineComment(native.ToPointer(), skipVTables); } @@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Argument(native.ToPointer(), skipVTables); } @@ -2023,6 +2053,8 @@ public string Text internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InlineCommandComment(native.ToPointer(), skipVTables); } @@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); - global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret); + global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s) @@ -2150,8 +2182,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLTagComment(native.ToPointer(), skipVTables); } @@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Attribute(native.ToPointer(), skipVTables); } @@ -2429,6 +2465,8 @@ public string Value internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLStartTagComment(native.ToPointer(), skipVTables); } @@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i) { - var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); - __Internal.GetAttributes(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); - global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal(); + __Internal.GetAttributes(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret); + global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) @@ -2544,8 +2582,8 @@ public uint AttributesCount { get { - var __ret = __Internal.GetAttributesCount(__Instance); - return __ret; + var ___ret = __Internal.GetAttributesCount(__Instance); + return ___ret; } } } @@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new HTMLEndTagComment(native.ToPointer(), skipVTables); } @@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TextComment(native.ToPointer(), skipVTables); } @@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new RawComment(native.ToPointer(), skipVTables); } @@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SourceRange(native.ToPointer(), skipVTables); } @@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Type(native.ToPointer(), skipVTables); } @@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeQualifiers(native.ToPointer(), skipVTables); } @@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new QualifiedType(native.ToPointer(), skipVTables); } @@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TagType(native.ToPointer(), skipVTables); } @@ -3811,6 +3865,8 @@ public enum ArraySize internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayType(native.ToPointer(), skipVTables); } @@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionType(native.ToPointer(), skipVTables); } @@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -4103,8 +4161,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -4136,6 +4194,8 @@ public enum TypeModifier internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PointerType(native.ToPointer(), skipVTables); } @@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberPointerType(native.ToPointer(), skipVTables); } @@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefType(native.ToPointer(), skipVTables); } @@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedType(native.ToPointer(), skipVTables); } @@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DecayedType(native.ToPointer(), skipVTables); } @@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateArgument(native.ToPointer(), skipVTables); } @@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -4991,8 +5063,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables); } @@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -5145,8 +5219,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST. internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterType(native.ToPointer(), skipVTables); } @@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables); } @@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST. internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InjectedClassNameType(native.ToPointer(), skipVTables); } @@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentNameType(native.ToPointer(), skipVTables); } @@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionType(native.ToPointer(), skipVTables); } @@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryTransformType(native.ToPointer(), skipVTables); } @@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingType(native.ToPointer(), skipVTables); } @@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VectorType(native.ToPointer(), skipVTables); } @@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BuiltinType(native.ToPointer(), skipVTables); } @@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Declaration(native.ToPointer(), skipVTables); } @@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i) { - var __ret = __Internal.GetPreprocessedEntities(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetPreprocessedEntities(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities() public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i) { - var __ret = __Internal.GetRedeclarations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetRedeclarations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount { get { - var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance); - return __ret; + var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance); + return ___ret; } } @@ -6824,8 +6918,8 @@ public uint RedeclarationsCount { get { - var __ret = __Internal.GetRedeclarationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetRedeclarationsCount(__Instance); + return ___ret; } } } @@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclarationContext(native.ToPointer(), skipVTables); } @@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i) { - var __ret = __Internal.GetNamespaces(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetNamespaces(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7087,8 +7183,8 @@ public void ClearNamespaces() public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i) { - var __ret = __Internal.GetEnums(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetEnums(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7108,8 +7204,8 @@ public void ClearEnums() public global::CppSharp.Parser.AST.Function GetFunctions(uint i) { - var __ret = __Internal.GetFunctions(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFunctions(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7129,8 +7225,8 @@ public void ClearFunctions() public global::CppSharp.Parser.AST.Class GetClasses(uint i) { - var __ret = __Internal.GetClasses(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetClasses(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7150,8 +7246,8 @@ public void ClearClasses() public global::CppSharp.Parser.AST.Template GetTemplates(uint i) { - var __ret = __Internal.GetTemplates(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTemplates(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7171,8 +7267,8 @@ public void ClearTemplates() public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i) { - var __ret = __Internal.GetTypedefs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypedefs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7192,8 +7288,8 @@ public void ClearTypedefs() public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i) { - var __ret = __Internal.GetTypeAliases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTypeAliases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7213,8 +7309,8 @@ public void ClearTypeAliases() public global::CppSharp.Parser.AST.Variable GetVariables(uint i) { - var __ret = __Internal.GetVariables(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetVariables(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7234,8 +7330,8 @@ public void ClearVariables() public global::CppSharp.Parser.AST.Friend GetFriends(uint i) { - var __ret = __Internal.GetFriends(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFriends(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false); return __result0; } @@ -7275,8 +7371,8 @@ public uint NamespacesCount { get { - var __ret = __Internal.GetNamespacesCount(__Instance); - return __ret; + var ___ret = __Internal.GetNamespacesCount(__Instance); + return ___ret; } } @@ -7284,8 +7380,8 @@ public uint EnumsCount { get { - var __ret = __Internal.GetEnumsCount(__Instance); - return __ret; + var ___ret = __Internal.GetEnumsCount(__Instance); + return ___ret; } } @@ -7293,8 +7389,8 @@ public uint FunctionsCount { get { - var __ret = __Internal.GetFunctionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFunctionsCount(__Instance); + return ___ret; } } @@ -7302,8 +7398,8 @@ public uint ClassesCount { get { - var __ret = __Internal.GetClassesCount(__Instance); - return __ret; + var ___ret = __Internal.GetClassesCount(__Instance); + return ___ret; } } @@ -7311,8 +7407,8 @@ public uint TemplatesCount { get { - var __ret = __Internal.GetTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTemplatesCount(__Instance); + return ___ret; } } @@ -7320,8 +7416,8 @@ public uint TypedefsCount { get { - var __ret = __Internal.GetTypedefsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypedefsCount(__Instance); + return ___ret; } } @@ -7329,8 +7425,8 @@ public uint TypeAliasesCount { get { - var __ret = __Internal.GetTypeAliasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetTypeAliasesCount(__Instance); + return ___ret; } } @@ -7338,8 +7434,8 @@ public uint VariablesCount { get { - var __ret = __Internal.GetVariablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVariablesCount(__Instance); + return ___ret; } } @@ -7347,8 +7443,8 @@ public uint FriendsCount { get { - var __ret = __Internal.GetFriendsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFriendsCount(__Instance); + return ___ret; } } } @@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefNameDecl(native.ToPointer(), skipVTables); } @@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypedefDecl(native.ToPointer(), skipVTables); } @@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAlias(native.ToPointer(), skipVTables); } @@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Friend(native.ToPointer(), skipVTables); } @@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StatementObsolete(native.ToPointer(), skipVTables); } @@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionObsolete(native.ToPointer(), skipVTables); } @@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperatorObsolete(native.ToPointer(), skipVTables); } @@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExprObsolete(native.ToPointer(), skipVTables); } @@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8429,8 +8541,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExprObsolete(native.ToPointer(), skipVTables); } @@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false); return __result0; } @@ -8574,8 +8688,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration, internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parameter(native.ToPointer(), skipVTables); } @@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Function(native.ToPointer(), skipVTables); } @@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Parameter GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9224,8 +9342,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -9324,6 +9442,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Method(native.ToPointer(), skipVTables); } @@ -9401,8 +9521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i) { - var __ret = __Internal.GetOverriddenMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetOverriddenMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9556,8 +9676,8 @@ public uint OverriddenMethodsCount { get { - var __ret = __Internal.GetOverriddenMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetOverriddenMethodsCount(__Instance); + return ___ret; } } } @@ -9681,6 +9801,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Item(native.ToPointer(), skipVTables); } @@ -9786,6 +9908,8 @@ public ulong Value internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Enumeration(native.ToPointer(), skipVTables); } @@ -9863,8 +9987,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i) { - var __ret = __Internal.GetItems(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetItems(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9887,9 +10011,9 @@ public void ClearItems() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindItemByName(__Instance, __arg0); + var ___ret = __Internal.FindItemByName(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false); return __result0; } @@ -9938,8 +10062,8 @@ public uint ItemsCount { get { - var __ret = __Internal.GetItemsCount(__Instance); - return __ret; + var ___ret = __Internal.GetItemsCount(__Instance); + return ___ret; } } } @@ -9988,6 +10112,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration, internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Variable(native.ToPointer(), skipVTables); } @@ -10157,6 +10283,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BaseClassSpecifier(native.ToPointer(), skipVTables); } @@ -10330,6 +10458,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Field(native.ToPointer(), skipVTables); } @@ -10501,6 +10631,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AccessSpecifierDecl(native.ToPointer(), skipVTables); } @@ -10613,6 +10745,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableComponent(native.ToPointer(), skipVTables); } @@ -10778,6 +10912,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VTableLayout(native.ToPointer(), skipVTables); } @@ -10860,9 +10996,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i) { - var __ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal(); - __Internal.GetComponents(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal(); + __Internal.GetComponents(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret); } public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s) @@ -10882,8 +11018,8 @@ public uint ComponentsCount { get { - var __ret = __Internal.GetComponentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetComponentsCount(__Instance); + return ___ret; } } } @@ -10928,6 +11064,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VFTableInfo(native.ToPointer(), skipVTables); } @@ -11103,6 +11241,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutField(native.ToPointer(), skipVTables); } @@ -11277,6 +11417,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LayoutBase(native.ToPointer(), skipVTables); } @@ -11468,6 +11610,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassLayout(native.ToPointer(), skipVTables); } @@ -11550,11 +11694,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i) { - var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); - __Internal.GetVFTables(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret); - global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal(); + __Internal.GetVFTables(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret); + global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s) @@ -11572,11 +11716,11 @@ public void ClearVFTables() public global::CppSharp.Parser.AST.LayoutField GetFields(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); - __Internal.GetFields(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal(); + __Internal.GetFields(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddFields(global::CppSharp.Parser.AST.LayoutField s) @@ -11594,11 +11738,11 @@ public void ClearFields() public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i) { - var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); - __Internal.GetBases(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret); - global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal(); + __Internal.GetBases(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret); + global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddBases(global::CppSharp.Parser.AST.LayoutBase s) @@ -11724,8 +11868,8 @@ public uint VFTablesCount { get { - var __ret = __Internal.GetVFTablesCount(__Instance); - return __ret; + var ___ret = __Internal.GetVFTablesCount(__Instance); + return ___ret; } } @@ -11733,8 +11877,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -11742,8 +11886,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } } @@ -11863,6 +12007,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Class(native.ToPointer(), skipVTables); } @@ -11940,8 +12086,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i) { - var __ret = __Internal.GetBases(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetBases(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11961,8 +12107,8 @@ public void ClearBases() public global::CppSharp.Parser.AST.Field GetFields(uint i) { - var __ret = __Internal.GetFields(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetFields(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false); return __result0; } @@ -11982,8 +12128,8 @@ public void ClearFields() public global::CppSharp.Parser.AST.Method GetMethods(uint i) { - var __ret = __Internal.GetMethods(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMethods(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12003,8 +12149,8 @@ public void ClearMethods() public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i) { - var __ret = __Internal.GetSpecifiers(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecifiers(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12183,8 +12329,8 @@ public uint BasesCount { get { - var __ret = __Internal.GetBasesCount(__Instance); - return __ret; + var ___ret = __Internal.GetBasesCount(__Instance); + return ___ret; } } @@ -12192,8 +12338,8 @@ public uint FieldsCount { get { - var __ret = __Internal.GetFieldsCount(__Instance); - return __ret; + var ___ret = __Internal.GetFieldsCount(__Instance); + return ___ret; } } @@ -12201,8 +12347,8 @@ public uint MethodsCount { get { - var __ret = __Internal.GetMethodsCount(__Instance); - return __ret; + var ___ret = __Internal.GetMethodsCount(__Instance); + return ___ret; } } @@ -12210,8 +12356,8 @@ public uint SpecifiersCount { get { - var __ret = __Internal.GetSpecifiersCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecifiersCount(__Instance); + return ___ret; } } } @@ -12273,6 +12419,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration, internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Template(native.ToPointer(), skipVTables); } @@ -12359,8 +12507,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration GetParameters(uint i) { - var __ret = __Internal.GetParameters(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetParameters(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -12401,8 +12549,8 @@ public uint ParametersCount { get { - var __ret = __Internal.GetParametersCount(__Instance); - return __ret; + var ___ret = __Internal.GetParametersCount(__Instance); + return ___ret; } } } @@ -12449,6 +12597,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeAliasTemplate(native.ToPointer(), skipVTables); } @@ -12568,6 +12718,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateParameter(native.ToPointer(), skipVTables); } @@ -12733,6 +12885,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser. internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TemplateTemplateParameter(native.ToPointer(), skipVTables); } @@ -12892,6 +13046,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST. internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -12985,7 +13141,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 264)] + [StructLayout(LayoutKind.Sequential, Size = 280)] public new partial struct __Internal { internal global::CppSharp.Parser.AST.DeclarationKind kind; @@ -13032,6 +13188,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NonTypeTemplateParameter(native.ToPointer(), skipVTables); } @@ -13251,6 +13409,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplate(native.ToPointer(), skipVTables); } @@ -13328,8 +13488,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13352,9 +13512,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13363,9 +13523,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13373,8 +13533,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13461,6 +13621,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -13538,9 +13700,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -13587,8 +13749,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -13663,6 +13825,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -13797,6 +13961,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplate(native.ToPointer(), skipVTables); } @@ -13874,8 +14040,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13898,9 +14064,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -13908,8 +14074,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -13966,6 +14132,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14048,9 +14216,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14111,8 +14279,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14178,6 +14346,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template, internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplate(native.ToPointer(), skipVTables); } @@ -14255,8 +14425,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i) { - var __ret = __Internal.GetSpecializations(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetSpecializations(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14279,9 +14449,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14290,9 +14460,9 @@ public void ClearSpecializations() var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0); + var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0); __basicString0.Dispose(); - var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false); return __result0; } @@ -14300,8 +14470,8 @@ public uint SpecializationsCount { get { - var __ret = __Internal.GetSpecializationsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSpecializationsCount(__Instance); + return ___ret; } } } @@ -14365,6 +14535,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser. internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplateSpecialization(native.ToPointer(), skipVTables); } @@ -14442,9 +14614,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i) { - var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); - __Internal.GetArguments(__Instance, new IntPtr(&__ret), i); - return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret); + var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal(); + __Internal.GetArguments(__Instance, new IntPtr(&___ret), i); + return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret); } public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s) @@ -14491,8 +14663,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } } @@ -14544,6 +14716,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp. internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables); } @@ -14660,6 +14834,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedUsingTypename(native.ToPointer(), skipVTables); } @@ -14789,6 +14965,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Namespace(native.ToPointer(), skipVTables); } @@ -14914,6 +15092,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PreprocessedEntity(native.ToPointer(), skipVTables); } @@ -15054,6 +15234,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroDefinition(native.ToPointer(), skipVTables); } @@ -15208,6 +15390,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MacroExpansion(native.ToPointer(), skipVTables); } @@ -15394,6 +15578,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TranslationUnit(native.ToPointer(), skipVTables); } @@ -15471,8 +15657,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i) { - var __ret = __Internal.GetMacros(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetMacros(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15521,8 +15707,8 @@ public uint MacrosCount { get { - var __ret = __Internal.GetMacrosCount(__Instance); - return __ret; + var ___ret = __Internal.GetMacrosCount(__Instance); + return ___ret; } } } @@ -15579,6 +15765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ASTContext(native.ToPointer(), skipVTables); } @@ -15664,16 +15852,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = __basicString0.__Instance; - var __ret = __Internal.FindOrCreateModule(__Instance, __arg0); + var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0); __basicString0.Dispose(disposing: true, callNativeDtor:false); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i) { - var __ret = __Internal.GetTranslationUnits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetTranslationUnits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false); return __result0; } @@ -15695,8 +15883,8 @@ public uint TranslationUnitsCount { get { - var __ret = __Internal.GetTranslationUnitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetTranslationUnitsCount(__Instance); + return ___ret; } } } @@ -15880,6 +16068,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Stmt(native.ToPointer(), skipVTables); } @@ -16060,6 +16250,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclStmt(native.ToPointer(), skipVTables); } @@ -16137,8 +16329,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Declaration Getdecls(uint i) { - var __ret = __Internal.Getdecls(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getdecls(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16187,8 +16379,8 @@ public uint GetdeclsCount { get { - var __ret = __Internal.GetdeclsCount(__Instance); - return __ret; + var ___ret = __Internal.GetdeclsCount(__Instance); + return ___ret; } } } @@ -16214,6 +16406,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NullStmt(native.ToPointer(), skipVTables); } @@ -16339,6 +16533,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundStmt(native.ToPointer(), skipVTables); } @@ -16416,8 +16612,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Stmt Getbody(uint i) { - var __ret = __Internal.Getbody(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getbody(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false); return __result0; } @@ -16519,8 +16715,8 @@ public uint GetbodyCount { get { - var __ret = __Internal.GetbodyCount(__Instance); - return __ret; + var ___ret = __Internal.GetbodyCount(__Instance); + return ___ret; } } } @@ -16550,6 +16746,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchCase(native.ToPointer(), skipVTables); } @@ -16689,6 +16887,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CaseStmt(native.ToPointer(), skipVTables); } @@ -16837,6 +17037,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DefaultStmt(native.ToPointer(), skipVTables); } @@ -16931,6 +17133,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo private bool __name_OwnsNativeMemory = false; internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LabelStmt(native.ToPointer(), skipVTables); } @@ -17064,6 +17268,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AttributedStmt(native.ToPointer(), skipVTables); } @@ -17180,6 +17386,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IfStmt(native.ToPointer(), skipVTables); } @@ -17426,6 +17634,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SwitchStmt(native.ToPointer(), skipVTables); } @@ -17616,6 +17826,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new WhileStmt(native.ToPointer(), skipVTables); } @@ -17766,6 +17978,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DoStmt(native.ToPointer(), skipVTables); } @@ -17918,6 +18132,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ForStmt(native.ToPointer(), skipVTables); } @@ -18106,6 +18322,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GotoStmt(native.ToPointer(), skipVTables); } @@ -18212,6 +18430,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt, internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IndirectGotoStmt(native.ToPointer(), skipVTables); } @@ -18330,6 +18550,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ContinueStmt(native.ToPointer(), skipVTables); } @@ -18421,6 +18643,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BreakStmt(native.ToPointer(), skipVTables); } @@ -18513,6 +18737,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ReturnStmt(native.ToPointer(), skipVTables); } @@ -18656,6 +18882,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStmt(native.ToPointer(), skipVTables); } @@ -18742,8 +18970,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getinputs(uint i) { - var __ret = __Internal.Getinputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getinputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18763,8 +18991,8 @@ public void Clearinputs() public global::CppSharp.Parser.AST.Expr Getoutputs(uint i) { - var __ret = __Internal.Getoutputs(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getoutputs(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -18882,8 +19110,8 @@ public uint GetinputsCount { get { - var __ret = __Internal.GetinputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetinputsCount(__Instance); + return ___ret; } } @@ -18891,8 +19119,8 @@ public uint GetoutputsCount { get { - var __ret = __Internal.GetoutputsCount(__Instance); - return __ret; + var ___ret = __Internal.GetoutputsCount(__Instance); + return ___ret; } } } @@ -18974,6 +19202,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsmStringPiece(native.ToPointer(), skipVTables); } @@ -19123,6 +19353,8 @@ public sbyte Modifier internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GCCAsmStmt(native.ToPointer(), skipVTables); } @@ -19247,6 +19479,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSAsmStmt(native.ToPointer(), skipVTables); } @@ -19398,6 +19632,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHExceptStmt(native.ToPointer(), skipVTables); } @@ -19518,6 +19754,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHFinallyStmt(native.ToPointer(), skipVTables); } @@ -19628,6 +19866,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHTryStmt(native.ToPointer(), skipVTables); } @@ -19788,6 +20028,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SEHLeaveStmt(native.ToPointer(), skipVTables); } @@ -19941,6 +20183,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Capture(native.ToPointer(), skipVTables); } @@ -20097,6 +20341,8 @@ public bool CapturesVariableArrayType internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CapturedStmt(native.ToPointer(), skipVTables); } @@ -20174,8 +20420,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -20224,8 +20470,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -20252,6 +20498,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXCatchStmt(native.ToPointer(), skipVTables); } @@ -20374,6 +20622,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTryStmt(native.ToPointer(), skipVTables); } @@ -20504,6 +20754,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt, internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXForRangeStmt(native.ToPointer(), skipVTables); } @@ -20763,6 +21015,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST. internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSDependentExistsStmt(native.ToPointer(), skipVTables); } @@ -20953,6 +21207,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CtorArgs(native.ToPointer(), skipVTables); } @@ -21031,6 +21287,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineBodyStmt(native.ToPointer(), skipVTables); } @@ -21300,6 +21558,8 @@ public enum SubStmt internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoreturnStmt(native.ToPointer(), skipVTables); } @@ -21775,6 +22035,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Classification(native.ToPointer(), skipVTables); } @@ -21957,6 +22219,8 @@ public bool IsModifiable internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Expr(native.ToPointer(), skipVTables); } @@ -22252,6 +22516,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FullExpr(native.ToPointer(), skipVTables); } @@ -22372,6 +22638,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr, internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConstantExpr(native.ToPointer(), skipVTables); } @@ -22467,6 +22735,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr, internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OpaqueValueExpr(native.ToPointer(), skipVTables); } @@ -22611,6 +22881,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DeclRefExpr(native.ToPointer(), skipVTables); } @@ -22862,6 +23134,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new IntegerLiteral(native.ToPointer(), skipVTables); } @@ -22982,6 +23256,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FixedPointLiteral(native.ToPointer(), skipVTables); } @@ -23112,6 +23388,8 @@ public enum CharacterKind internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharacterLiteral(native.ToPointer(), skipVTables); } @@ -23246,6 +23524,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr, internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FloatingLiteral(native.ToPointer(), skipVTables); } @@ -23377,6 +23657,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr, internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImaginaryLiteral(native.ToPointer(), skipVTables); } @@ -23509,6 +23791,8 @@ public enum StringKind internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StringLiteral(native.ToPointer(), skipVTables); } @@ -23830,6 +24114,8 @@ public enum IdentKind internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PredefinedExpr(native.ToPointer(), skipVTables); } @@ -23950,6 +24236,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenExpr(native.ToPointer(), skipVTables); } @@ -24093,6 +24381,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryOperator(native.ToPointer(), skipVTables); } @@ -24333,6 +24623,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OffsetOfExpr(native.ToPointer(), skipVTables); } @@ -24484,6 +24776,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -24676,6 +24970,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArraySubscriptExpr(native.ToPointer(), skipVTables); } @@ -24863,6 +25159,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CallExpr(native.ToPointer(), skipVTables); } @@ -24949,8 +25247,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -25084,8 +25382,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -25136,6 +25434,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MemberExpr(native.ToPointer(), skipVTables); } @@ -25400,6 +25700,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundLiteralExpr(native.ToPointer(), skipVTables); } @@ -25543,6 +25845,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos private bool __castKindName_OwnsNativeMemory = false; internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CastExpr(native.ToPointer(), skipVTables); } @@ -25770,6 +26074,8 @@ public enum OnStack_t internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitCastExpr(native.ToPointer(), skipVTables); } @@ -25886,6 +26192,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExplicitCastExpr(native.ToPointer(), skipVTables); } @@ -26017,6 +26325,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CStyleCastExpr(native.ToPointer(), skipVTables); } @@ -26160,6 +26470,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryOperator(native.ToPointer(), skipVTables); } @@ -26558,6 +26870,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CompoundAssignOperator(native.ToPointer(), skipVTables); } @@ -26705,6 +27019,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AbstractConditionalOperator(native.ToPointer(), skipVTables); } @@ -26885,6 +27201,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConditionalOperator(native.ToPointer(), skipVTables); } @@ -27011,6 +27329,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser. internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BinaryConditionalOperator(native.ToPointer(), skipVTables); } @@ -27133,6 +27453,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AddrLabelExpr(native.ToPointer(), skipVTables); } @@ -27253,6 +27575,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new StmtExpr(native.ToPointer(), skipVTables); } @@ -27388,6 +27712,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ShuffleVectorExpr(native.ToPointer(), skipVTables); } @@ -27521,6 +27847,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ConvertVectorExpr(native.ToPointer(), skipVTables); } @@ -27661,6 +27989,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ChooseExpr(native.ToPointer(), skipVTables); } @@ -27862,6 +28192,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GNUNullExpr(native.ToPointer(), skipVTables); } @@ -27970,6 +28302,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new VAArgExpr(native.ToPointer(), skipVTables); } @@ -28126,6 +28460,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new InitListExpr(native.ToPointer(), skipVTables); } @@ -28425,6 +28761,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Designator(native.ToPointer(), skipVTables); } @@ -28679,6 +29017,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FieldDesignator(native.ToPointer(), skipVTables); } @@ -28787,6 +29127,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables); } @@ -28865,6 +29207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitExpr(native.ToPointer(), skipVTables); } @@ -29037,6 +29381,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new NoInitExpr(native.ToPointer(), skipVTables); } @@ -29130,6 +29476,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables); } @@ -29251,6 +29599,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitLoopExpr(native.ToPointer(), skipVTables); } @@ -29370,6 +29720,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayInitIndexExpr(native.ToPointer(), skipVTables); } @@ -29461,6 +29813,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST. internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ImplicitValueInitExpr(native.ToPointer(), skipVTables); } @@ -29556,6 +29910,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParenListExpr(native.ToPointer(), skipVTables); } @@ -29695,6 +30051,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new GenericSelectionExpr(native.ToPointer(), skipVTables); } @@ -29897,6 +30255,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtVectorElementExpr(native.ToPointer(), skipVTables); } @@ -30057,6 +30417,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BlockExpr(native.ToPointer(), skipVTables); } @@ -30178,6 +30540,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AsTypeExpr(native.ToPointer(), skipVTables); } @@ -30313,6 +30677,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr, internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PseudoObjectExpr(native.ToPointer(), skipVTables); } @@ -30523,6 +30889,8 @@ public enum AtomicOp internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new AtomicExpr(native.ToPointer(), skipVTables); } @@ -30818,6 +31186,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypoExpr(native.ToPointer(), skipVTables); } @@ -30925,6 +31295,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXOperatorCallExpr(native.ToPointer(), skipVTables); } @@ -31100,6 +31472,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXMemberCallExpr(native.ToPointer(), skipVTables); } @@ -31250,6 +31624,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CUDAKernelCallExpr(native.ToPointer(), skipVTables); } @@ -31390,6 +31766,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli private bool __castName_OwnsNativeMemory = false; internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNamedCastExpr(native.ToPointer(), skipVTables); } @@ -31576,6 +31954,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStaticCastExpr(native.ToPointer(), skipVTables); } @@ -31681,6 +32061,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDynamicCastExpr(native.ToPointer(), skipVTables); } @@ -31798,6 +32180,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables); } @@ -31902,6 +32286,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstCastExpr(native.ToPointer(), skipVTables); } @@ -32018,6 +32404,8 @@ public enum LiteralOperatorKind internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UserDefinedLiteral(native.ToPointer(), skipVTables); } @@ -32170,6 +32558,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables); } @@ -32289,6 +32679,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST. internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables); } @@ -32394,6 +32786,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser. internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables); } @@ -32502,6 +32896,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTypeidExpr(native.ToPointer(), skipVTables); } @@ -32638,6 +33034,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertyRefExpr(native.ToPointer(), skipVTables); } @@ -32786,6 +33184,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables); } @@ -32924,6 +33324,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUuidofExpr(native.ToPointer(), skipVTables); } @@ -33077,6 +33479,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThisExpr(native.ToPointer(), skipVTables); } @@ -33197,6 +33601,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXThrowExpr(native.ToPointer(), skipVTables); } @@ -33330,6 +33736,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultArgExpr(native.ToPointer(), skipVTables); } @@ -33450,6 +33858,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDefaultInitExpr(native.ToPointer(), skipVTables); } @@ -33570,6 +33980,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables); } @@ -33710,6 +34122,8 @@ public enum ConstructionKind internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXConstructExpr(native.ToPointer(), skipVTables); } @@ -33796,8 +34210,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -33930,8 +34344,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -33973,6 +34387,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables); } @@ -34115,6 +34531,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST. internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables); } @@ -34257,6 +34675,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables); } @@ -34391,6 +34811,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new LambdaExpr(native.ToPointer(), skipVTables); } @@ -34468,8 +34890,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i) { - var __ret = __Internal.GetcaptureInits(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetcaptureInits(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -34612,8 +35034,8 @@ public uint GetcaptureInitsCount { get { - var __ret = __Internal.GetcaptureInitsCount(__Instance); - return __ret; + var ___ret = __Internal.GetcaptureInitsCount(__Instance); + return ___ret; } } } @@ -34653,6 +35075,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables); } @@ -34794,6 +35218,8 @@ public enum InitializationStyle internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNewExpr(native.ToPointer(), skipVTables); } @@ -34871,8 +35297,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i) { - var __ret = __Internal.GetplacementArguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetplacementArguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -35087,8 +35513,8 @@ public uint GetplacementArgumentsCount { get { - var __ret = __Internal.GetplacementArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetplacementArgumentsCount(__Instance); + return ___ret; } } } @@ -35133,6 +35559,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDeleteExpr(native.ToPointer(), skipVTables); } @@ -35314,6 +35742,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables); } @@ -35515,6 +35945,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new TypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35635,6 +36067,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables); } @@ -35770,6 +36204,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExpressionTraitExpr(native.ToPointer(), skipVTables); } @@ -35930,6 +36366,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FindResult(native.ToPointer(), skipVTables); } @@ -36008,6 +36446,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new OverloadExpr(native.ToPointer(), skipVTables); } @@ -36229,6 +36669,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedLookupExpr(native.ToPointer(), skipVTables); } @@ -36354,6 +36796,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser. internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables); } @@ -36539,6 +36983,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExprWithCleanups(native.ToPointer(), skipVTables); } @@ -36677,6 +37123,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables); } @@ -36754,8 +37202,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.AST.Expr Getarguments(uint i) { - var __ret = __Internal.Getarguments(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Getarguments(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false); return __result0; } @@ -36844,8 +37292,8 @@ public uint GetargumentsCount { get { - var __ret = __Internal.GetargumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetargumentsCount(__Instance); + return ___ret; } } } @@ -36897,6 +37345,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables); } @@ -37178,6 +37628,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new UnresolvedMemberExpr(native.ToPointer(), skipVTables); } @@ -37365,6 +37817,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr, internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXNoexceptExpr(native.ToPointer(), skipVTables); } @@ -37485,6 +37939,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new PackExpansionExpr(native.ToPointer(), skipVTables); } @@ -37610,6 +38066,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SizeOfPackExpr(native.ToPointer(), skipVTables); } @@ -37783,6 +38241,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables); } @@ -37904,6 +38364,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp. internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables); } @@ -38026,6 +38488,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new FunctionParmPackExpr(native.ToPointer(), skipVTables); } @@ -38177,6 +38641,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ExtraState(native.ToPointer(), skipVTables); } @@ -38255,6 +38721,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables); } @@ -38408,6 +38876,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CXXFoldExpr(native.ToPointer(), skipVTables); } @@ -38626,6 +39096,8 @@ public enum SubExpr internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoroutineSuspendExpr(native.ToPointer(), skipVTables); } @@ -38823,6 +39295,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoawaitExpr(native.ToPointer(), skipVTables); } @@ -38944,6 +39418,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new DependentCoawaitExpr(native.ToPointer(), skipVTables); } @@ -39084,6 +39560,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CoyieldExpr(native.ToPointer(), skipVTables); } @@ -39255,6 +39733,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserTargetInfo(native.ToPointer(), skipVTables); } @@ -39927,6 +40407,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Parser(native.ToPointer(), skipVTables); } @@ -40137,6 +40619,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppParserOptions(native.ToPointer(), skipVTables); } @@ -40219,8 +40703,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40235,8 +40719,8 @@ public void ClearArguments() public string GetCompilationOptions(uint i) { - var __ret = __Internal.GetCompilationOptions(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetCompilationOptions(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddCompilationOptions(string s) @@ -40251,8 +40735,8 @@ public void ClearCompilationOptions() public string GetSourceFiles(uint i) { - var __ret = __Internal.GetSourceFiles(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSourceFiles(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSourceFiles(string s) @@ -40267,8 +40751,8 @@ public void ClearSourceFiles() public string GetIncludeDirs(uint i) { - var __ret = __Internal.GetIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddIncludeDirs(string s) @@ -40283,8 +40767,8 @@ public void ClearIncludeDirs() public string GetSystemIncludeDirs(uint i) { - var __ret = __Internal.GetSystemIncludeDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSystemIncludeDirs(string s) @@ -40299,8 +40783,8 @@ public void ClearSystemIncludeDirs() public string GetDefines(uint i) { - var __ret = __Internal.GetDefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetDefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddDefines(string s) @@ -40315,8 +40799,8 @@ public void ClearDefines() public string GetUndefines(uint i) { - var __ret = __Internal.GetUndefines(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetUndefines(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddUndefines(string s) @@ -40331,8 +40815,8 @@ public void ClearUndefines() public string GetSupportedStdTypes(uint i) { - var __ret = __Internal.GetSupportedStdTypes(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedStdTypes(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedStdTypes(string s) @@ -40347,8 +40831,8 @@ public void ClearSupportedStdTypes() public string GetSupportedFunctionTemplates(uint i) { - var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddSupportedFunctionTemplates(string s) @@ -40510,9 +40994,9 @@ public string ClangVersion { get { - var __ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); - __Internal.GetClangVersion(__Instance, new IntPtr(&__ret)); - var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); + var ___ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); + __Internal.GetClangVersion(__Instance, new IntPtr(&___ret)); + var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); __basicStringRet0.Dispose(); return __retString0; @@ -40523,8 +41007,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40532,8 +41016,8 @@ public uint CompilationOptionsCount { get { - var __ret = __Internal.GetCompilationOptionsCount(__Instance); - return __ret; + var ___ret = __Internal.GetCompilationOptionsCount(__Instance); + return ___ret; } } @@ -40541,8 +41025,8 @@ public uint SourceFilesCount { get { - var __ret = __Internal.GetSourceFilesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSourceFilesCount(__Instance); + return ___ret; } } @@ -40550,8 +41034,8 @@ public uint IncludeDirsCount { get { - var __ret = __Internal.GetIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetIncludeDirsCount(__Instance); + return ___ret; } } @@ -40559,8 +41043,8 @@ public uint SystemIncludeDirsCount { get { - var __ret = __Internal.GetSystemIncludeDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance); + return ___ret; } } @@ -40568,8 +41052,8 @@ public uint DefinesCount { get { - var __ret = __Internal.GetDefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetDefinesCount(__Instance); + return ___ret; } } @@ -40577,8 +41061,8 @@ public uint UndefinesCount { get { - var __ret = __Internal.GetUndefinesCount(__Instance); - return __ret; + var ___ret = __Internal.GetUndefinesCount(__Instance); + return ___ret; } } @@ -40586,8 +41070,8 @@ public uint SupportedStdTypesCount { get { - var __ret = __Internal.GetSupportedStdTypesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedStdTypesCount(__Instance); + return ___ret; } } @@ -40595,8 +41079,8 @@ public uint SupportedFunctionTemplatesCount { get { - var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); - return __ret; + var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return ___ret; } } } @@ -40676,6 +41160,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CppLinkerOptions(native.ToPointer(), skipVTables); } @@ -40758,8 +41244,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public string GetArguments(uint i) { - var __ret = __Internal.GetArguments(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetArguments(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddArguments(string s) @@ -40774,8 +41260,8 @@ public void ClearArguments() public string GetLibraryDirs(uint i) { - var __ret = __Internal.GetLibraryDirs(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraryDirs(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraryDirs(string s) @@ -40790,8 +41276,8 @@ public void ClearLibraryDirs() public string GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.GetLibraries(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } public void AddLibraries(string s) @@ -40808,8 +41294,8 @@ public uint ArgumentsCount { get { - var __ret = __Internal.GetArgumentsCount(__Instance); - return __ret; + var ___ret = __Internal.GetArgumentsCount(__Instance); + return ___ret; } } @@ -40817,8 +41303,8 @@ public uint LibraryDirsCount { get { - var __ret = __Internal.GetLibraryDirsCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibraryDirsCount(__Instance); + return ___ret; } } @@ -40826,8 +41312,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -40873,6 +41359,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserDiagnostic(native.ToPointer(), skipVTables); } @@ -41085,6 +41573,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ParserResult(native.ToPointer(), skipVTables); } @@ -41167,11 +41657,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i) { - var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); - __Internal.GetDiagnostics(__Instance, new IntPtr(&__ret), i); - var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret); - global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret)); - return ____ret; + var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal(); + __Internal.GetDiagnostics(__Instance, new IntPtr(&___ret), i); + var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret); + global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret)); + return _____ret; } public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s) @@ -41189,8 +41679,8 @@ public void ClearDiagnostics() public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i) { - var __ret = __Internal.GetLibraries(__Instance, i); - var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.GetLibraries(__Instance, i); + var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41239,8 +41729,8 @@ public uint DiagnosticsCount { get { - var __ret = __Internal.GetDiagnosticsCount(__Instance); - return __ret; + var ___ret = __Internal.GetDiagnosticsCount(__Instance); + return ___ret; } } @@ -41248,8 +41738,8 @@ public uint LibrariesCount { get { - var __ret = __Internal.GetLibrariesCount(__Instance); - return __ret; + var ___ret = __Internal.GetLibrariesCount(__Instance); + return ___ret; } } } @@ -41298,6 +41788,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new ClangParser(native.ToPointer(), skipVTables); } @@ -41375,16 +41867,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseHeader(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseHeader(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts) { var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance; - var __ret = __Internal.ParseLibrary(__arg0); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.ParseLibrary(__arg0); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41395,9 +41887,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41407,9 +41899,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString1 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString1, File); var __arg1 = __basicString1.__Instance; - var __ret = __Internal.Compile(__arg0, __arg1); + var ___ret = __Internal.Compile(__arg0, __arg1); __basicString1.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } @@ -41420,9 +41912,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) var __basicString2 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString2, File); var __arg2 = __basicString2.__Instance; - var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last); + var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last); __basicString2.Dispose(); - var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false); + var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false); return __result0; } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs index e8dda782c..8a426d693 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs @@ -15,6 +15,8 @@ [assembly:InternalsVisibleTo("CppSharp.CppParser")] +#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required + namespace Std { namespace Vector @@ -99,6 +101,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static Allocator<_Ty> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new Allocator<_Ty>(native.ToPointer(), skipVTables); } @@ -167,15 +171,6 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) return; NativeToManagedMap.TryRemove(__Instance, out _); DisposePartial(disposing); - if (callNativeDtor) - { - var ___Ty = typeof(_Ty); - if (___Ty.IsAssignableFrom(typeof(sbyte))) - { - return; - } - throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); - } if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; @@ -243,6 +238,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static BasicString<_Elem, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new BasicString<_Elem, _Traits, _Alloc>(native.ToPointer(), skipVTables); } @@ -389,6 +386,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S internal static CharTraits<_Elem> __CreateInstance(__IntPtr native, bool skipVTables = false) { + if (native == __IntPtr.Zero) + return null; return new CharTraits<_Elem>(native.ToPointer(), skipVTables); } @@ -463,16 +462,16 @@ public partial struct __Internal public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string _Ptr) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Assign(__arg0, _Ptr); - var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false); + var ___ret = __Internal.Assign(__arg0, _Ptr); + var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false); return __result0; } public static string Data(this global::Std.BasicString, global::Std.Allocator> @this) { var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance; - var __ret = __Internal.Data(__arg0); - return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + var ___ret = __Internal.Data(__arg0); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret); } } }