From e57ad1d3e9e084c878f444e431b53050afa73927 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Wed, 30 Mar 2016 00:00:31 +0300 Subject: [PATCH] Exposed in our AST the real comment behind a block comment. Signed-off-by: Dimitar Dobrev --- src/AST/Comment.cs | 2 + src/Core/Parser/ASTConverter.cs | 4 +- src/CppParser/AST.cpp | 9 +- src/CppParser/AST.h | 34 +- src/CppParser/Bindings/CLI/AST.cpp | 234 ++-- src/CppParser/Bindings/CLI/AST.h | 96 +- .../CSharp/i686-apple-darwin12.4.0/AST.cs | 1039 +++++++++-------- .../Bindings/CSharp/i686-pc-win32-msvc/AST.cs | 577 ++++----- .../CSharp/x86_64-apple-darwin12.4.0/AST.cs | 1039 +++++++++-------- .../Bindings/CSharp/x86_64-linux-gnu/AST.cs | 1039 +++++++++-------- .../CSharp/x86_64-pc-win32-msvc/AST.cs | 1039 +++++++++-------- src/CppParser/Comments.cpp | 3 + 12 files changed, 2655 insertions(+), 2460 deletions(-) diff --git a/src/AST/Comment.cs b/src/AST/Comment.cs index b654c97c..e57f1074 100644 --- a/src/AST/Comment.cs +++ b/src/AST/Comment.cs @@ -174,6 +174,8 @@ namespace CppSharp.AST get { return (CommentCommandKind) CommandId; } } + public ParagraphComment ParagraphComment { get; set; } + public List Arguments; public BlockCommandComment() diff --git a/src/Core/Parser/ASTConverter.cs b/src/Core/Parser/ASTConverter.cs index 2f4f427e..fd0a3bab 100644 --- a/src/Core/Parser/ASTConverter.cs +++ b/src/Core/Parser/ASTConverter.cs @@ -1670,6 +1670,7 @@ namespace CppSharp break; } paramCommandComment.ParamIndex = comment.ParamIndex; + VisitBlockCommandComment(paramCommandComment, comment); return paramCommandComment; } @@ -1748,9 +1749,10 @@ namespace CppSharp return new AST.VerbatimBlockLineComment { Text = comment.Text }; } - private static void VisitBlockCommandComment(AST.BlockCommandComment blockCommandComment, BlockCommandComment comment) + private void VisitBlockCommandComment(AST.BlockCommandComment blockCommandComment, BlockCommandComment comment) { blockCommandComment.CommandId = comment.CommandId; + blockCommandComment.ParagraphComment = (AST.ParagraphComment) Visit(comment.ParagraphComment); for (uint i = 0; i < comment.ArgumentsCount; i++) { var argument = new AST.BlockCommandComment.Argument { Text = comment.getArguments(i).Text }; diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index 5f3aaa44..46a0e674 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -848,9 +848,14 @@ BlockCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) {} DEF_STRING(BlockCommandComment::Argument, Text) -BlockCommandComment::BlockCommandComment() : BlockContentComment(CommentKind::BlockCommandComment), CommandId(0) {} +BlockCommandComment::BlockCommandComment() : BlockContentComment(CommentKind::BlockCommandComment), CommandId(0), ParagraphComment(0) {} -BlockCommandComment::BlockCommandComment(CommentKind Kind) : BlockContentComment(Kind) {} +BlockCommandComment::BlockCommandComment(CommentKind Kind) : BlockContentComment(Kind), CommandId(0), ParagraphComment(0) {} + +BlockCommandComment::~BlockCommandComment() +{ + delete ParagraphComment; +} DEF_VECTOR(BlockCommandComment, BlockCommandComment::Argument, Arguments) diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index 272a3e49..0b52633a 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -950,6 +950,22 @@ public: VECTOR(BlockContentComment*, Blocks) }; +class CS_API InlineContentComment : public Comment +{ +public: + InlineContentComment(); + InlineContentComment(CommentKind Kind); +}; + +class CS_API ParagraphComment : public BlockContentComment +{ +public: + ParagraphComment(); + ~ParagraphComment(); + bool IsWhitespace; + VECTOR(InlineContentComment*, Content) +}; + class CS_API BlockCommandComment : public BlockContentComment { public: @@ -962,7 +978,9 @@ public: }; BlockCommandComment(); BlockCommandComment(CommentKind Kind); + ~BlockCommandComment(); unsigned CommandId; + ParagraphComment* ParagraphComment; VECTOR(Argument, Arguments) }; @@ -1009,22 +1027,6 @@ public: STRING(Text) }; -class CS_API InlineContentComment : public Comment -{ -public: - InlineContentComment(); - InlineContentComment(CommentKind Kind); -}; - -class CS_API ParagraphComment : public BlockContentComment -{ -public: - ParagraphComment(); - ~ParagraphComment(); - bool IsWhitespace; - VECTOR(InlineContentComment*, Content) -}; - class CS_API InlineCommandComment : public InlineContentComment { public: diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp index 2bb277a4..3cc443b9 100644 --- a/src/CppParser/Bindings/CLI/AST.cpp +++ b/src/CppParser/Bindings/CLI/AST.cpp @@ -4575,6 +4575,118 @@ unsigned int CppSharp::Parser::AST::FullComment::BlocksCount::get() return __ret; } +CppSharp::Parser::AST::InlineContentComment::InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)native) +{ +} + +CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::InlineContentComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::InlineContentComment::~InlineContentComment() +{ +} + +CppSharp::Parser::AST::InlineContentComment::InlineContentComment() + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + __ownsNativeInstance = true; + NativePtr = new ::CppSharp::CppParser::AST::InlineContentComment(); +} + +CppSharp::Parser::AST::InlineContentComment::InlineContentComment(CppSharp::Parser::AST::CommentKind Kind) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + __ownsNativeInstance = true; + auto arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind; + NativePtr = new ::CppSharp::CppParser::AST::InlineContentComment(arg0); +} + +CppSharp::Parser::AST::InlineContentComment::InlineContentComment(CppSharp::Parser::AST::InlineContentComment^ _0) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + __ownsNativeInstance = true; + if (ReferenceEquals(_0, nullptr)) + throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + auto &arg0 = *(::CppSharp::CppParser::AST::InlineContentComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::InlineContentComment(arg0); +} + +CppSharp::Parser::AST::ParagraphComment::ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native) + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)native) +{ +} + +CppSharp::Parser::AST::ParagraphComment^ CppSharp::Parser::AST::ParagraphComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::ParagraphComment::~ParagraphComment() +{ + if (NativePtr) + { + auto __nativePtr = NativePtr; + NativePtr = 0; + delete (::CppSharp::CppParser::AST::ParagraphComment*) __nativePtr; + } +} + +CppSharp::Parser::AST::ParagraphComment::ParagraphComment() + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) +{ + __ownsNativeInstance = true; + NativePtr = new ::CppSharp::CppParser::AST::ParagraphComment(); +} + +CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::ParagraphComment::getContent(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i); + if (__ret == nullptr) return nullptr; + return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)__ret); +} + +void CppSharp::Parser::AST::ParagraphComment::addContent(CppSharp::Parser::AST::InlineContentComment^ s) +{ + if (ReferenceEquals(s, nullptr)) + throw gcnew ::System::ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + auto arg0 = (::CppSharp::CppParser::AST::InlineContentComment*)s->NativePtr; + ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->addContent(arg0); +} + +void CppSharp::Parser::AST::ParagraphComment::clearContent() +{ + ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->clearContent(); +} + +CppSharp::Parser::AST::ParagraphComment::ParagraphComment(CppSharp::Parser::AST::ParagraphComment^ _0) + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) +{ + __ownsNativeInstance = true; + if (ReferenceEquals(_0, nullptr)) + throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + auto &arg0 = *(::CppSharp::CppParser::AST::ParagraphComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::ParagraphComment(arg0); +} + +unsigned int CppSharp::Parser::AST::ParagraphComment::ContentCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContentCount(); + return __ret; +} + +bool CppSharp::Parser::AST::ParagraphComment::IsWhitespace::get() +{ + return ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->IsWhitespace; +} + +void CppSharp::Parser::AST::ParagraphComment::IsWhitespace::set(bool value) +{ + ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->IsWhitespace = value; +} + CppSharp::Parser::AST::BlockCommandComment::Argument::Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native) : __ownsNativeInstance(false) { @@ -4711,6 +4823,16 @@ void CppSharp::Parser::AST::BlockCommandComment::CommandId::set(unsigned int val ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->CommandId = value; } +CppSharp::Parser::AST::ParagraphComment^ CppSharp::Parser::AST::BlockCommandComment::ParagraphComment::get() +{ + return (((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->ParagraphComment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*)((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->ParagraphComment); +} + +void CppSharp::Parser::AST::BlockCommandComment::ParagraphComment::set(CppSharp::Parser::AST::ParagraphComment^ value) +{ + ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->ParagraphComment = (::CppSharp::CppParser::AST::ParagraphComment*)value->NativePtr; +} + CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native) : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)native) { @@ -4994,118 +5116,6 @@ void CppSharp::Parser::AST::VerbatimLineComment::Text::set(System::String^ s) ((::CppSharp::CppParser::AST::VerbatimLineComment*)NativePtr)->setText(arg0); } -CppSharp::Parser::AST::InlineContentComment::InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native) - : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)native) -{ -} - -CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::InlineContentComment::__CreateInstance(::System::IntPtr native) -{ - return gcnew ::CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*) native.ToPointer()); -} - -CppSharp::Parser::AST::InlineContentComment::~InlineContentComment() -{ -} - -CppSharp::Parser::AST::InlineContentComment::InlineContentComment() - : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) -{ - __ownsNativeInstance = true; - NativePtr = new ::CppSharp::CppParser::AST::InlineContentComment(); -} - -CppSharp::Parser::AST::InlineContentComment::InlineContentComment(CppSharp::Parser::AST::CommentKind Kind) - : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) -{ - __ownsNativeInstance = true; - auto arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind; - NativePtr = new ::CppSharp::CppParser::AST::InlineContentComment(arg0); -} - -CppSharp::Parser::AST::InlineContentComment::InlineContentComment(CppSharp::Parser::AST::InlineContentComment^ _0) - : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) -{ - __ownsNativeInstance = true; - if (ReferenceEquals(_0, nullptr)) - throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - auto &arg0 = *(::CppSharp::CppParser::AST::InlineContentComment*)_0->NativePtr; - NativePtr = new ::CppSharp::CppParser::AST::InlineContentComment(arg0); -} - -CppSharp::Parser::AST::ParagraphComment::ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native) - : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)native) -{ -} - -CppSharp::Parser::AST::ParagraphComment^ CppSharp::Parser::AST::ParagraphComment::__CreateInstance(::System::IntPtr native) -{ - return gcnew ::CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*) native.ToPointer()); -} - -CppSharp::Parser::AST::ParagraphComment::~ParagraphComment() -{ - if (NativePtr) - { - auto __nativePtr = NativePtr; - NativePtr = 0; - delete (::CppSharp::CppParser::AST::ParagraphComment*) __nativePtr; - } -} - -CppSharp::Parser::AST::ParagraphComment::ParagraphComment() - : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) -{ - __ownsNativeInstance = true; - NativePtr = new ::CppSharp::CppParser::AST::ParagraphComment(); -} - -CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::ParagraphComment::getContent(unsigned int i) -{ - auto __ret = ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i); - if (__ret == nullptr) return nullptr; - return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)__ret); -} - -void CppSharp::Parser::AST::ParagraphComment::addContent(CppSharp::Parser::AST::InlineContentComment^ s) -{ - if (ReferenceEquals(s, nullptr)) - throw gcnew ::System::ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - auto arg0 = (::CppSharp::CppParser::AST::InlineContentComment*)s->NativePtr; - ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->addContent(arg0); -} - -void CppSharp::Parser::AST::ParagraphComment::clearContent() -{ - ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->clearContent(); -} - -CppSharp::Parser::AST::ParagraphComment::ParagraphComment(CppSharp::Parser::AST::ParagraphComment^ _0) - : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) -{ - __ownsNativeInstance = true; - if (ReferenceEquals(_0, nullptr)) - throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - auto &arg0 = *(::CppSharp::CppParser::AST::ParagraphComment*)_0->NativePtr; - NativePtr = new ::CppSharp::CppParser::AST::ParagraphComment(arg0); -} - -unsigned int CppSharp::Parser::AST::ParagraphComment::ContentCount::get() -{ - auto __ret = ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContentCount(); - return __ret; -} - -bool CppSharp::Parser::AST::ParagraphComment::IsWhitespace::get() -{ - return ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->IsWhitespace; -} - -void CppSharp::Parser::AST::ParagraphComment::IsWhitespace::set(bool value) -{ - ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->IsWhitespace = value; -} - CppSharp::Parser::AST::InlineCommandComment::Argument::Argument(::CppSharp::CppParser::AST::InlineCommandComment::Argument* native) : __ownsNativeInstance(false) { diff --git a/src/CppParser/Bindings/CLI/AST.h b/src/CppParser/Bindings/CLI/AST.h index 5b3e9450..b00fdc51 100644 --- a/src/CppParser/Bindings/CLI/AST.h +++ b/src/CppParser/Bindings/CLI/AST.h @@ -2569,6 +2569,51 @@ namespace CppSharp void clearBlocks(); }; + public ref class InlineContentComment : CppSharp::Parser::AST::Comment + { + public: + + InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native); + static InlineContentComment^ __CreateInstance(::System::IntPtr native); + InlineContentComment(); + + InlineContentComment(CppSharp::Parser::AST::CommentKind Kind); + + InlineContentComment(CppSharp::Parser::AST::InlineContentComment^ _0); + + ~InlineContentComment(); + }; + + public ref class ParagraphComment : CppSharp::Parser::AST::BlockContentComment + { + public: + + ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native); + static ParagraphComment^ __CreateInstance(::System::IntPtr native); + ParagraphComment(); + + ParagraphComment(CppSharp::Parser::AST::ParagraphComment^ _0); + + ~ParagraphComment(); + + property unsigned int ContentCount + { + unsigned int get(); + } + + property bool IsWhitespace + { + bool get(); + void set(bool); + } + + CppSharp::Parser::AST::InlineContentComment^ getContent(unsigned int i); + + void addContent(CppSharp::Parser::AST::InlineContentComment^ s); + + void clearContent(); + }; + public ref class BlockCommandComment : CppSharp::Parser::AST::BlockContentComment { public: @@ -2623,6 +2668,12 @@ namespace CppSharp void set(unsigned int); } + property CppSharp::Parser::AST::ParagraphComment^ ParagraphComment + { + CppSharp::Parser::AST::ParagraphComment^ get(); + void set(CppSharp::Parser::AST::ParagraphComment^); + } + CppSharp::Parser::AST::BlockCommandComment::Argument^ getArguments(unsigned int i); void addArguments(CppSharp::Parser::AST::BlockCommandComment::Argument^ s); @@ -2748,51 +2799,6 @@ namespace CppSharp } }; - public ref class InlineContentComment : CppSharp::Parser::AST::Comment - { - public: - - InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native); - static InlineContentComment^ __CreateInstance(::System::IntPtr native); - InlineContentComment(); - - InlineContentComment(CppSharp::Parser::AST::CommentKind Kind); - - InlineContentComment(CppSharp::Parser::AST::InlineContentComment^ _0); - - ~InlineContentComment(); - }; - - public ref class ParagraphComment : CppSharp::Parser::AST::BlockContentComment - { - public: - - ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native); - static ParagraphComment^ __CreateInstance(::System::IntPtr native); - ParagraphComment(); - - ParagraphComment(CppSharp::Parser::AST::ParagraphComment^ _0); - - ~ParagraphComment(); - - property unsigned int ContentCount - { - unsigned int get(); - } - - property bool IsWhitespace - { - bool get(); - void set(bool); - } - - CppSharp::Parser::AST::InlineContentComment^ getContent(unsigned int i); - - void addContent(CppSharp::Parser::AST::InlineContentComment^ s); - - void clearContent(); - }; - public ref class InlineCommandComment : CppSharp::Parser::AST::InlineContentComment { public: diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs index 50ad6972..3afdaa88 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs @@ -10543,203 +10543,55 @@ namespace CppSharp } } - public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 20)] + [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ENS1_11CommentKindE")] + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ENS1_11CommentKindE")] internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ERKS2_")] - internal static extern void cctor_3(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentD2Ev")] - internal static extern void dtor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12getArgumentsEj")] - internal static extern void getArguments_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12addArgumentsERNS2_8ArgumentE")] - internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment14clearArgumentsEv")] - internal static extern void clearArguments_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment17getArgumentsCountEv")] - internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); - } - - public unsafe partial class Argument : IDisposable - { - [StructLayout(LayoutKind.Explicit, Size = 12)] - public partial struct Internal - { - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev")] - internal static extern void ctor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2ERKS3_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentD2Ev")] - internal static extern void dtor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7getTextEv")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7setTextEPKc")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); - } - - public global::System.IntPtr __Instance { get; protected set; } - - protected int __PointerAdjustment; - public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); - protected void*[] __OriginalVTables; - - protected bool __ownsNativeInstance; - - public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) - { - return new Argument(native.ToPointer(), skipVTables); - } - - public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) - { - return new Argument(native, skipVTables); - } - - private static void* __CopyValue(Argument.Internal native) - { - var ret = Marshal.AllocHGlobal(12); - CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); - return ret.ToPointer(); - } - - private Argument(Argument.Internal native, bool skipVTables = false) - : this(__CopyValue(native), skipVTables) - { - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - } - - protected Argument(void* native, bool skipVTables = false) - { - if (native == null) - return; - __Instance = new global::System.IntPtr(native); - } - - public Argument() - { - __Instance = Marshal.AllocHGlobal(12); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - Internal.ctor_0((__Instance + __PointerAdjustment)); - } - - public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) - { - __Instance = Marshal.AllocHGlobal(12); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); - } - - public void Dispose() - { - Dispose(disposing: true); - } - - protected virtual void Dispose(bool disposing) - { - CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment)); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public string Text - { - get - { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); - } - - set - { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); - } - } + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); } - public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new BlockCommandComment(native.ToPointer(), skipVTables); + return new InlineContentComment(native.ToPointer(), skipVTables); } - public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) { - return new BlockCommandComment(native, skipVTables); + return new InlineContentComment(native, skipVTables); } - private static void* __CopyValue(BlockCommandComment.Internal native) + private static void* __CopyValue(InlineContentComment.Internal native) { - var ret = Marshal.AllocHGlobal(20); - CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(4); + *(InlineContentComment.Internal*) ret = native; return ret.ToPointer(); } - private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) + private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected BlockCommandComment(void* native, bool skipVTables = false) + protected InlineContentComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10748,154 +10600,107 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public BlockCommandComment() + public InlineContentComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; var arg0 = Kind; Internal.ctor_1((__Instance + __PointerAdjustment), arg0); } - public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_3((__Instance + __PointerAdjustment), arg0); - } - - protected override void Dispose(bool disposing) - { - CppSharp.Parser.AST.Comment __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment)); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) - { - var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); - Internal.getArguments_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), i); - return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - } - - public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearArguments() - { - Internal.clearArguments_0((__Instance + __PointerAdjustment)); - } - - public uint ArgumentsCount - { - get - { - var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public uint CommandId - { - get - { - return ((Internal*) __Instance)->CommandId; - } - - set - { - ((Internal*) __Instance)->CommandId = value; - } + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); } } - public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 28)] + [StructLayout(LayoutKind.Explicit, Size = 20)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public uint CommandId; - - [FieldOffset(20)] - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; - - [FieldOffset(24)] - public uint ParamIndex; + public byte IsWhitespace; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); - } - public enum PassDirection : uint - { - In = 0, - Out = 1, - InOut = 2 + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10getContentEj")] + internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10addContentERPNS1_20InlineContentCommentE")] + internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment12clearContentEv")] + internal static extern void clearContent_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); } - public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParamCommandComment(native.ToPointer(), skipVTables); + return new ParagraphComment(native.ToPointer(), skipVTables); } - public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) { - return new ParamCommandComment(native, skipVTables); + return new ParagraphComment(native, skipVTables); } - private static void* __CopyValue(ParamCommandComment.Internal native) + private static void* __CopyValue(ParagraphComment.Internal native) { - var ret = Marshal.AllocHGlobal(28); - CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) + private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParamCommandComment(void* native, bool skipVTables = false) + protected ParagraphComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10904,19 +10709,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParamCommandComment() + public ParagraphComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(28); + __Instance = Marshal.AllocHGlobal(20); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(28); + __Instance = Marshal.AllocHGlobal(20); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -10934,36 +10739,56 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) { - get - { - return ((Internal*) __Instance)->Direction; - } + var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.InlineContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); + return __result0; + } - set + public void addContent(CppSharp.Parser.AST.InlineContentComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addContent_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearContent() + { + Internal.clearContent_0((__Instance + __PointerAdjustment)); + } + + public uint ContentCount + { + get { - ((Internal*) __Instance)->Direction = value; + var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public uint ParamIndex + public bool IsWhitespace { get { - return ((Internal*) __Instance)->ParamIndex; + return ((Internal*) __Instance)->IsWhitespace != 0; } set { - ((Internal*) __Instance)->ParamIndex = value; + ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); } } } - public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 24)] public new partial struct Internal { [FieldOffset(0)] @@ -10972,67 +10797,195 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ENS1_11CommentKindE")] + internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11getPositionEj")] - internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12getArgumentsEj")] + internal static extern void getArguments_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11addPositionERj")] - internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12addArgumentsERNS2_8ArgumentE")] + internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment13clearPositionEv")] - internal static extern void clearPosition_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment14clearArgumentsEv")] + internal static extern void clearArguments_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] - internal static extern uint getPositionCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment17getArgumentsCountEv")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); } - public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public unsafe partial class Argument : IDisposable { - return new TParamCommandComment(native.ToPointer(), skipVTables); + [StructLayout(LayoutKind.Explicit, Size = 12)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2ERKS3_")] + internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7getTextEv")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + + protected int __PointerAdjustment; + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + protected void*[] __OriginalVTables; + + protected bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new Argument(native.ToPointer(), skipVTables); + } + + public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) + { + return new Argument(native, skipVTables); + } + + private static void* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(12); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return ret.ToPointer(); + } + + private Argument(Argument.Internal native, bool skipVTables = false) + : this(__CopyValue(native), skipVTables) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(void* native, bool skipVTables = false) + { + if (native == null) + return; + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(12); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0((__Instance + __PointerAdjustment)); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(12); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment)); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); + } + } } - public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new BlockCommandComment(native.ToPointer(), skipVTables); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) { - return new TParamCommandComment(native, skipVTables); + return new BlockCommandComment(native, skipVTables); } - private static void* __CopyValue(TParamCommandComment.Internal native) + private static void* __CopyValue(BlockCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) + private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected TParamCommandComment(void* native, bool skipVTables = false) + protected BlockCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11041,19 +10994,29 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public TParamCommandComment() + public BlockCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(24); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(24); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11071,95 +11034,135 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public uint getPosition(uint i) + public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) { - var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); - return __ret; + var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); + Internal.getArguments_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); } - public void addPosition(ref uint s) + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) { - fixed (uint* __refParamPtr0 = &s) + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0((__Instance + __PointerAdjustment)); + } + + public uint ArgumentsCount + { + get { - var arg0 = __refParamPtr0; - Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public void clearPosition() + public uint CommandId { - Internal.clearPosition_0((__Instance + __PointerAdjustment)); + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } } - public uint PositionCount + public CppSharp.Parser.AST.ParagraphComment ParagraphComment { get { - var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); - return __ret; + CppSharp.Parser.AST.ParagraphComment __result0; + if (((Internal*) __Instance)->ParagraphComment == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap.ContainsKey(((Internal*) __Instance)->ParagraphComment)) + __result0 = (CppSharp.Parser.AST.ParagraphComment) CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap[((Internal*) __Instance)->ParagraphComment]; + else __result0 = CppSharp.Parser.AST.ParagraphComment.__CreateInstance(((Internal*) __Instance)->ParagraphComment); + return __result0; + } + + set + { + ((Internal*) __Instance)->ParagraphComment = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; } } } - public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 16)] + [StructLayout(LayoutKind.Explicit, Size = 32)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + + [FieldOffset(24)] + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; + + [FieldOffset(28)] + public uint ParamIndex; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); + } - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7getTextEv")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7setTextEPKc")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + public enum PassDirection : uint + { + In = 0, + Out = 1, + InOut = 2 } - public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); + return new ParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native, skipVTables); + return new ParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockLineComment.Internal native) + private static void* __CopyValue(ParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(16); - CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockLineComment(void* native, bool skipVTables = false) + protected ParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11168,19 +11171,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockLineComment() + public ParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(16); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(16); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11198,26 +11201,36 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public string Text + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction { get { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); + return ((Internal*) __Instance)->Direction; } set { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; } } } - public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 36)] public new partial struct Internal { [FieldOffset(0)] @@ -11226,67 +11239,70 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8getLinesEj")] - internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11getPositionEj")] + internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8addLinesERPNS1_24VerbatimBlockLineCommentE")] - internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11addPositionERj")] + internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment10clearLinesEv")] - internal static extern void clearLines_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment13clearPositionEv")] + internal static extern void clearPosition_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment13getLinesCountEv")] - internal static extern uint getLinesCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); } - public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockComment(native.ToPointer(), skipVTables); + return new TParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockComment(native, skipVTables); + return new TParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockComment.Internal native) + private static void* __CopyValue(TParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(36); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) + private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockComment(void* native, bool skipVTables = false) + protected TParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11295,25 +11311,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockComment() + public TParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11325,102 +11341,95 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + public uint getPosition(uint i) { - var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.VerbatimBlockLineComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); - return __result0; + var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); + return __ret; } - public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + public void addPosition(ref uint s) { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + fixed (uint* __refParamPtr0 = &s) + { + var arg0 = __refParamPtr0; + Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + } } - public void clearLines() + public void clearPosition() { - Internal.clearLines_0((__Instance + __PointerAdjustment)); + Internal.clearPosition_0((__Instance + __PointerAdjustment)); } - public uint LinesCount + public uint PositionCount { get { - var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); return __ret; } } } - public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 16)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7getTextEv")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7getTextEv")] internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7setTextEPKc")] internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimLineComment(native.ToPointer(), skipVTables); + return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } - public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) { - return new VerbatimLineComment(native, skipVTables); + return new VerbatimBlockLineComment(native, skipVTables); } - private static void* __CopyValue(VerbatimLineComment.Internal native) + private static void* __CopyValue(VerbatimBlockLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimLineComment(void* native, bool skipVTables = false) + protected VerbatimBlockLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11429,19 +11438,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimLineComment() + public VerbatimBlockLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11476,55 +11485,81 @@ namespace CppSharp } } - public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 4)] + [StructLayout(LayoutKind.Explicit, Size = 36)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ENS1_11CommentKindE")] - internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] + internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] - internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8getLinesEj")] + internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8addLinesERPNS1_24VerbatimBlockLineCommentE")] + internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment10clearLinesEv")] + internal static extern void clearLines_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment13getLinesCountEv")] + internal static extern uint getLinesCount_0(global::System.IntPtr instance); } - public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new InlineContentComment(native.ToPointer(), skipVTables); + return new VerbatimBlockComment(native.ToPointer(), skipVTables); } - public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) { - return new InlineContentComment(native, skipVTables); + return new VerbatimBlockComment(native, skipVTables); } - private static void* __CopyValue(InlineContentComment.Internal native) + private static void* __CopyValue(VerbatimBlockComment.Internal native) { - var ret = Marshal.AllocHGlobal(4); - *(InlineContentComment.Internal*) ret = native; + var ret = Marshal.AllocHGlobal(36); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) + private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected InlineContentComment(void* native, bool skipVTables = false) + protected VerbatimBlockComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11533,107 +11568,135 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public InlineContentComment() + public VerbatimBlockComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - var arg0 = Kind; - Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } - public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) - : this((void*) null) + protected override void Dispose(bool disposing) { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment)); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.VerbatimBlockLineComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); + return __result0; + } + + public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearLines() + { + Internal.clearLines_0((__Instance + __PointerAdjustment)); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + return __ret; + } } } - public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 20)] + [StructLayout(LayoutKind.Explicit, Size = 36)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public byte IsWhitespace; + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10getContentEj")] - internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10addContentERPNS1_20InlineContentCommentE")] - internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment12clearContentEv")] - internal static extern void clearContent_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7getTextEv")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] - internal static extern uint getContentCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParagraphComment(native.ToPointer(), skipVTables); + return new VerbatimLineComment(native.ToPointer(), skipVTables); } - public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) { - return new ParagraphComment(native, skipVTables); + return new VerbatimLineComment(native, skipVTables); } - private static void* __CopyValue(ParagraphComment.Internal native) + private static void* __CopyValue(VerbatimLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(20); - CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(36); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) + private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParagraphComment(void* native, bool skipVTables = false) + protected VerbatimLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11642,25 +11705,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParagraphComment() + public VerbatimLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11672,49 +11735,19 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.InlineContentComment getContent(uint i) - { - var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.InlineContentComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); - return __result0; - } - - public void addContent(CppSharp.Parser.AST.InlineContentComment s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addContent_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearContent() - { - Internal.clearContent_0((__Instance + __PointerAdjustment)); - } - - public uint ContentCount - { - get - { - var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public bool IsWhitespace + public string Text { get { - return ((Internal*) __Instance)->IsWhitespace != 0; + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); } set { - ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); } } } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs index dbf8d7c8..dc66d72f 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs @@ -10543,7 +10543,93 @@ namespace CppSharp } } - public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 4)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QAE@XZ")] + internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QAE@W4CommentKind@123@@Z")] + internal static extern global::System.IntPtr ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new InlineContentComment(native.ToPointer(), skipVTables); + } + + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) + { + return new InlineContentComment(native, skipVTables); + } + + private static void* __CopyValue(InlineContentComment.Internal native) + { + var ret = Marshal.AllocHGlobal(4); + *(InlineContentComment.Internal*) ret = native; + return ret.ToPointer(); + } + + private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) + : this(__CopyValue(native), skipVTables) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineContentComment(void* native, bool skipVTables = false) + : base((void*) null) + { + __PointerAdjustment = 0; + if (native == null) + return; + __Instance = new global::System.IntPtr(native); + } + + public InlineContentComment() + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0((__Instance + __PointerAdjustment)); + } + + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + } + + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + } + } + + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { [StructLayout(LayoutKind.Explicit, Size = 20)] public new partial struct Internal @@ -10551,9 +10637,169 @@ namespace CppSharp [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public byte IsWhitespace; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QAE@XZ")] + internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] + internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??1ParagraphComment@AST@CppParser@CppSharp@@QAE@XZ")] + internal static extern void dtor_0(global::System.IntPtr instance, int delete); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getContent@ParagraphComment@AST@CppParser@CppSharp@@QAEPAVInlineContentComment@234@I@Z")] + internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?addContent@ParagraphComment@AST@CppParser@CppSharp@@QAEXAAPAVInlineContentComment@234@@Z")] + internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?clearContent@ParagraphComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearContent_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getContentCount@ParagraphComment@AST@CppParser@CppSharp@@QAEIXZ")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); + } + + public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new ParagraphComment(native.ToPointer(), skipVTables); + } + + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) + { + return new ParagraphComment(native, skipVTables); + } + + private static void* __CopyValue(ParagraphComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return ret.ToPointer(); + } + + private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) + : this(__CopyValue(native), skipVTables) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParagraphComment(void* native, bool skipVTables = false) + : base((void*) null) + { + __PointerAdjustment = 0; + if (native == null) + return; + __Instance = new global::System.IntPtr(native); + } + + public ParagraphComment() + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0((__Instance + __PointerAdjustment)); + } + + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + } + + protected override void Dispose(bool disposing) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment), 0); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) + { + var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.InlineContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); + return __result0; + } + + public void addContent(CppSharp.Parser.AST.InlineContentComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addContent_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearContent() + { + Internal.clearContent_0((__Instance + __PointerAdjustment)); + } + + public uint ContentCount + { + get + { + var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); + return __ret; + } + } + + public bool IsWhitespace + { + get + { + return ((Internal*) __Instance)->IsWhitespace != 0; + } + + set + { + ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); + } + } + } + + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 24)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QAE@XZ")] @@ -10567,7 +10813,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] - internal static extern global::System.IntPtr cctor_3(global::System.IntPtr instance, global::System.IntPtr _0); + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -10727,8 +10973,8 @@ namespace CppSharp private static void* __CopyValue(BlockCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(20); - CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -10751,7 +10997,7 @@ namespace CppSharp public BlockCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(24); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); @@ -10760,7 +11006,7 @@ namespace CppSharp public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(24); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; var arg0 = Kind; @@ -10770,13 +11016,13 @@ namespace CppSharp public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(24); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_3((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -10829,11 +11075,29 @@ namespace CppSharp ((Internal*) __Instance)->CommandId = value; } } + + public CppSharp.Parser.AST.ParagraphComment ParagraphComment + { + get + { + CppSharp.Parser.AST.ParagraphComment __result0; + if (((Internal*) __Instance)->ParagraphComment == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap.ContainsKey(((Internal*) __Instance)->ParagraphComment)) + __result0 = (CppSharp.Parser.AST.ParagraphComment) CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap[((Internal*) __Instance)->ParagraphComment]; + else __result0 = CppSharp.Parser.AST.ParagraphComment.__CreateInstance(((Internal*) __Instance)->ParagraphComment); + return __result0; + } + + set + { + ((Internal*) __Instance)->ParagraphComment = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; + } + } } public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 28)] + [StructLayout(LayoutKind.Explicit, Size = 32)] public new partial struct Internal { [FieldOffset(0)] @@ -10842,10 +11106,13 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; - [FieldOffset(20)] - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; [FieldOffset(24)] + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; + + [FieldOffset(28)] public uint ParamIndex; [SuppressUnmanagedCodeSecurity] @@ -10856,7 +11123,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParamCommandComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] - internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -10883,8 +11150,8 @@ namespace CppSharp private static void* __CopyValue(ParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(28); - CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -10907,7 +11174,7 @@ namespace CppSharp public ParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(28); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); @@ -10916,13 +11183,13 @@ namespace CppSharp public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(28); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -10963,7 +11230,7 @@ namespace CppSharp public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 36)] public new partial struct Internal { [FieldOffset(0)] @@ -10972,6 +11239,9 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TParamCommandComment@AST@CppParser@CppSharp@@QAE@XZ")] @@ -11020,7 +11290,7 @@ namespace CppSharp private static void* __CopyValue(TParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); + var ret = Marshal.AllocHGlobal(36); CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -11044,7 +11314,7 @@ namespace CppSharp public TParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); @@ -11053,7 +11323,7 @@ namespace CppSharp public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11217,7 +11487,7 @@ namespace CppSharp public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 36)] public new partial struct Internal { [FieldOffset(0)] @@ -11226,6 +11496,9 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QAE@XZ")] @@ -11274,7 +11547,7 @@ namespace CppSharp private static void* __CopyValue(VerbatimBlockComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); + var ret = Marshal.AllocHGlobal(36); CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -11298,7 +11571,7 @@ namespace CppSharp public VerbatimBlockComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); @@ -11307,7 +11580,7 @@ namespace CppSharp public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(36); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11361,7 +11634,7 @@ namespace CppSharp public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 44)] + [StructLayout(LayoutKind.Explicit, Size = 48)] public new partial struct Internal { [FieldOffset(0)] @@ -11370,6 +11643,9 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VerbatimLineComment@AST@CppParser@CppSharp@@QAE@XZ")] @@ -11408,7 +11684,7 @@ namespace CppSharp private static void* __CopyValue(VerbatimLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(44); + var ret = Marshal.AllocHGlobal(48); CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -11432,7 +11708,7 @@ namespace CppSharp public VerbatimLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(44); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); @@ -11441,7 +11717,7 @@ namespace CppSharp public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(44); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11476,249 +11752,6 @@ namespace CppSharp } } - public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable - { - [StructLayout(LayoutKind.Explicit, Size = 4)] - public new partial struct Internal - { - [FieldOffset(0)] - public CppSharp.Parser.AST.CommentKind Kind; - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QAE@XZ")] - internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QAE@W4CommentKind@123@@Z")] - internal static extern global::System.IntPtr ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] - internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); - } - - public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) - { - return new InlineContentComment(native.ToPointer(), skipVTables); - } - - public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) - { - return new InlineContentComment(native, skipVTables); - } - - private static void* __CopyValue(InlineContentComment.Internal native) - { - var ret = Marshal.AllocHGlobal(4); - *(InlineContentComment.Internal*) ret = native; - return ret.ToPointer(); - } - - private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) - : this(__CopyValue(native), skipVTables) - { - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - } - - protected InlineContentComment(void* native, bool skipVTables = false) - : base((void*) null) - { - __PointerAdjustment = 0; - if (native == null) - return; - __Instance = new global::System.IntPtr(native); - } - - public InlineContentComment() - : this((void*) null) - { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - Internal.ctor_0((__Instance + __PointerAdjustment)); - } - - public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) - : this((void*) null) - { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - var arg0 = Kind; - Internal.ctor_1((__Instance + __PointerAdjustment), arg0); - } - - public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) - : this((void*) null) - { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); - } - } - - public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable - { - [StructLayout(LayoutKind.Explicit, Size = 20)] - public new partial struct Internal - { - [FieldOffset(0)] - public CppSharp.Parser.AST.CommentKind Kind; - - [FieldOffset(4)] - public byte IsWhitespace; - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QAE@XZ")] - internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] - internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??1ParagraphComment@AST@CppParser@CppSharp@@QAE@XZ")] - internal static extern void dtor_0(global::System.IntPtr instance, int delete); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="?getContent@ParagraphComment@AST@CppParser@CppSharp@@QAEPAVInlineContentComment@234@I@Z")] - internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="?addContent@ParagraphComment@AST@CppParser@CppSharp@@QAEXAAPAVInlineContentComment@234@@Z")] - internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="?clearContent@ParagraphComment@AST@CppParser@CppSharp@@QAEXXZ")] - internal static extern void clearContent_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="?getContentCount@ParagraphComment@AST@CppParser@CppSharp@@QAEIXZ")] - internal static extern uint getContentCount_0(global::System.IntPtr instance); - } - - public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) - { - return new ParagraphComment(native.ToPointer(), skipVTables); - } - - public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) - { - return new ParagraphComment(native, skipVTables); - } - - private static void* __CopyValue(ParagraphComment.Internal native) - { - var ret = Marshal.AllocHGlobal(20); - CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); - return ret.ToPointer(); - } - - private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) - : this(__CopyValue(native), skipVTables) - { - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - } - - protected ParagraphComment(void* native, bool skipVTables = false) - : base((void*) null) - { - __PointerAdjustment = 0; - if (native == null) - return; - __Instance = new global::System.IntPtr(native); - } - - public ParagraphComment() - : this((void*) null) - { - __Instance = Marshal.AllocHGlobal(20); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - Internal.ctor_0((__Instance + __PointerAdjustment)); - } - - public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) - : this((void*) null) - { - __Instance = Marshal.AllocHGlobal(20); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); - } - - protected override void Dispose(bool disposing) - { - CppSharp.Parser.AST.Comment __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment), 0); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public CppSharp.Parser.AST.InlineContentComment getContent(uint i) - { - var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.InlineContentComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); - return __result0; - } - - public void addContent(CppSharp.Parser.AST.InlineContentComment s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addContent_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearContent() - { - Internal.clearContent_0((__Instance + __PointerAdjustment)); - } - - public uint ContentCount - { - get - { - var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public bool IsWhitespace - { - get - { - return ((Internal*) __Instance)->IsWhitespace != 0; - } - - set - { - ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); - } - } - } - public unsafe partial class InlineCommandComment : CppSharp.Parser.AST.InlineContentComment, IDisposable { [StructLayout(LayoutKind.Explicit, Size = 20)] diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs index 0df4809f..40acbf2d 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs @@ -10542,203 +10542,55 @@ namespace CppSharp } } - public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ENS1_11CommentKindE")] + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ENS1_11CommentKindE")] internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ERKS2_")] - internal static extern void cctor_3(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentD2Ev")] - internal static extern void dtor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12getArgumentsEj")] - internal static extern void getArguments_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12addArgumentsERNS2_8ArgumentE")] - internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment14clearArgumentsEv")] - internal static extern void clearArguments_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment17getArgumentsCountEv")] - internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); - } - - public unsafe partial class Argument : IDisposable - { - [StructLayout(LayoutKind.Explicit, Size = 24)] - public partial struct Internal - { - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev")] - internal static extern void ctor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2ERKS3_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentD2Ev")] - internal static extern void dtor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7getTextEv")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7setTextEPKc")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); - } - - public global::System.IntPtr __Instance { get; protected set; } - - protected int __PointerAdjustment; - public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); - protected void*[] __OriginalVTables; - - protected bool __ownsNativeInstance; - - public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) - { - return new Argument(native.ToPointer(), skipVTables); - } - - public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) - { - return new Argument(native, skipVTables); - } - - private static void* __CopyValue(Argument.Internal native) - { - var ret = Marshal.AllocHGlobal(24); - CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); - return ret.ToPointer(); - } - - private Argument(Argument.Internal native, bool skipVTables = false) - : this(__CopyValue(native), skipVTables) - { - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - } - - protected Argument(void* native, bool skipVTables = false) - { - if (native == null) - return; - __Instance = new global::System.IntPtr(native); - } - - public Argument() - { - __Instance = Marshal.AllocHGlobal(24); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - Internal.ctor_0((__Instance + __PointerAdjustment)); - } - - public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) - { - __Instance = Marshal.AllocHGlobal(24); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); - } - - public void Dispose() - { - Dispose(disposing: true); - } - - protected virtual void Dispose(bool disposing) - { - CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment)); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public string Text - { - get - { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); - } - - set - { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); - } - } + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); } - public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new BlockCommandComment(native.ToPointer(), skipVTables); + return new InlineContentComment(native.ToPointer(), skipVTables); } - public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) { - return new BlockCommandComment(native, skipVTables); + return new InlineContentComment(native, skipVTables); } - private static void* __CopyValue(BlockCommandComment.Internal native) + private static void* __CopyValue(InlineContentComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(4); + *(InlineContentComment.Internal*) ret = native; return ret.ToPointer(); } - private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) + private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected BlockCommandComment(void* native, bool skipVTables = false) + protected InlineContentComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10747,154 +10599,107 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public BlockCommandComment() + public InlineContentComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; var arg0 = Kind; Internal.ctor_1((__Instance + __PointerAdjustment), arg0); } - public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_3((__Instance + __PointerAdjustment), arg0); - } - - protected override void Dispose(bool disposing) - { - CppSharp.Parser.AST.Comment __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment)); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) - { - var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); - Internal.getArguments_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), i); - return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - } - - public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearArguments() - { - Internal.clearArguments_0((__Instance + __PointerAdjustment)); - } - - public uint ArgumentsCount - { - get - { - var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public uint CommandId - { - get - { - return ((Internal*) __Instance)->CommandId; - } - - set - { - ((Internal*) __Instance)->CommandId = value; - } + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); } } - public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 40)] + [StructLayout(LayoutKind.Explicit, Size = 32)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public uint CommandId; - - [FieldOffset(32)] - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; - - [FieldOffset(36)] - public uint ParamIndex; + public byte IsWhitespace; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); - } - public enum PassDirection : uint - { - In = 0, - Out = 1, - InOut = 2 + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10getContentEj")] + internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10addContentERPNS1_20InlineContentCommentE")] + internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment12clearContentEv")] + internal static extern void clearContent_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); } - public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParamCommandComment(native.ToPointer(), skipVTables); + return new ParagraphComment(native.ToPointer(), skipVTables); } - public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) { - return new ParamCommandComment(native, skipVTables); + return new ParagraphComment(native, skipVTables); } - private static void* __CopyValue(ParamCommandComment.Internal native) + private static void* __CopyValue(ParagraphComment.Internal native) { - var ret = Marshal.AllocHGlobal(40); - CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) + private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParamCommandComment(void* native, bool skipVTables = false) + protected ParagraphComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10903,19 +10708,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParamCommandComment() + public ParagraphComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -10933,36 +10738,56 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) { - get - { - return ((Internal*) __Instance)->Direction; - } + var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.InlineContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); + return __result0; + } - set + public void addContent(CppSharp.Parser.AST.InlineContentComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addContent_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearContent() + { + Internal.clearContent_0((__Instance + __PointerAdjustment)); + } + + public uint ContentCount + { + get { - ((Internal*) __Instance)->Direction = value; + var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public uint ParamIndex + public bool IsWhitespace { get { - return ((Internal*) __Instance)->ParamIndex; + return ((Internal*) __Instance)->IsWhitespace != 0; } set { - ((Internal*) __Instance)->ParamIndex = value; + ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); } } } - public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 40)] public new partial struct Internal { [FieldOffset(0)] @@ -10971,67 +10796,195 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ENS1_11CommentKindE")] + internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11getPositionEj")] - internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12getArgumentsEj")] + internal static extern void getArguments_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11addPositionERj")] - internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12addArgumentsERNS2_8ArgumentE")] + internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment13clearPositionEv")] - internal static extern void clearPosition_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment14clearArgumentsEv")] + internal static extern void clearArguments_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] - internal static extern uint getPositionCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment17getArgumentsCountEv")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); } - public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public unsafe partial class Argument : IDisposable { - return new TParamCommandComment(native.ToPointer(), skipVTables); + [StructLayout(LayoutKind.Explicit, Size = 24)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2ERKS3_")] + internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7getTextEv")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + + protected int __PointerAdjustment; + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + protected void*[] __OriginalVTables; + + protected bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new Argument(native.ToPointer(), skipVTables); + } + + public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) + { + return new Argument(native, skipVTables); + } + + private static void* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return ret.ToPointer(); + } + + private Argument(Argument.Internal native, bool skipVTables = false) + : this(__CopyValue(native), skipVTables) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(void* native, bool skipVTables = false) + { + if (native == null) + return; + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0((__Instance + __PointerAdjustment)); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment)); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); + } + } } - public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new BlockCommandComment(native.ToPointer(), skipVTables); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) { - return new TParamCommandComment(native, skipVTables); + return new BlockCommandComment(native, skipVTables); } - private static void* __CopyValue(TParamCommandComment.Internal native) + private static void* __CopyValue(BlockCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) + private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected TParamCommandComment(void* native, bool skipVTables = false) + protected BlockCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11040,19 +10993,29 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public TParamCommandComment() + public BlockCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11070,95 +11033,135 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public uint getPosition(uint i) + public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) { - var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); - return __ret; + var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); + Internal.getArguments_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); } - public void addPosition(ref uint s) + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) { - fixed (uint* __refParamPtr0 = &s) + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0((__Instance + __PointerAdjustment)); + } + + public uint ArgumentsCount + { + get { - var arg0 = __refParamPtr0; - Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public void clearPosition() + public uint CommandId { - Internal.clearPosition_0((__Instance + __PointerAdjustment)); + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } } - public uint PositionCount + public CppSharp.Parser.AST.ParagraphComment ParagraphComment { get { - var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); - return __ret; + CppSharp.Parser.AST.ParagraphComment __result0; + if (((Internal*) __Instance)->ParagraphComment == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap.ContainsKey(((Internal*) __Instance)->ParagraphComment)) + __result0 = (CppSharp.Parser.AST.ParagraphComment) CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap[((Internal*) __Instance)->ParagraphComment]; + else __result0 = CppSharp.Parser.AST.ParagraphComment.__CreateInstance(((Internal*) __Instance)->ParagraphComment); + return __result0; + } + + set + { + ((Internal*) __Instance)->ParagraphComment = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; } } } - public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 48)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + + [FieldOffset(40)] + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; + + [FieldOffset(44)] + public uint ParamIndex; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); + } - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7getTextEv")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7setTextEPKc")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + public enum PassDirection : uint + { + In = 0, + Out = 1, + InOut = 2 } - public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); + return new ParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native, skipVTables); + return new ParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockLineComment.Internal native) + private static void* __CopyValue(ParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(48); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockLineComment(void* native, bool skipVTables = false) + protected ParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11167,19 +11170,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockLineComment() + public ParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11197,26 +11200,36 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public string Text + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction { get { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); + return ((Internal*) __Instance)->Direction; } set { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; } } } - public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] @@ -11225,67 +11238,70 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8getLinesEj")] - internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11getPositionEj")] + internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8addLinesERPNS1_24VerbatimBlockLineCommentE")] - internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11addPositionERj")] + internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment10clearLinesEv")] - internal static extern void clearLines_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment13clearPositionEv")] + internal static extern void clearPosition_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment13getLinesCountEv")] - internal static extern uint getLinesCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); } - public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockComment(native.ToPointer(), skipVTables); + return new TParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockComment(native, skipVTables); + return new TParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockComment.Internal native) + private static void* __CopyValue(TParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) + private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockComment(void* native, bool skipVTables = false) + protected TParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11294,25 +11310,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockComment() + public TParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11324,102 +11340,95 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + public uint getPosition(uint i) { - var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.VerbatimBlockLineComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); - return __result0; + var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); + return __ret; } - public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + public void addPosition(ref uint s) { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + fixed (uint* __refParamPtr0 = &s) + { + var arg0 = __refParamPtr0; + Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + } } - public void clearLines() + public void clearPosition() { - Internal.clearLines_0((__Instance + __PointerAdjustment)); + Internal.clearPosition_0((__Instance + __PointerAdjustment)); } - public uint LinesCount + public uint PositionCount { get { - var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); return __ret; } } } - public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 32)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7getTextEv")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7getTextEv")] internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7setTextEPKc")] internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimLineComment(native.ToPointer(), skipVTables); + return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } - public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) { - return new VerbatimLineComment(native, skipVTables); + return new VerbatimBlockLineComment(native, skipVTables); } - private static void* __CopyValue(VerbatimLineComment.Internal native) + private static void* __CopyValue(VerbatimBlockLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimLineComment(void* native, bool skipVTables = false) + protected VerbatimBlockLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11428,19 +11437,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimLineComment() + public VerbatimBlockLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11475,55 +11484,81 @@ namespace CppSharp } } - public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 4)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ENS1_11CommentKindE")] - internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] + internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] - internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8getLinesEj")] + internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8addLinesERPNS1_24VerbatimBlockLineCommentE")] + internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment10clearLinesEv")] + internal static extern void clearLines_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment13getLinesCountEv")] + internal static extern uint getLinesCount_0(global::System.IntPtr instance); } - public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new InlineContentComment(native.ToPointer(), skipVTables); + return new VerbatimBlockComment(native.ToPointer(), skipVTables); } - public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) { - return new InlineContentComment(native, skipVTables); + return new VerbatimBlockComment(native, skipVTables); } - private static void* __CopyValue(InlineContentComment.Internal native) + private static void* __CopyValue(VerbatimBlockComment.Internal native) { - var ret = Marshal.AllocHGlobal(4); - *(InlineContentComment.Internal*) ret = native; + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) + private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected InlineContentComment(void* native, bool skipVTables = false) + protected VerbatimBlockComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11532,107 +11567,135 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public InlineContentComment() + public VerbatimBlockComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - var arg0 = Kind; - Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } - public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) - : this((void*) null) + protected override void Dispose(bool disposing) { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment)); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.VerbatimBlockLineComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); + return __result0; + } + + public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearLines() + { + Internal.clearLines_0((__Instance + __PointerAdjustment)); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + return __ret; + } } } - public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public byte IsWhitespace; + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10getContentEj")] - internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10addContentERPNS1_20InlineContentCommentE")] - internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment12clearContentEv")] - internal static extern void clearContent_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7getTextEv")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] - internal static extern uint getContentCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParagraphComment(native.ToPointer(), skipVTables); + return new VerbatimLineComment(native.ToPointer(), skipVTables); } - public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) { - return new ParagraphComment(native, skipVTables); + return new VerbatimLineComment(native, skipVTables); } - private static void* __CopyValue(ParagraphComment.Internal native) + private static void* __CopyValue(VerbatimLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) + private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParagraphComment(void* native, bool skipVTables = false) + protected VerbatimLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11641,25 +11704,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParagraphComment() + public VerbatimLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11671,49 +11734,19 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.InlineContentComment getContent(uint i) - { - var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.InlineContentComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); - return __result0; - } - - public void addContent(CppSharp.Parser.AST.InlineContentComment s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addContent_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearContent() - { - Internal.clearContent_0((__Instance + __PointerAdjustment)); - } - - public uint ContentCount - { - get - { - var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public bool IsWhitespace + public string Text { get { - return ((Internal*) __Instance)->IsWhitespace != 0; + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); } set { - ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs index 950a6d6c..e76d559c 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs @@ -10542,203 +10542,55 @@ namespace CppSharp } } - public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ENS1_11CommentKindE")] + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ENS1_11CommentKindE")] internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ERKS2_")] - internal static extern void cctor_3(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentD2Ev")] - internal static extern void dtor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12getArgumentsEj")] - internal static extern void getArguments_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12addArgumentsERNS2_8ArgumentE")] - internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment14clearArgumentsEv")] - internal static extern void clearArguments_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment17getArgumentsCountEv")] - internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); - } - - public unsafe partial class Argument : IDisposable - { - [StructLayout(LayoutKind.Explicit, Size = 8)] - public partial struct Internal - { - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev")] - internal static extern void ctor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2ERKS3_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentD2Ev")] - internal static extern void dtor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7getTextEv")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7setTextEPKc")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); - } - - public global::System.IntPtr __Instance { get; protected set; } - - protected int __PointerAdjustment; - public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); - protected void*[] __OriginalVTables; - - protected bool __ownsNativeInstance; - - public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) - { - return new Argument(native.ToPointer(), skipVTables); - } - - public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) - { - return new Argument(native, skipVTables); - } - - private static void* __CopyValue(Argument.Internal native) - { - var ret = Marshal.AllocHGlobal(8); - CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); - return ret.ToPointer(); - } - - private Argument(Argument.Internal native, bool skipVTables = false) - : this(__CopyValue(native), skipVTables) - { - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - } - - protected Argument(void* native, bool skipVTables = false) - { - if (native == null) - return; - __Instance = new global::System.IntPtr(native); - } - - public Argument() - { - __Instance = Marshal.AllocHGlobal(8); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - Internal.ctor_0((__Instance + __PointerAdjustment)); - } - - public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) - { - __Instance = Marshal.AllocHGlobal(8); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); - } - - public void Dispose() - { - Dispose(disposing: true); - } - - protected virtual void Dispose(bool disposing) - { - CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment)); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public string Text - { - get - { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); - } - - set - { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); - } - } + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); } - public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new BlockCommandComment(native.ToPointer(), skipVTables); + return new InlineContentComment(native.ToPointer(), skipVTables); } - public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) { - return new BlockCommandComment(native, skipVTables); + return new InlineContentComment(native, skipVTables); } - private static void* __CopyValue(BlockCommandComment.Internal native) + private static void* __CopyValue(InlineContentComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(4); + *(InlineContentComment.Internal*) ret = native; return ret.ToPointer(); } - private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) + private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected BlockCommandComment(void* native, bool skipVTables = false) + protected InlineContentComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10747,154 +10599,107 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public BlockCommandComment() + public InlineContentComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; var arg0 = Kind; Internal.ctor_1((__Instance + __PointerAdjustment), arg0); } - public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_3((__Instance + __PointerAdjustment), arg0); - } - - protected override void Dispose(bool disposing) - { - CppSharp.Parser.AST.Comment __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment)); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) - { - var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); - Internal.getArguments_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), i); - return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - } - - public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearArguments() - { - Internal.clearArguments_0((__Instance + __PointerAdjustment)); - } - - public uint ArgumentsCount - { - get - { - var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public uint CommandId - { - get - { - return ((Internal*) __Instance)->CommandId; - } - - set - { - ((Internal*) __Instance)->CommandId = value; - } + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); } } - public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 40)] + [StructLayout(LayoutKind.Explicit, Size = 32)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public uint CommandId; - - [FieldOffset(32)] - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; - - [FieldOffset(36)] - public uint ParamIndex; + public byte IsWhitespace; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); - } - public enum PassDirection : uint - { - In = 0, - Out = 1, - InOut = 2 + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10getContentEj")] + internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10addContentERPNS1_20InlineContentCommentE")] + internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment12clearContentEv")] + internal static extern void clearContent_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); } - public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParamCommandComment(native.ToPointer(), skipVTables); + return new ParagraphComment(native.ToPointer(), skipVTables); } - public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) { - return new ParamCommandComment(native, skipVTables); + return new ParagraphComment(native, skipVTables); } - private static void* __CopyValue(ParamCommandComment.Internal native) + private static void* __CopyValue(ParagraphComment.Internal native) { - var ret = Marshal.AllocHGlobal(40); - CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) + private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParamCommandComment(void* native, bool skipVTables = false) + protected ParagraphComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10903,19 +10708,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParamCommandComment() + public ParagraphComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -10933,36 +10738,56 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) { - get - { - return ((Internal*) __Instance)->Direction; - } + var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.InlineContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); + return __result0; + } - set + public void addContent(CppSharp.Parser.AST.InlineContentComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addContent_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearContent() + { + Internal.clearContent_0((__Instance + __PointerAdjustment)); + } + + public uint ContentCount + { + get { - ((Internal*) __Instance)->Direction = value; + var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public uint ParamIndex + public bool IsWhitespace { get { - return ((Internal*) __Instance)->ParamIndex; + return ((Internal*) __Instance)->IsWhitespace != 0; } set { - ((Internal*) __Instance)->ParamIndex = value; + ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); } } } - public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 40)] public new partial struct Internal { [FieldOffset(0)] @@ -10971,67 +10796,195 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ENS1_11CommentKindE")] + internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2ERKS2_")] internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11getPositionEj")] - internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12getArgumentsEj")] + internal static extern void getArguments_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11addPositionERj")] - internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment12addArgumentsERNS2_8ArgumentE")] + internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment13clearPositionEv")] - internal static extern void clearPosition_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment14clearArgumentsEv")] + internal static extern void clearArguments_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] - internal static extern uint getPositionCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment17getArgumentsCountEv")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); } - public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public unsafe partial class Argument : IDisposable { - return new TParamCommandComment(native.ToPointer(), skipVTables); + [StructLayout(LayoutKind.Explicit, Size = 8)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2ERKS3_")] + internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7getTextEv")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockCommandComment8Argument7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + + protected int __PointerAdjustment; + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + protected void*[] __OriginalVTables; + + protected bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new Argument(native.ToPointer(), skipVTables); + } + + public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) + { + return new Argument(native, skipVTables); + } + + private static void* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(8); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return ret.ToPointer(); + } + + private Argument(Argument.Internal native, bool skipVTables = false) + : this(__CopyValue(native), skipVTables) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(void* native, bool skipVTables = false) + { + if (native == null) + return; + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(8); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0((__Instance + __PointerAdjustment)); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(8); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment)); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); + } + } } - public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new BlockCommandComment(native.ToPointer(), skipVTables); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) { - return new TParamCommandComment(native, skipVTables); + return new BlockCommandComment(native, skipVTables); } - private static void* __CopyValue(TParamCommandComment.Internal native) + private static void* __CopyValue(BlockCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) + private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected TParamCommandComment(void* native, bool skipVTables = false) + protected BlockCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11040,19 +10993,29 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public TParamCommandComment() + public BlockCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11070,95 +11033,135 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public uint getPosition(uint i) + public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) { - var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); - return __ret; + var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); + Internal.getArguments_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); } - public void addPosition(ref uint s) + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) { - fixed (uint* __refParamPtr0 = &s) + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0((__Instance + __PointerAdjustment)); + } + + public uint ArgumentsCount + { + get { - var arg0 = __refParamPtr0; - Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public void clearPosition() + public uint CommandId { - Internal.clearPosition_0((__Instance + __PointerAdjustment)); + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } } - public uint PositionCount + public CppSharp.Parser.AST.ParagraphComment ParagraphComment { get { - var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); - return __ret; + CppSharp.Parser.AST.ParagraphComment __result0; + if (((Internal*) __Instance)->ParagraphComment == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap.ContainsKey(((Internal*) __Instance)->ParagraphComment)) + __result0 = (CppSharp.Parser.AST.ParagraphComment) CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap[((Internal*) __Instance)->ParagraphComment]; + else __result0 = CppSharp.Parser.AST.ParagraphComment.__CreateInstance(((Internal*) __Instance)->ParagraphComment); + return __result0; + } + + set + { + ((Internal*) __Instance)->ParagraphComment = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; } } } - public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 16)] + [StructLayout(LayoutKind.Explicit, Size = 48)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + + [FieldOffset(40)] + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; + + [FieldOffset(44)] + public uint ParamIndex; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19ParamCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); + } - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7getTextEv")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7setTextEPKc")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + public enum PassDirection : uint + { + In = 0, + Out = 1, + InOut = 2 } - public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); + return new ParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native, skipVTables); + return new ParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockLineComment.Internal native) + private static void* __CopyValue(ParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(16); - CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(48); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockLineComment(void* native, bool skipVTables = false) + protected ParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11167,25 +11170,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockLineComment() + public ParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(16); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(16); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11197,26 +11200,36 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public string Text + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction { get { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); + return ((Internal*) __Instance)->Direction; } set { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; } } } - public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] @@ -11225,67 +11238,70 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8getLinesEj")] - internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11getPositionEj")] + internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8addLinesERPNS1_24VerbatimBlockLineCommentE")] - internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment11addPositionERj")] + internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment10clearLinesEv")] - internal static extern void clearLines_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment13clearPositionEv")] + internal static extern void clearPosition_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment13getLinesCountEv")] - internal static extern uint getLinesCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); } - public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockComment(native.ToPointer(), skipVTables); + return new TParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockComment(native, skipVTables); + return new TParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockComment.Internal native) + private static void* __CopyValue(TParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) + private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockComment(void* native, bool skipVTables = false) + protected TParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11294,25 +11310,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockComment() + public TParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11324,102 +11340,95 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + public uint getPosition(uint i) { - var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.VerbatimBlockLineComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); - return __result0; + var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); + return __ret; } - public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + public void addPosition(ref uint s) { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + fixed (uint* __refParamPtr0 = &s) + { + var arg0 = __refParamPtr0; + Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + } } - public void clearLines() + public void clearPosition() { - Internal.clearLines_0((__Instance + __PointerAdjustment)); + Internal.clearPosition_0((__Instance + __PointerAdjustment)); } - public uint LinesCount + public uint PositionCount { get { - var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); return __ret; } } } - public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 40)] + [StructLayout(LayoutKind.Explicit, Size = 16)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2ERKS2_")] internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7getTextEv")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7getTextEv")] internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + EntryPoint="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineComment7setTextEPKc")] internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimLineComment(native.ToPointer(), skipVTables); + return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } - public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) { - return new VerbatimLineComment(native, skipVTables); + return new VerbatimBlockLineComment(native, skipVTables); } - private static void* __CopyValue(VerbatimLineComment.Internal native) + private static void* __CopyValue(VerbatimBlockLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(40); - CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimLineComment(void* native, bool skipVTables = false) + protected VerbatimBlockLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11428,19 +11437,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimLineComment() + public VerbatimBlockLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11475,55 +11484,81 @@ namespace CppSharp } } - public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 4)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ENS1_11CommentKindE")] - internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] + internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] - internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8getLinesEj")] + internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment8addLinesERPNS1_24VerbatimBlockLineCommentE")] + internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment10clearLinesEv")] + internal static extern void clearLines_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockComment13getLinesCountEv")] + internal static extern uint getLinesCount_0(global::System.IntPtr instance); } - public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new InlineContentComment(native.ToPointer(), skipVTables); + return new VerbatimBlockComment(native.ToPointer(), skipVTables); } - public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) { - return new InlineContentComment(native, skipVTables); + return new VerbatimBlockComment(native, skipVTables); } - private static void* __CopyValue(InlineContentComment.Internal native) + private static void* __CopyValue(VerbatimBlockComment.Internal native) { - var ret = Marshal.AllocHGlobal(4); - *(InlineContentComment.Internal*) ret = native; + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) + private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected InlineContentComment(void* native, bool skipVTables = false) + protected VerbatimBlockComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11532,107 +11567,135 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public InlineContentComment() + public VerbatimBlockComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - var arg0 = Kind; - Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } - public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) - : this((void*) null) + protected override void Dispose(bool disposing) { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment)); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.VerbatimBlockLineComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); + return __result0; + } + + public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearLines() + { + Internal.clearLines_0((__Instance + __PointerAdjustment)); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + return __ret; + } } } - public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 48)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public byte IsWhitespace; + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] internal static extern void ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2ERKS2_")] internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentD2Ev")] + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] internal static extern void dtor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10getContentEj")] - internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment10addContentERPNS1_20InlineContentCommentE")] - internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment12clearContentEv")] - internal static extern void clearContent_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7getTextEv")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] - internal static extern uint getContentCount_0(global::System.IntPtr instance); + EntryPoint="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParagraphComment(native.ToPointer(), skipVTables); + return new VerbatimLineComment(native.ToPointer(), skipVTables); } - public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) { - return new ParagraphComment(native, skipVTables); + return new VerbatimLineComment(native, skipVTables); } - private static void* __CopyValue(ParagraphComment.Internal native) + private static void* __CopyValue(VerbatimLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(48); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) + private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParagraphComment(void* native, bool skipVTables = false) + protected VerbatimLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11641,19 +11704,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParagraphComment() + public VerbatimLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11671,49 +11734,19 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.InlineContentComment getContent(uint i) - { - var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.InlineContentComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); - return __result0; - } - - public void addContent(CppSharp.Parser.AST.InlineContentComment s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addContent_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearContent() - { - Internal.clearContent_0((__Instance + __PointerAdjustment)); - } - - public uint ContentCount - { - get - { - var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public bool IsWhitespace + public string Text { get { - return ((Internal*) __Instance)->IsWhitespace != 0; + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); } set { - ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/AST.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/AST.cs index 6285c18c..7c29bd4f 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/AST.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/AST.cs @@ -10543,203 +10543,55 @@ namespace CppSharp } } - public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QEAA@W4CommentKind@123@@Z")] + EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QEAA@W4CommentKind@123@@Z")] internal static extern global::System.IntPtr ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] - internal static extern global::System.IntPtr cctor_3(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] - internal static extern void dtor_0(global::System.IntPtr instance, int delete); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getArguments@BlockCommandComment@AST@CppParser@CppSharp@@QEAA?AVArgument@1234@I@Z")] - internal static extern void getArguments_0(global::System.IntPtr instance, global::System.IntPtr @return, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?addArguments@BlockCommandComment@AST@CppParser@CppSharp@@QEAAXAEAVArgument@1234@@Z")] - internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?clearArguments@BlockCommandComment@AST@CppParser@CppSharp@@QEAAXXZ")] - internal static extern void clearArguments_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getArgumentsCount@BlockCommandComment@AST@CppParser@CppSharp@@QEAAIXZ")] - internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); - } - - public unsafe partial class Argument : IDisposable - { - [StructLayout(LayoutKind.Explicit, Size = 32)] - public partial struct Internal - { - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] - internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV01234@@Z")] - internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] - internal static extern void dtor_0(global::System.IntPtr instance, int delete); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getText@Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAAPEBDXZ")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?setText@Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); - } - - public global::System.IntPtr __Instance { get; protected set; } - - protected int __PointerAdjustment; - public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); - protected void*[] __OriginalVTables; - - protected bool __ownsNativeInstance; - - public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) - { - return new Argument(native.ToPointer(), skipVTables); - } - - public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) - { - return new Argument(native, skipVTables); - } - - private static void* __CopyValue(Argument.Internal native) - { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); - return ret.ToPointer(); - } - - private Argument(Argument.Internal native, bool skipVTables = false) - : this(__CopyValue(native), skipVTables) - { - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - } - - protected Argument(void* native, bool skipVTables = false) - { - if (native == null) - return; - __Instance = new global::System.IntPtr(native); - } - - public Argument() - { - __Instance = Marshal.AllocHGlobal(32); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - Internal.ctor_0((__Instance + __PointerAdjustment)); - } - - public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) - { - __Instance = Marshal.AllocHGlobal(32); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); - } - - public void Dispose() - { - Dispose(disposing: true); - } - - protected virtual void Dispose(bool disposing) - { - CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment), 0); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public string Text - { - get - { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); - } - - set - { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); - } - } + EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); } - public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new BlockCommandComment(native.ToPointer(), skipVTables); + return new InlineContentComment(native.ToPointer(), skipVTables); } - public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) { - return new BlockCommandComment(native, skipVTables); + return new InlineContentComment(native, skipVTables); } - private static void* __CopyValue(BlockCommandComment.Internal native) + private static void* __CopyValue(InlineContentComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(4); + *(InlineContentComment.Internal*) ret = native; return ret.ToPointer(); } - private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) + private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected BlockCommandComment(void* native, bool skipVTables = false) + protected InlineContentComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10748,154 +10600,107 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public BlockCommandComment() + public InlineContentComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; var arg0 = Kind; Internal.ctor_1((__Instance + __PointerAdjustment), arg0); } - public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(4); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - if (ReferenceEquals(_0, null)) - throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); - var arg0 = _0.__Instance; - Internal.cctor_3((__Instance + __PointerAdjustment), arg0); - } - - protected override void Dispose(bool disposing) - { - CppSharp.Parser.AST.Comment __dummy; - NativeToManagedMap.TryRemove(__Instance, out __dummy); - Internal.dtor_0((__Instance + __PointerAdjustment), 0); - if (__ownsNativeInstance) - Marshal.FreeHGlobal(__Instance); - } - - public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) - { - var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); - Internal.getArguments_0((__Instance + __PointerAdjustment), new IntPtr(&__ret), i); - return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); - } - - public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearArguments() - { - Internal.clearArguments_0((__Instance + __PointerAdjustment)); - } - - public uint ArgumentsCount - { - get - { - var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public uint CommandId - { - get - { - return ((Internal*) __Instance)->CommandId; - } - - set - { - ((Internal*) __Instance)->CommandId = value; - } + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); } } - public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 40)] + [StructLayout(LayoutKind.Explicit, Size = 32)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public uint CommandId; - - [FieldOffset(32)] - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; - - [FieldOffset(36)] - public uint ParamIndex; + public byte IsWhitespace; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0ParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0ParamCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1ParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??1ParagraphComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern void dtor_0(global::System.IntPtr instance, int delete); - } - public enum PassDirection - { - In = 0, - Out = 1, - InOut = 2 + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?getContent@ParagraphComment@AST@CppParser@CppSharp@@QEAAPEAVInlineContentComment@234@I@Z")] + internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?addContent@ParagraphComment@AST@CppParser@CppSharp@@QEAAXAEAPEAVInlineContentComment@234@@Z")] + internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?clearContent@ParagraphComment@AST@CppParser@CppSharp@@QEAAXXZ")] + internal static extern void clearContent_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?getContentCount@ParagraphComment@AST@CppParser@CppSharp@@QEAAIXZ")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); } - public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParamCommandComment(native.ToPointer(), skipVTables); + return new ParagraphComment(native.ToPointer(), skipVTables); } - public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) { - return new ParamCommandComment(native, skipVTables); + return new ParagraphComment(native, skipVTables); } - private static void* __CopyValue(ParamCommandComment.Internal native) + private static void* __CopyValue(ParagraphComment.Internal native) { - var ret = Marshal.AllocHGlobal(40); - CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) + private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParamCommandComment(void* native, bool skipVTables = false) + protected ParagraphComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -10904,19 +10709,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParamCommandComment() + public ParagraphComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -10934,36 +10739,56 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) { - get - { - return ((Internal*) __Instance)->Direction; - } + var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.InlineContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); + return __result0; + } - set + public void addContent(CppSharp.Parser.AST.InlineContentComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addContent_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearContent() + { + Internal.clearContent_0((__Instance + __PointerAdjustment)); + } + + public uint ContentCount + { + get { - ((Internal*) __Instance)->Direction = value; + var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public uint ParamIndex + public bool IsWhitespace { get { - return ((Internal*) __Instance)->ParamIndex; + return ((Internal*) __Instance)->IsWhitespace != 0; } set { - ((Internal*) __Instance)->ParamIndex = value; + ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); } } } - public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 40)] public new partial struct Internal { [FieldOffset(0)] @@ -10972,67 +10797,195 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0TParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0TParamCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QEAA@W4CommentKind@123@@Z")] + internal static extern global::System.IntPtr ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="??0BlockCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1TParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??1BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern void dtor_0(global::System.IntPtr instance, int delete); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getPosition@TParamCommandComment@AST@CppParser@CppSharp@@QEAAII@Z")] - internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); + EntryPoint="?getArguments@BlockCommandComment@AST@CppParser@CppSharp@@QEAA?AVArgument@1234@I@Z")] + internal static extern void getArguments_0(global::System.IntPtr instance, global::System.IntPtr @return, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?addPosition@TParamCommandComment@AST@CppParser@CppSharp@@QEAAXAEAI@Z")] - internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); + EntryPoint="?addArguments@BlockCommandComment@AST@CppParser@CppSharp@@QEAAXAEAVArgument@1234@@Z")] + internal static extern void addArguments_0(global::System.IntPtr instance, global::System.IntPtr s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?clearPosition@TParamCommandComment@AST@CppParser@CppSharp@@QEAAXXZ")] - internal static extern void clearPosition_0(global::System.IntPtr instance); + EntryPoint="?clearArguments@BlockCommandComment@AST@CppParser@CppSharp@@QEAAXXZ")] + internal static extern void clearArguments_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getPositionCount@TParamCommandComment@AST@CppParser@CppSharp@@QEAAIXZ")] - internal static extern uint getPositionCount_0(global::System.IntPtr instance); + EntryPoint="?getArgumentsCount@BlockCommandComment@AST@CppParser@CppSharp@@QEAAIXZ")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); } - public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public unsafe partial class Argument : IDisposable { - return new TParamCommandComment(native.ToPointer(), skipVTables); + [StructLayout(LayoutKind.Explicit, Size = 32)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="??0Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="??0Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV01234@@Z")] + internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="??1Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] + internal static extern void dtor_0(global::System.IntPtr instance, int delete); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?getText@Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAAPEBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?setText@Argument@BlockCommandComment@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + + protected int __PointerAdjustment; + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + protected void*[] __OriginalVTables; + + protected bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new Argument(native.ToPointer(), skipVTables); + } + + public static Argument __CreateInstance(Argument.Internal native, bool skipVTables = false) + { + return new Argument(native, skipVTables); + } + + private static void* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return ret.ToPointer(); + } + + private Argument(Argument.Internal native, bool skipVTables = false) + : this(__CopyValue(native), skipVTables) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(void* native, bool skipVTables = false) + { + if (native == null) + return; + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0((__Instance + __PointerAdjustment)); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment), 0); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + { + return new BlockCommandComment(native.ToPointer(), skipVTables); } - public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native, bool skipVTables = false) { - return new TParamCommandComment(native, skipVTables); + return new BlockCommandComment(native, skipVTables); } - private static void* __CopyValue(TParamCommandComment.Internal native) + private static void* __CopyValue(BlockCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) + private BlockCommandComment(BlockCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected TParamCommandComment(void* native, bool skipVTables = false) + protected BlockCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11041,19 +10994,29 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public TParamCommandComment() + public BlockCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((void*) null) + { + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11071,95 +11034,135 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public uint getPosition(uint i) + public CppSharp.Parser.AST.BlockCommandComment.Argument getArguments(uint i) { - var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); - return __ret; + var __ret = new CppSharp.Parser.AST.BlockCommandComment.Argument.Internal(); + Internal.getArguments_0((__Instance + __PointerAdjustment), new IntPtr(&__ret), i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); } - public void addPosition(ref uint s) + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) { - fixed (uint* __refParamPtr0 = &s) + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addArguments_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0((__Instance + __PointerAdjustment)); + } + + public uint ArgumentsCount + { + get { - var arg0 = __refParamPtr0; - Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + var __ret = Internal.getArgumentsCount_0((__Instance + __PointerAdjustment)); + return __ret; } } - public void clearPosition() + public uint CommandId { - Internal.clearPosition_0((__Instance + __PointerAdjustment)); + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } } - public uint PositionCount + public CppSharp.Parser.AST.ParagraphComment ParagraphComment { get { - var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); - return __ret; + CppSharp.Parser.AST.ParagraphComment __result0; + if (((Internal*) __Instance)->ParagraphComment == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap.ContainsKey(((Internal*) __Instance)->ParagraphComment)) + __result0 = (CppSharp.Parser.AST.ParagraphComment) CppSharp.Parser.AST.ParagraphComment.NativeToManagedMap[((Internal*) __Instance)->ParagraphComment]; + else __result0 = CppSharp.Parser.AST.ParagraphComment.__CreateInstance(((Internal*) __Instance)->ParagraphComment); + return __result0; + } + + set + { + ((Internal*) __Instance)->ParagraphComment = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance; } } } - public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 40)] + [StructLayout(LayoutKind.Explicit, Size = 48)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + + [FieldOffset(40)] + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction; + + [FieldOffset(44)] + public uint ParamIndex; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0ParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + EntryPoint="??0ParamCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??1ParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern void dtor_0(global::System.IntPtr instance, int delete); + } - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getText@VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAAPEBDXZ")] - internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?setText@VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + public enum PassDirection + { + In = 0, + Out = 1, + InOut = 2 } - public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); + return new ParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockLineComment(native, skipVTables); + return new ParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockLineComment.Internal native) + private static void* __CopyValue(ParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(40); - CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(48); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) + private ParamCommandComment(ParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockLineComment(void* native, bool skipVTables = false) + protected ParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11168,19 +11171,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockLineComment() + public ParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(40); + __Instance = Marshal.AllocHGlobal(48); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11198,26 +11201,36 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public string Text + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction { get { - var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); - return Marshal.PtrToStringAnsi(__ret); + return ((Internal*) __Instance)->Direction; } set { - var arg0 = Marshal.StringToHGlobalAnsi(value); - Internal.setText_0((__Instance + __PointerAdjustment), arg0); - Marshal.FreeHGlobal(arg0); + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; } } } - public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 56)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] @@ -11226,67 +11239,70 @@ namespace CppSharp [FieldOffset(4)] public uint CommandId; + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0TParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] - internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="??0TParamCommandComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1VerbatimBlockComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??1TParamCommandComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern void dtor_0(global::System.IntPtr instance, int delete); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAPEAVVerbatimBlockLineComment@234@I@Z")] - internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + EntryPoint="?getPosition@TParamCommandComment@AST@CppParser@CppSharp@@QEAAII@Z")] + internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?addLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAXAEAPEAVVerbatimBlockLineComment@234@@Z")] - internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + EntryPoint="?addPosition@TParamCommandComment@AST@CppParser@CppSharp@@QEAAXAEAI@Z")] + internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?clearLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAXXZ")] - internal static extern void clearLines_0(global::System.IntPtr instance); + EntryPoint="?clearPosition@TParamCommandComment@AST@CppParser@CppSharp@@QEAAXXZ")] + internal static extern void clearPosition_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getLinesCount@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAIXZ")] - internal static extern uint getLinesCount_0(global::System.IntPtr instance); + EntryPoint="?getPositionCount@TParamCommandComment@AST@CppParser@CppSharp@@QEAAIXZ")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); } - public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimBlockComment(native.ToPointer(), skipVTables); + return new TParamCommandComment(native.ToPointer(), skipVTables); } - public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native, bool skipVTables = false) { - return new VerbatimBlockComment(native, skipVTables); + return new TParamCommandComment(native, skipVTables); } - private static void* __CopyValue(VerbatimBlockComment.Internal native) + private static void* __CopyValue(TParamCommandComment.Internal native) { - var ret = Marshal.AllocHGlobal(56); - CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) + private TParamCommandComment(TParamCommandComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimBlockComment(void* native, bool skipVTables = false) + protected TParamCommandComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11295,25 +11311,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimBlockComment() + public TParamCommandComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(56); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11325,102 +11341,95 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + public uint getPosition(uint i) { - var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.VerbatimBlockLineComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); - return __result0; + var __ret = Internal.getPosition_0((__Instance + __PointerAdjustment), i); + return __ret; } - public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + public void addPosition(ref uint s) { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + fixed (uint* __refParamPtr0 = &s) + { + var arg0 = __refParamPtr0; + Internal.addPosition_0((__Instance + __PointerAdjustment), arg0); + } } - public void clearLines() + public void clearPosition() { - Internal.clearLines_0((__Instance + __PointerAdjustment)); + Internal.clearPosition_0((__Instance + __PointerAdjustment)); } - public uint LinesCount + public uint PositionCount { get { - var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + var __ret = Internal.getPositionCount_0((__Instance + __PointerAdjustment)); return __ret; } } } - public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 64)] + [StructLayout(LayoutKind.Explicit, Size = 40)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; - [FieldOffset(4)] - public uint CommandId; - [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0VerbatimLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0VerbatimLineComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + EntryPoint="??0VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1VerbatimLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??1VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern void dtor_0(global::System.IntPtr instance, int delete); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getText@VerbatimLineComment@AST@CppParser@CppSharp@@QEAAPEBDXZ")] + EntryPoint="?getText@VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAAPEBDXZ")] internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?setText@VerbatimLineComment@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] + EntryPoint="?setText@VerbatimBlockLineComment@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new VerbatimLineComment(native.ToPointer(), skipVTables); + return new VerbatimBlockLineComment(native.ToPointer(), skipVTables); } - public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native, bool skipVTables = false) { - return new VerbatimLineComment(native, skipVTables); + return new VerbatimBlockLineComment(native, skipVTables); } - private static void* __CopyValue(VerbatimLineComment.Internal native) + private static void* __CopyValue(VerbatimBlockLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(64); - CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected VerbatimLineComment(void* native, bool skipVTables = false) + protected VerbatimBlockLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11429,19 +11438,19 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public VerbatimLineComment() + public VerbatimBlockLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(64); + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(64); + __Instance = Marshal.AllocHGlobal(40); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) @@ -11476,55 +11485,81 @@ namespace CppSharp } } - public unsafe partial class InlineContentComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 4)] + [StructLayout(LayoutKind.Explicit, Size = 64)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [FieldOffset(4)] + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QEAA@W4CommentKind@123@@Z")] - internal static extern global::System.IntPtr ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind); + EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0InlineContentComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] - internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="??1VerbatimBlockComment@AST@CppParser@CppSharp@@QEAA@XZ")] + internal static extern void dtor_0(global::System.IntPtr instance, int delete); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?getLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAPEAVVerbatimBlockLineComment@234@I@Z")] + internal static extern global::System.IntPtr getLines_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?addLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAXAEAPEAVVerbatimBlockLineComment@234@@Z")] + internal static extern void addLines_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?clearLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAXXZ")] + internal static extern void clearLines_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="?getLinesCount@VerbatimBlockComment@AST@CppParser@CppSharp@@QEAAIXZ")] + internal static extern uint getLinesCount_0(global::System.IntPtr instance); } - public static new InlineContentComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new InlineContentComment(native.ToPointer(), skipVTables); + return new VerbatimBlockComment(native.ToPointer(), skipVTables); } - public static InlineContentComment __CreateInstance(InlineContentComment.Internal native, bool skipVTables = false) + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native, bool skipVTables = false) { - return new InlineContentComment(native, skipVTables); + return new VerbatimBlockComment(native, skipVTables); } - private static void* __CopyValue(InlineContentComment.Internal native) + private static void* __CopyValue(VerbatimBlockComment.Internal native) { - var ret = Marshal.AllocHGlobal(4); - *(InlineContentComment.Internal*) ret = native; + var ret = Marshal.AllocHGlobal(64); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private InlineContentComment(InlineContentComment.Internal native, bool skipVTables = false) + private VerbatimBlockComment(VerbatimBlockComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected InlineContentComment(void* native, bool skipVTables = false) + protected VerbatimBlockComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11533,107 +11568,135 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public InlineContentComment() + public VerbatimBlockComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(64); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - var arg0 = Kind; - Internal.ctor_1((__Instance + __PointerAdjustment), arg0); + if (ReferenceEquals(_0, null)) + throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); + var arg0 = _0.__Instance; + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } - public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) - : this((void*) null) + protected override void Dispose(bool disposing) { - __Instance = Marshal.AllocHGlobal(4); - __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + Internal.dtor_0((__Instance + __PointerAdjustment), 0); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0((__Instance + __PointerAdjustment), i); + CppSharp.Parser.AST.VerbatimBlockLineComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.VerbatimBlockLineComment) CppSharp.Parser.AST.VerbatimBlockLineComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.VerbatimBlockLineComment.__CreateInstance(__ret); + return __result0; + } + + public void addLines(CppSharp.Parser.AST.VerbatimBlockLineComment s) + { + if (ReferenceEquals(s, null)) + throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); + var arg0 = s.__Instance; + Internal.addLines_0((__Instance + __PointerAdjustment), arg0); + } + + public void clearLines() + { + Internal.clearLines_0((__Instance + __PointerAdjustment)); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0((__Instance + __PointerAdjustment)); + return __ret; + } } } - public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 32)] + [StructLayout(LayoutKind.Explicit, Size = 72)] public new partial struct Internal { [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; [FieldOffset(4)] - public byte IsWhitespace; + public uint CommandId; + + [FieldOffset(8)] + public global::System.IntPtr ParagraphComment; [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??0VerbatimLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] - internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + EntryPoint="??0VerbatimLineComment@AST@CppParser@CppSharp@@QEAA@AEBV0123@@Z")] + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="??1ParagraphComment@AST@CppParser@CppSharp@@QEAA@XZ")] + EntryPoint="??1VerbatimLineComment@AST@CppParser@CppSharp@@QEAA@XZ")] internal static extern void dtor_0(global::System.IntPtr instance, int delete); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getContent@ParagraphComment@AST@CppParser@CppSharp@@QEAAPEAVInlineContentComment@234@I@Z")] - internal static extern global::System.IntPtr getContent_0(global::System.IntPtr instance, uint i); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?addContent@ParagraphComment@AST@CppParser@CppSharp@@QEAAXAEAPEAVInlineContentComment@234@@Z")] - internal static extern void addContent_0(global::System.IntPtr instance, global::System.IntPtr s); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?clearContent@ParagraphComment@AST@CppParser@CppSharp@@QEAAXXZ")] - internal static extern void clearContent_0(global::System.IntPtr instance); + EntryPoint="?getText@VerbatimLineComment@AST@CppParser@CppSharp@@QEAAPEBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, - EntryPoint="?getContentCount@ParagraphComment@AST@CppParser@CppSharp@@QEAAIXZ")] - internal static extern uint getContentCount_0(global::System.IntPtr instance); + EntryPoint="?setText@VerbatimLineComment@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); } - public static new ParagraphComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native, bool skipVTables = false) { - return new ParagraphComment(native.ToPointer(), skipVTables); + return new VerbatimLineComment(native.ToPointer(), skipVTables); } - public static ParagraphComment __CreateInstance(ParagraphComment.Internal native, bool skipVTables = false) + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native, bool skipVTables = false) { - return new ParagraphComment(native, skipVTables); + return new VerbatimLineComment(native, skipVTables); } - private static void* __CopyValue(ParagraphComment.Internal native) + private static void* __CopyValue(VerbatimLineComment.Internal native) { - var ret = Marshal.AllocHGlobal(32); - CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + var ret = Marshal.AllocHGlobal(72); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } - private ParagraphComment(ParagraphComment.Internal native, bool skipVTables = false) + private VerbatimLineComment(VerbatimLineComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } - protected ParagraphComment(void* native, bool skipVTables = false) + protected VerbatimLineComment(void* native, bool skipVTables = false) : base((void*) null) { __PointerAdjustment = 0; @@ -11642,25 +11705,25 @@ namespace CppSharp __Instance = new global::System.IntPtr(native); } - public ParagraphComment() + public VerbatimLineComment() : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(72); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0((__Instance + __PointerAdjustment)); } - public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) : this((void*) null) { - __Instance = Marshal.AllocHGlobal(32); + __Instance = Marshal.AllocHGlobal(72); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_1((__Instance + __PointerAdjustment), arg0); + Internal.cctor_2((__Instance + __PointerAdjustment), arg0); } protected override void Dispose(bool disposing) @@ -11672,49 +11735,19 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } - public CppSharp.Parser.AST.InlineContentComment getContent(uint i) - { - var __ret = Internal.getContent_0((__Instance + __PointerAdjustment), i); - CppSharp.Parser.AST.InlineContentComment __result0; - if (__ret == IntPtr.Zero) __result0 = null; - else if (CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap.ContainsKey(__ret)) - __result0 = (CppSharp.Parser.AST.InlineContentComment) CppSharp.Parser.AST.InlineContentComment.NativeToManagedMap[__ret]; - else __result0 = CppSharp.Parser.AST.InlineContentComment.__CreateInstance(__ret); - return __result0; - } - - public void addContent(CppSharp.Parser.AST.InlineContentComment s) - { - if (ReferenceEquals(s, null)) - throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var arg0 = s.__Instance; - Internal.addContent_0((__Instance + __PointerAdjustment), arg0); - } - - public void clearContent() - { - Internal.clearContent_0((__Instance + __PointerAdjustment)); - } - - public uint ContentCount - { - get - { - var __ret = Internal.getContentCount_0((__Instance + __PointerAdjustment)); - return __ret; - } - } - - public bool IsWhitespace + public string Text { get { - return ((Internal*) __Instance)->IsWhitespace != 0; + var __ret = Internal.getText_0((__Instance + __PointerAdjustment)); + return Marshal.PtrToStringAnsi(__ret); } set { - ((Internal*) __Instance)->IsWhitespace = (byte) (value ? 1 : 0); + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0((__Instance + __PointerAdjustment), arg0); + Marshal.FreeHGlobal(arg0); } } } diff --git a/src/CppParser/Comments.cpp b/src/CppParser/Comments.cpp index 88d06030..2b01c81c 100644 --- a/src/CppParser/Comments.cpp +++ b/src/CppParser/Comments.cpp @@ -121,6 +121,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto BC = new BlockCommandComment(); _Comment = BC; HandleBlockCommand(CK, BC); + BC->ParagraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); break; } case Comment::ParamCommandCommentKind: @@ -132,6 +133,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) PC->Direction = ConvertParamPassDirection(CK->getDirection()); if (CK->isParamIndexValid() && !CK->isVarArgParam()) PC->ParamIndex = CK->getParamIndex(); + PC->ParagraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); break; } case Comment::TParamCommandCommentKind: @@ -144,6 +146,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) if (CK->isPositionValid()) for (unsigned I = 0, E = CK->getDepth(); I != E; ++I) TC->Position.push_back(CK->getIndex(I)); + TC->ParagraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); break; } case Comment::VerbatimBlockCommentKind: