From cd3e729d3873a845eacee4260480e4c3dfe14579 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Wed, 29 Jul 2015 01:48:50 +0100 Subject: [PATCH] Restored support for full comments. Signed-off-by: Dimitar Dobrev --- src/AST/Comment.cs | 4 +- src/Core/Parser/ASTConverter.cs | 167 +- src/CppParser/AST.cpp | 74 + src/CppParser/AST.h | 151 ++ src/CppParser/Bindings/CLI/AST.cpp | 900 ++++++- src/CppParser/Bindings/CLI/AST.h | 422 ++- src/CppParser/Bindings/CLI/CppParser.cpp | 8 +- src/CppParser/Bindings/CLI/Sources.cpp | 2 +- src/CppParser/Bindings/CLI/Target.cpp | 2 +- .../CSharp/i686-apple-darwin12.4.0/AST.cs | 2371 ++++++++++++++++- .../i686-apple-darwin12.4.0/CppParser.cs | 11 +- .../Bindings/CSharp/i686-pc-win32-msvc/AST.cs | 2371 ++++++++++++++++- .../CSharp/i686-pc-win32-msvc/CppParser.cs | 11 +- .../CSharp/x86_64-apple-darwin12.4.0/AST.cs | 2371 ++++++++++++++++- .../x86_64-apple-darwin12.4.0/CppParser.cs | 11 +- .../Bindings/CSharp/x86_64-linux-gnu/AST.cs | 2371 ++++++++++++++++- .../CSharp/x86_64-linux-gnu/CppParser.cs | 11 +- src/CppParser/Comments.cpp | 72 +- 18 files changed, 11166 insertions(+), 164 deletions(-) diff --git a/src/AST/Comment.cs b/src/AST/Comment.cs index 3ac0449a..578fab67 100644 --- a/src/AST/Comment.cs +++ b/src/AST/Comment.cs @@ -355,7 +355,7 @@ namespace CppSharp.AST /// /// A command with word-like arguments that is considered inline content. /// - public class InlineCommandComment : Comment + public class InlineCommandComment : InlineContentComment { public struct Argument { @@ -388,7 +388,7 @@ namespace CppSharp.AST /// /// A line of text contained in a verbatim block. /// - public class VerbatimBlockLineComment : BlockCommandComment + public class VerbatimBlockLineComment : Comment { public string Text; diff --git a/src/Core/Parser/ASTConverter.cs b/src/Core/Parser/ASTConverter.cs index f3470659..325e7a80 100644 --- a/src/Core/Parser/ASTConverter.cs +++ b/src/Core/Parser/ASTConverter.cs @@ -254,15 +254,56 @@ namespace CppSharp { public abstract TRet VisitFullComment(FullComment comment); - public virtual TRet Visit(Parser.AST.Comment comment) + protected abstract TRet VisitBlockCommandComment(BlockCommandComment comment); + + protected abstract TRet VisitParamCommandComment(ParamCommandComment comment); + + protected abstract TRet VisitTParamCommandComment(TParamCommandComment comment); + + protected abstract TRet VisitVerbatimBlockComment(VerbatimBlockComment comment); + + protected abstract TRet VisitVerbatimLineComment(VerbatimLineComment comment); + + protected abstract TRet VisitParagraphComment(ParagraphComment comment); + + protected abstract TRet VisitHTMLStartTagComment(HTMLStartTagComment comment); + + protected abstract TRet VisitHTMLEndTagComment(HTMLEndTagComment comment); + + protected abstract TRet VisitTextComment(TextComment comment); + + protected abstract TRet VisitInlineCommandComment(InlineCommandComment comment); + + protected abstract TRet VisitVerbatimBlockLineComment(VerbatimBlockLineComment comment); + + public virtual TRet Visit(Comment comment) { switch (comment.Kind) { case CommentKind.FullComment: - { - var _comment = FullComment.__CreateInstance(comment.__Instance); - return VisitFullComment(_comment); - } + return VisitFullComment(FullComment.__CreateInstance(comment.__Instance)); + case CommentKind.BlockCommandComment: + return VisitBlockCommandComment(BlockCommandComment.__CreateInstance(comment.__Instance)); + case CommentKind.ParamCommandComment: + return VisitParamCommandComment(ParamCommandComment.__CreateInstance(comment.__Instance)); + case CommentKind.TParamCommandComment: + return VisitTParamCommandComment(TParamCommandComment.__CreateInstance(comment.__Instance)); + case CommentKind.VerbatimBlockComment: + return VisitVerbatimBlockComment(VerbatimBlockComment.__CreateInstance(comment.__Instance)); + case CommentKind.VerbatimLineComment: + return VisitVerbatimLineComment(VerbatimLineComment.__CreateInstance(comment.__Instance)); + case CommentKind.ParagraphComment: + return VisitParagraphComment(ParagraphComment.__CreateInstance(comment.__Instance)); + case CommentKind.HTMLStartTagComment: + return VisitHTMLStartTagComment(HTMLStartTagComment.__CreateInstance(comment.__Instance)); + case CommentKind.HTMLEndTagComment: + return VisitHTMLEndTagComment(HTMLEndTagComment.__CreateInstance(comment.__Instance)); + case CommentKind.TextComment: + return VisitTextComment(TextComment.__CreateInstance(comment.__Instance)); + case CommentKind.InlineCommandComment: + return VisitInlineCommandComment(InlineCommandComment.__CreateInstance(comment.__Instance)); + case CommentKind.VerbatimBlockLineComment: + return VisitVerbatimBlockLineComment(VerbatimBlockLineComment.__CreateInstance(comment.__Instance)); } throw new ArgumentOutOfRangeException(); @@ -1542,7 +1583,121 @@ namespace CppSharp { public override AST.Comment VisitFullComment(FullComment comment) { - throw new NotImplementedException(); + var fullComment = new AST.FullComment(); + for (uint i = 0; i < comment.BlocksCount; i++) + fullComment.Blocks.Add((AST.BlockContentComment) Visit(comment.getBlocks(i))); + return fullComment; + } + + protected override AST.Comment VisitBlockCommandComment(BlockCommandComment comment) + { + var blockCommandComment = new AST.BlockCommandComment(); + VisitBlockCommandComment(blockCommandComment, comment); + return blockCommandComment; + } + + protected override AST.Comment VisitParamCommandComment(ParamCommandComment comment) + { + var paramCommandComment = new AST.ParamCommandComment(); + switch (comment.Direction) + { + case ParamCommandComment.PassDirection.In: + paramCommandComment.Direction = AST.ParamCommandComment.PassDirection.In; + break; + case ParamCommandComment.PassDirection.Out: + paramCommandComment.Direction = AST.ParamCommandComment.PassDirection.Out; + break; + case ParamCommandComment.PassDirection.InOut: + paramCommandComment.Direction = AST.ParamCommandComment.PassDirection.InOut; + break; + } + paramCommandComment.ParamIndex = comment.ParamIndex; + return paramCommandComment; + } + + protected override AST.Comment VisitTParamCommandComment(TParamCommandComment comment) + { + var paramCommandComment = new AST.TParamCommandComment(); + for (uint i = 0; i < comment.PositionCount; i++) + paramCommandComment.Position.Add(comment.getPosition(i)); + VisitBlockCommandComment(paramCommandComment, comment); + return paramCommandComment; + } + + protected override AST.Comment VisitVerbatimBlockComment(VerbatimBlockComment comment) + { + var verbatimBlockComment = new AST.VerbatimBlockComment(); + for (uint i = 0; i < comment.LinesCount; i++) + verbatimBlockComment.Lines.Add((AST.VerbatimBlockLineComment) Visit(comment.getLines(i))); + VisitBlockCommandComment(verbatimBlockComment, comment); + return verbatimBlockComment; + } + + protected override AST.Comment VisitVerbatimLineComment(VerbatimLineComment comment) + { + var verbatimLineComment = new AST.VerbatimLineComment { Text = comment.Text }; + VisitBlockCommandComment(verbatimLineComment, comment); + return verbatimLineComment; + } + + protected override AST.Comment VisitParagraphComment(ParagraphComment comment) + { + var paragraphComment = new AST.ParagraphComment(); + for (uint i = 0; i < comment.ContentCount; i++) + paragraphComment.Content.Add((AST.InlineContentComment) Visit(comment.getContent(i))); + paragraphComment.IsWhitespace = comment.IsWhitespace; + return paragraphComment; + } + + protected override AST.Comment VisitHTMLStartTagComment(HTMLStartTagComment comment) + { + var htmlStartTagComment = new AST.HTMLStartTagComment(); + for (uint i = 0; i < comment.AttributesCount; i++) + { + var attribute = new AST.HTMLStartTagComment.Attribute(); + var _attribute = comment.getAttributes(i); + attribute.Name = _attribute.Name; + attribute.Value = _attribute.Value; + htmlStartTagComment.Attributes.Add(attribute); + } + htmlStartTagComment.TagName = comment.TagName; + return htmlStartTagComment; + } + + protected override AST.Comment VisitHTMLEndTagComment(HTMLEndTagComment comment) + { + return new AST.HTMLEndTagComment { TagName = comment.TagName }; + } + + protected override AST.Comment VisitTextComment(TextComment comment) + { + return new AST.TextComment { Text = comment.Text }; + } + + protected override AST.Comment VisitInlineCommandComment(InlineCommandComment comment) + { + var inlineCommandComment = new AST.InlineCommandComment(); + for (uint i = 0; i < comment.ArgumentsCount; i++) + { + var argument = new AST.InlineCommandComment.Argument { Text = comment.getArguments(i).Text }; + inlineCommandComment.Arguments.Add(argument); + } + return inlineCommandComment; + } + + protected override AST.Comment VisitVerbatimBlockLineComment(VerbatimBlockLineComment comment) + { + return new AST.VerbatimBlockLineComment { Text = comment.Text }; + } + + private static void VisitBlockCommandComment(AST.BlockCommandComment blockCommandComment, BlockCommandComment comment) + { + blockCommandComment.CommandId = comment.CommandId; + for (uint i = 0; i < comment.ArgumentsCount; i++) + { + var argument = new AST.BlockCommandComment.Argument { Text = comment.getArguments(i).Text }; + blockCommandComment.Arguments.Add(argument); + } } } diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index 4dcf81b5..77e8ecb4 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -701,4 +701,78 @@ RawComment::RawComment() : FullCommentBlock(0) {} FullComment::FullComment() : Comment(CommentKind::FullComment) {} +DEF_VECTOR(FullComment, BlockContentComment*, Blocks) + +BlockContentComment::BlockContentComment() : Comment(CommentKind::BlockContentComment) {} + +BlockContentComment::BlockContentComment(CommentKind Kind) : Comment(Kind) {} + +BlockCommandComment::Argument::Argument() {} + +DEF_STRING(BlockCommandComment::Argument, Text) + +BlockCommandComment::BlockCommandComment() : BlockContentComment(CommentKind::BlockCommandComment), CommandId(0) {} + +BlockCommandComment::BlockCommandComment(CommentKind Kind) : BlockContentComment(Kind) {} + +DEF_VECTOR(BlockCommandComment, BlockCommandComment::Argument, Arguments) + +ParamCommandComment::ParamCommandComment() : BlockCommandComment(CommentKind::ParamCommandComment), Direction(PassDirection::In), ParamIndex(0) {} + +TParamCommandComment::TParamCommandComment() : BlockCommandComment(CommentKind::TParamCommandComment) {} + +DEF_VECTOR(TParamCommandComment, unsigned, Position) + +VerbatimBlockComment::VerbatimBlockComment() : BlockCommandComment(CommentKind::VerbatimBlockComment) {} + +DEF_VECTOR(VerbatimBlockComment, VerbatimBlockLineComment*, Lines) + +VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::VerbatimLineComment) {} + +DEF_STRING(VerbatimLineComment, Text) + +ParagraphComment::ParagraphComment() : BlockContentComment(CommentKind::ParagraphComment), IsWhitespace(false) {} + +DEF_VECTOR(ParagraphComment, InlineContentComment*, Content) + +HTMLTagComment::HTMLTagComment() : InlineContentComment(CommentKind::HTMLTagComment) {} + +HTMLTagComment::HTMLTagComment(CommentKind Kind) : InlineContentComment(Kind) {} + +HTMLStartTagComment::Attribute::Attribute() {} + +DEF_STRING(HTMLStartTagComment::Attribute, Name) + +DEF_STRING(HTMLStartTagComment::Attribute, Value) + +HTMLStartTagComment::HTMLStartTagComment() : HTMLTagComment(CommentKind::HTMLStartTagComment) {} + +DEF_VECTOR(HTMLStartTagComment, HTMLStartTagComment::Attribute, Attributes) + +DEF_STRING(HTMLStartTagComment, TagName) + +HTMLEndTagComment::HTMLEndTagComment() : HTMLTagComment(CommentKind::HTMLEndTagComment) {} + +DEF_STRING(HTMLEndTagComment, TagName) + +InlineContentComment::InlineContentComment() : Comment(CommentKind::InlineContentComment) {} + +InlineContentComment::InlineContentComment(CommentKind Kind) : Comment(Kind) {} + +TextComment::TextComment() : InlineContentComment(CommentKind::TextComment) {} + +DEF_STRING(TextComment, Text) + +InlineCommandComment::Argument::Argument() {} + +DEF_STRING(InlineCommandComment::Argument, Text) + +InlineCommandComment::InlineCommandComment() : InlineContentComment(CommentKind::InlineCommandComment), CommentRenderKind(RenderNormal) {} + +DEF_VECTOR(InlineCommandComment, InlineCommandComment::Argument, Arguments) + +VerbatimBlockLineComment::VerbatimBlockLineComment() : Comment(CommentKind::VerbatimBlockLineComment) {} + +DEF_STRING(VerbatimBlockLineComment, Text) + } } } \ No newline at end of file diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index 31c08680..5994b9b8 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -863,6 +863,20 @@ public: enum struct CommentKind { FullComment, + BlockContentComment, + BlockCommandComment, + ParamCommandComment, + TParamCommandComment, + VerbatimBlockComment, + VerbatimLineComment, + ParagraphComment, + HTMLTagComment, + HTMLStartTagComment, + HTMLEndTagComment, + TextComment, + InlineContentComment, + InlineCommandComment, + VerbatimBlockLineComment }; class CS_API CS_ABSTRACT Comment @@ -872,10 +886,147 @@ public: CommentKind Kind; }; +class CS_API BlockContentComment : public Comment +{ +public: + BlockContentComment(); + BlockContentComment(CommentKind Kind); +}; + class CS_API FullComment : public Comment { public: FullComment(); + VECTOR(BlockContentComment*, Blocks) +}; + +class CS_API BlockCommandComment : public BlockContentComment +{ +public: + class CS_API Argument + { + public: + Argument(); + STRING(Text) + }; + BlockCommandComment(); + BlockCommandComment(CommentKind Kind); + unsigned CommandId; + VECTOR(Argument, Arguments) +}; + +class CS_API ParamCommandComment : public BlockCommandComment +{ +public: + enum PassDirection + { + In, + Out, + InOut + }; + ParamCommandComment(); + PassDirection Direction; + unsigned ParamIndex; +}; + +class CS_API TParamCommandComment : public BlockCommandComment +{ +public: + TParamCommandComment(); + VECTOR(unsigned, Position) +}; + +class CS_API VerbatimBlockLineComment : public Comment +{ +public: + VerbatimBlockLineComment(); + STRING(Text) +}; + +class CS_API VerbatimBlockComment : public BlockCommandComment +{ +public: + VerbatimBlockComment(); + VECTOR(VerbatimBlockLineComment*, Lines) +}; + +class CS_API VerbatimLineComment : public BlockCommandComment +{ +public: + VerbatimLineComment(); + STRING(Text) +}; + +class CS_API InlineContentComment : public Comment +{ +public: + InlineContentComment(); + InlineContentComment(CommentKind Kind); +}; + +class CS_API ParagraphComment : public BlockContentComment +{ +public: + ParagraphComment(); + bool IsWhitespace; + VECTOR(InlineContentComment*, Content) +}; + +class CS_API InlineCommandComment : public InlineContentComment +{ +public: + enum RenderKind + { + RenderNormal, + RenderBold, + RenderMonospaced, + RenderEmphasized + }; + class CS_API Argument + { + public: + Argument(); + STRING(Text) + }; + InlineCommandComment(); + RenderKind CommentRenderKind; + VECTOR(Argument, Arguments) +}; + +class CS_API HTMLTagComment : public InlineContentComment +{ +public: + HTMLTagComment(); + HTMLTagComment(CommentKind Kind); +}; + +class CS_API HTMLStartTagComment : public HTMLTagComment +{ +public: + class CS_API Attribute + { + public: + Attribute(); + STRING(Name) + STRING(Value) + }; + HTMLStartTagComment(); + STRING(TagName) + VECTOR(Attribute, Attributes) +}; + +class CS_API HTMLEndTagComment : public HTMLTagComment +{ +public: + HTMLEndTagComment(); + STRING(TagName) +}; + +class CS_API TextComment : public InlineContentComment +{ +public: + TextComment(); + STRING(Text) }; enum class RawCommentKind diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp index 2fe291bb..1f028551 100644 --- a/src/CppParser/Bindings/CLI/AST.cpp +++ b/src/CppParser/Bindings/CLI/AST.cpp @@ -10,7 +10,7 @@ CppSharp::Parser::AST::Type::Type(::CppSharp::CppParser::AST::Type* native) CppSharp::Parser::AST::Type^ CppSharp::Parser::AST::Type::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*) native.ToPointer()); } CppSharp::Parser::AST::Type::Type(CppSharp::Parser::AST::TypeKind kind) @@ -62,7 +62,7 @@ CppSharp::Parser::AST::TypeQualifiers::TypeQualifiers(::CppSharp::CppParser::AST CppSharp::Parser::AST::TypeQualifiers^ CppSharp::Parser::AST::TypeQualifiers::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TypeQualifiers((::CppSharp::CppParser::AST::TypeQualifiers*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TypeQualifiers((::CppSharp::CppParser::AST::TypeQualifiers*) native.ToPointer()); } CppSharp::Parser::AST::TypeQualifiers::TypeQualifiers(CppSharp::Parser::AST::TypeQualifiers^ _0) @@ -123,7 +123,7 @@ CppSharp::Parser::AST::QualifiedType::QualifiedType(::CppSharp::CppParser::AST:: CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::QualifiedType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*) native.ToPointer()); } CppSharp::Parser::AST::QualifiedType::QualifiedType() @@ -174,7 +174,7 @@ CppSharp::Parser::AST::TagType::TagType(::CppSharp::CppParser::AST::TagType* nat CppSharp::Parser::AST::TagType^ CppSharp::Parser::AST::TagType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TagType((::CppSharp::CppParser::AST::TagType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TagType((::CppSharp::CppParser::AST::TagType*) native.ToPointer()); } CppSharp::Parser::AST::TagType::TagType() @@ -207,7 +207,7 @@ CppSharp::Parser::AST::ArrayType::ArrayType(::CppSharp::CppParser::AST::ArrayTyp CppSharp::Parser::AST::ArrayType^ CppSharp::Parser::AST::ArrayType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::ArrayType((::CppSharp::CppParser::AST::ArrayType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::ArrayType((::CppSharp::CppParser::AST::ArrayType*) native.ToPointer()); } CppSharp::Parser::AST::ArrayType::ArrayType() @@ -260,7 +260,7 @@ CppSharp::Parser::AST::FunctionType::FunctionType(::CppSharp::CppParser::AST::Fu CppSharp::Parser::AST::FunctionType^ CppSharp::Parser::AST::FunctionType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::FunctionType((::CppSharp::CppParser::AST::FunctionType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::FunctionType((::CppSharp::CppParser::AST::FunctionType*) native.ToPointer()); } CppSharp::Parser::AST::FunctionType::FunctionType() @@ -327,7 +327,7 @@ CppSharp::Parser::AST::PointerType::PointerType(::CppSharp::CppParser::AST::Poin CppSharp::Parser::AST::PointerType^ CppSharp::Parser::AST::PointerType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::PointerType((::CppSharp::CppParser::AST::PointerType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::PointerType((::CppSharp::CppParser::AST::PointerType*) native.ToPointer()); } CppSharp::Parser::AST::PointerType::PointerType() @@ -370,7 +370,7 @@ CppSharp::Parser::AST::MemberPointerType::MemberPointerType(::CppSharp::CppParse CppSharp::Parser::AST::MemberPointerType^ CppSharp::Parser::AST::MemberPointerType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::MemberPointerType((::CppSharp::CppParser::AST::MemberPointerType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::MemberPointerType((::CppSharp::CppParser::AST::MemberPointerType*) native.ToPointer()); } CppSharp::Parser::AST::MemberPointerType::MemberPointerType() @@ -403,7 +403,7 @@ CppSharp::Parser::AST::TypedefType::TypedefType(::CppSharp::CppParser::AST::Type CppSharp::Parser::AST::TypedefType^ CppSharp::Parser::AST::TypedefType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TypedefType((::CppSharp::CppParser::AST::TypedefType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TypedefType((::CppSharp::CppParser::AST::TypedefType*) native.ToPointer()); } CppSharp::Parser::AST::TypedefType::TypedefType() @@ -436,7 +436,7 @@ CppSharp::Parser::AST::AttributedType::AttributedType(::CppSharp::CppParser::AST CppSharp::Parser::AST::AttributedType^ CppSharp::Parser::AST::AttributedType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::AttributedType((::CppSharp::CppParser::AST::AttributedType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::AttributedType((::CppSharp::CppParser::AST::AttributedType*) native.ToPointer()); } CppSharp::Parser::AST::AttributedType::AttributedType() @@ -479,7 +479,7 @@ CppSharp::Parser::AST::DecayedType::DecayedType(::CppSharp::CppParser::AST::Deca CppSharp::Parser::AST::DecayedType^ CppSharp::Parser::AST::DecayedType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::DecayedType((::CppSharp::CppParser::AST::DecayedType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::DecayedType((::CppSharp::CppParser::AST::DecayedType*) native.ToPointer()); } CppSharp::Parser::AST::DecayedType::DecayedType() @@ -532,7 +532,7 @@ CppSharp::Parser::AST::TemplateArgument::TemplateArgument(::CppSharp::CppParser: CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::TemplateArgument::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TemplateArgument((::CppSharp::CppParser::AST::TemplateArgument*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TemplateArgument((::CppSharp::CppParser::AST::TemplateArgument*) native.ToPointer()); } CppSharp::Parser::AST::TemplateArgument::TemplateArgument() @@ -603,7 +603,7 @@ CppSharp::Parser::AST::TemplateSpecializationType::TemplateSpecializationType(:: CppSharp::Parser::AST::TemplateSpecializationType^ CppSharp::Parser::AST::TemplateSpecializationType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TemplateSpecializationType((::CppSharp::CppParser::AST::TemplateSpecializationType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TemplateSpecializationType((::CppSharp::CppParser::AST::TemplateSpecializationType*) native.ToPointer()); } CppSharp::Parser::AST::TemplateSpecializationType::TemplateSpecializationType() @@ -670,7 +670,7 @@ CppSharp::Parser::AST::TemplateParameter::TemplateParameter(::CppSharp::CppParse CppSharp::Parser::AST::TemplateParameter^ CppSharp::Parser::AST::TemplateParameter::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TemplateParameter((::CppSharp::CppParser::AST::TemplateParameter*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TemplateParameter((::CppSharp::CppParser::AST::TemplateParameter*) native.ToPointer()); } CppSharp::Parser::AST::TemplateParameter::TemplateParameter() @@ -738,7 +738,7 @@ CppSharp::Parser::AST::TemplateParameterType::TemplateParameterType(::CppSharp:: CppSharp::Parser::AST::TemplateParameterType^ CppSharp::Parser::AST::TemplateParameterType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TemplateParameterType((::CppSharp::CppParser::AST::TemplateParameterType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TemplateParameterType((::CppSharp::CppParser::AST::TemplateParameterType*) native.ToPointer()); } CppSharp::Parser::AST::TemplateParameterType::TemplateParameterType() @@ -801,7 +801,7 @@ CppSharp::Parser::AST::TemplateParameterSubstitutionType::TemplateParameterSubst CppSharp::Parser::AST::TemplateParameterSubstitutionType^ CppSharp::Parser::AST::TemplateParameterSubstitutionType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TemplateParameterSubstitutionType((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TemplateParameterSubstitutionType((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*) native.ToPointer()); } CppSharp::Parser::AST::TemplateParameterSubstitutionType::TemplateParameterSubstitutionType() @@ -834,7 +834,7 @@ CppSharp::Parser::AST::InjectedClassNameType::InjectedClassNameType(::CppSharp:: CppSharp::Parser::AST::InjectedClassNameType^ CppSharp::Parser::AST::InjectedClassNameType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::InjectedClassNameType((::CppSharp::CppParser::AST::InjectedClassNameType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::InjectedClassNameType((::CppSharp::CppParser::AST::InjectedClassNameType*) native.ToPointer()); } CppSharp::Parser::AST::InjectedClassNameType::InjectedClassNameType() @@ -877,7 +877,7 @@ CppSharp::Parser::AST::DependentNameType::DependentNameType(::CppSharp::CppParse CppSharp::Parser::AST::DependentNameType^ CppSharp::Parser::AST::DependentNameType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::DependentNameType((::CppSharp::CppParser::AST::DependentNameType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::DependentNameType((::CppSharp::CppParser::AST::DependentNameType*) native.ToPointer()); } CppSharp::Parser::AST::DependentNameType::DependentNameType() @@ -900,7 +900,7 @@ CppSharp::Parser::AST::PackExpansionType::PackExpansionType(::CppSharp::CppParse CppSharp::Parser::AST::PackExpansionType^ CppSharp::Parser::AST::PackExpansionType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::PackExpansionType((::CppSharp::CppParser::AST::PackExpansionType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::PackExpansionType((::CppSharp::CppParser::AST::PackExpansionType*) native.ToPointer()); } CppSharp::Parser::AST::PackExpansionType::PackExpansionType() @@ -923,7 +923,7 @@ CppSharp::Parser::AST::BuiltinType::BuiltinType(::CppSharp::CppParser::AST::Buil CppSharp::Parser::AST::BuiltinType^ CppSharp::Parser::AST::BuiltinType::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::BuiltinType((::CppSharp::CppParser::AST::BuiltinType*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::BuiltinType((::CppSharp::CppParser::AST::BuiltinType*) native.ToPointer()); } CppSharp::Parser::AST::BuiltinType::BuiltinType() @@ -956,7 +956,7 @@ CppSharp::Parser::AST::VTableComponent::VTableComponent(::CppSharp::CppParser::A CppSharp::Parser::AST::VTableComponent^ CppSharp::Parser::AST::VTableComponent::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::VTableComponent((::CppSharp::CppParser::AST::VTableComponent*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::VTableComponent((::CppSharp::CppParser::AST::VTableComponent*) native.ToPointer()); } CppSharp::Parser::AST::VTableComponent::VTableComponent() @@ -1017,7 +1017,7 @@ CppSharp::Parser::AST::VTableLayout::VTableLayout(::CppSharp::CppParser::AST::VT CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::VTableLayout::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::VTableLayout((::CppSharp::CppParser::AST::VTableLayout*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::VTableLayout((::CppSharp::CppParser::AST::VTableLayout*) native.ToPointer()); } CppSharp::Parser::AST::VTableLayout::VTableLayout() @@ -1072,7 +1072,7 @@ CppSharp::Parser::AST::VFTableInfo::VFTableInfo(::CppSharp::CppParser::AST::VFTa CppSharp::Parser::AST::VFTableInfo^ CppSharp::Parser::AST::VFTableInfo::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::VFTableInfo((::CppSharp::CppParser::AST::VFTableInfo*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::VFTableInfo((::CppSharp::CppParser::AST::VFTableInfo*) native.ToPointer()); } CppSharp::Parser::AST::VFTableInfo::VFTableInfo() @@ -1143,7 +1143,7 @@ CppSharp::Parser::AST::ClassLayout::ClassLayout(::CppSharp::CppParser::AST::Clas CppSharp::Parser::AST::ClassLayout^ CppSharp::Parser::AST::ClassLayout::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::ClassLayout((::CppSharp::CppParser::AST::ClassLayout*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::ClassLayout((::CppSharp::CppParser::AST::ClassLayout*) native.ToPointer()); } CppSharp::Parser::AST::ClassLayout::ClassLayout() @@ -1268,7 +1268,7 @@ CppSharp::Parser::AST::Declaration::Declaration(::CppSharp::CppParser::AST::Decl CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Declaration::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*) native.ToPointer()); } CppSharp::Parser::AST::Declaration::Declaration(CppSharp::Parser::AST::DeclarationKind kind) @@ -1474,7 +1474,7 @@ CppSharp::Parser::AST::DeclarationContext::DeclarationContext(::CppSharp::CppPar CppSharp::Parser::AST::DeclarationContext^ CppSharp::Parser::AST::DeclarationContext::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::DeclarationContext((::CppSharp::CppParser::AST::DeclarationContext*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::DeclarationContext((::CppSharp::CppParser::AST::DeclarationContext*) native.ToPointer()); } CppSharp::Parser::AST::DeclarationContext::DeclarationContext(CppSharp::Parser::AST::DeclarationKind kind) @@ -1700,7 +1700,7 @@ CppSharp::Parser::AST::TypedefDecl::TypedefDecl(::CppSharp::CppParser::AST::Type CppSharp::Parser::AST::TypedefDecl^ CppSharp::Parser::AST::TypedefDecl::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TypedefDecl((::CppSharp::CppParser::AST::TypedefDecl*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TypedefDecl((::CppSharp::CppParser::AST::TypedefDecl*) native.ToPointer()); } CppSharp::Parser::AST::TypedefDecl::TypedefDecl() @@ -1733,7 +1733,7 @@ CppSharp::Parser::AST::Friend::Friend(::CppSharp::CppParser::AST::Friend* native CppSharp::Parser::AST::Friend^ CppSharp::Parser::AST::Friend::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Friend((::CppSharp::CppParser::AST::Friend*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Friend((::CppSharp::CppParser::AST::Friend*) native.ToPointer()); } CppSharp::Parser::AST::Friend::Friend() @@ -1766,7 +1766,7 @@ CppSharp::Parser::AST::Statement::Statement(::CppSharp::CppParser::AST::Statemen CppSharp::Parser::AST::Statement^ CppSharp::Parser::AST::Statement::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Statement((::CppSharp::CppParser::AST::Statement*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Statement((::CppSharp::CppParser::AST::Statement*) native.ToPointer()); } CppSharp::Parser::AST::Statement::Statement(CppSharp::Parser::AST::Statement^ _0) @@ -1826,7 +1826,7 @@ CppSharp::Parser::AST::Expression::Expression(::CppSharp::CppParser::AST::Expres CppSharp::Parser::AST::Expression^ CppSharp::Parser::AST::Expression::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Expression((::CppSharp::CppParser::AST::Expression*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Expression((::CppSharp::CppParser::AST::Expression*) native.ToPointer()); } CppSharp::Parser::AST::Expression::Expression(CppSharp::Parser::AST::Expression^ _0) @@ -1853,7 +1853,7 @@ CppSharp::Parser::AST::BinaryOperator::BinaryOperator(::CppSharp::CppParser::AST CppSharp::Parser::AST::BinaryOperator^ CppSharp::Parser::AST::BinaryOperator::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::BinaryOperator((::CppSharp::CppParser::AST::BinaryOperator*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::BinaryOperator((::CppSharp::CppParser::AST::BinaryOperator*) native.ToPointer()); } CppSharp::Parser::AST::BinaryOperator::BinaryOperator(CppSharp::Parser::AST::BinaryOperator^ _0) @@ -1904,7 +1904,7 @@ CppSharp::Parser::AST::Parameter::Parameter(::CppSharp::CppParser::AST::Paramete CppSharp::Parser::AST::Parameter^ CppSharp::Parser::AST::Parameter::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Parameter((::CppSharp::CppParser::AST::Parameter*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Parameter((::CppSharp::CppParser::AST::Parameter*) native.ToPointer()); } CppSharp::Parser::AST::Parameter::Parameter() @@ -1977,7 +1977,7 @@ CppSharp::Parser::AST::Function::Function(::CppSharp::CppParser::AST::Function* CppSharp::Parser::AST::Function^ CppSharp::Parser::AST::Function::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Function((::CppSharp::CppParser::AST::Function*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Function((::CppSharp::CppParser::AST::Function*) native.ToPointer()); } CppSharp::Parser::AST::Function::Function() @@ -2152,7 +2152,7 @@ CppSharp::Parser::AST::Method::Method(::CppSharp::CppParser::AST::Method* native CppSharp::Parser::AST::Method^ CppSharp::Parser::AST::Method::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Method((::CppSharp::CppParser::AST::Method*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Method((::CppSharp::CppParser::AST::Method*) native.ToPointer()); } CppSharp::Parser::AST::Method::Method() @@ -2295,7 +2295,7 @@ CppSharp::Parser::AST::Enumeration::Item::Item(::CppSharp::CppParser::AST::Enume CppSharp::Parser::AST::Enumeration::Item^ CppSharp::Parser::AST::Enumeration::Item::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Enumeration::Item((::CppSharp::CppParser::AST::Enumeration::Item*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Enumeration::Item((::CppSharp::CppParser::AST::Enumeration::Item*) native.ToPointer()); } CppSharp::Parser::AST::Enumeration::Item::Item() @@ -2342,7 +2342,7 @@ CppSharp::Parser::AST::Enumeration::Enumeration(::CppSharp::CppParser::AST::Enum CppSharp::Parser::AST::Enumeration^ CppSharp::Parser::AST::Enumeration::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Enumeration((::CppSharp::CppParser::AST::Enumeration*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Enumeration((::CppSharp::CppParser::AST::Enumeration*) native.ToPointer()); } CppSharp::Parser::AST::Enumeration::Enumeration() @@ -2419,7 +2419,7 @@ CppSharp::Parser::AST::Variable::Variable(::CppSharp::CppParser::AST::Variable* CppSharp::Parser::AST::Variable^ CppSharp::Parser::AST::Variable::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Variable((::CppSharp::CppParser::AST::Variable*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Variable((::CppSharp::CppParser::AST::Variable*) native.ToPointer()); } CppSharp::Parser::AST::Variable::Variable() @@ -2466,7 +2466,7 @@ CppSharp::Parser::AST::BaseClassSpecifier::BaseClassSpecifier(::CppSharp::CppPar CppSharp::Parser::AST::BaseClassSpecifier^ CppSharp::Parser::AST::BaseClassSpecifier::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::BaseClassSpecifier((::CppSharp::CppParser::AST::BaseClassSpecifier*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::BaseClassSpecifier((::CppSharp::CppParser::AST::BaseClassSpecifier*) native.ToPointer()); } CppSharp::Parser::AST::BaseClassSpecifier::BaseClassSpecifier() @@ -2537,7 +2537,7 @@ CppSharp::Parser::AST::Field::Field(::CppSharp::CppParser::AST::Field* native) CppSharp::Parser::AST::Field^ CppSharp::Parser::AST::Field::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Field((::CppSharp::CppParser::AST::Field*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Field((::CppSharp::CppParser::AST::Field*) native.ToPointer()); } CppSharp::Parser::AST::Field::Field() @@ -2610,7 +2610,7 @@ CppSharp::Parser::AST::AccessSpecifierDecl::AccessSpecifierDecl(::CppSharp::CppP CppSharp::Parser::AST::AccessSpecifierDecl^ CppSharp::Parser::AST::AccessSpecifierDecl::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::AccessSpecifierDecl((::CppSharp::CppParser::AST::AccessSpecifierDecl*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::AccessSpecifierDecl((::CppSharp::CppParser::AST::AccessSpecifierDecl*) native.ToPointer()); } CppSharp::Parser::AST::AccessSpecifierDecl::AccessSpecifierDecl() @@ -2633,7 +2633,7 @@ CppSharp::Parser::AST::Class::Class(::CppSharp::CppParser::AST::Class* native) CppSharp::Parser::AST::Class^ CppSharp::Parser::AST::Class::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*) native.ToPointer()); } CppSharp::Parser::AST::Class::Class() @@ -2852,7 +2852,7 @@ CppSharp::Parser::AST::Template::Template(::CppSharp::CppParser::AST::Template* CppSharp::Parser::AST::Template^ CppSharp::Parser::AST::Template::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Template((::CppSharp::CppParser::AST::Template*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Template((::CppSharp::CppParser::AST::Template*) native.ToPointer()); } CppSharp::Parser::AST::Template::Template(CppSharp::Parser::AST::DeclarationKind kind) @@ -2916,7 +2916,7 @@ CppSharp::Parser::AST::ClassTemplate::ClassTemplate(::CppSharp::CppParser::AST:: CppSharp::Parser::AST::ClassTemplate^ CppSharp::Parser::AST::ClassTemplate::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::ClassTemplate((::CppSharp::CppParser::AST::ClassTemplate*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::ClassTemplate((::CppSharp::CppParser::AST::ClassTemplate*) native.ToPointer()); } CppSharp::Parser::AST::ClassTemplate::ClassTemplate() @@ -2963,7 +2963,7 @@ CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization( CppSharp::Parser::AST::ClassTemplateSpecialization^ CppSharp::Parser::AST::ClassTemplateSpecialization::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::ClassTemplateSpecialization((::CppSharp::CppParser::AST::ClassTemplateSpecialization*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((::CppSharp::CppParser::AST::ClassTemplateSpecialization*) native.ToPointer()); } CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization() @@ -3030,7 +3030,7 @@ CppSharp::Parser::AST::ClassTemplatePartialSpecialization::ClassTemplatePartialS CppSharp::Parser::AST::ClassTemplatePartialSpecialization^ CppSharp::Parser::AST::ClassTemplatePartialSpecialization::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::ClassTemplatePartialSpecialization((::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::ClassTemplatePartialSpecialization((::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization*) native.ToPointer()); } CppSharp::Parser::AST::ClassTemplatePartialSpecialization::ClassTemplatePartialSpecialization() @@ -3053,7 +3053,7 @@ CppSharp::Parser::AST::FunctionTemplate::FunctionTemplate(::CppSharp::CppParser: CppSharp::Parser::AST::FunctionTemplate^ CppSharp::Parser::AST::FunctionTemplate::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::FunctionTemplate((::CppSharp::CppParser::AST::FunctionTemplate*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::FunctionTemplate((::CppSharp::CppParser::AST::FunctionTemplate*) native.ToPointer()); } CppSharp::Parser::AST::FunctionTemplate::FunctionTemplate() @@ -3100,7 +3100,7 @@ CppSharp::Parser::AST::FunctionTemplateSpecialization::FunctionTemplateSpecializ CppSharp::Parser::AST::FunctionTemplateSpecialization^ CppSharp::Parser::AST::FunctionTemplateSpecialization::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::FunctionTemplateSpecialization((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*) native.ToPointer()); } CppSharp::Parser::AST::FunctionTemplateSpecialization::FunctionTemplateSpecialization() @@ -3185,7 +3185,7 @@ CppSharp::Parser::AST::Namespace::Namespace(::CppSharp::CppParser::AST::Namespac CppSharp::Parser::AST::Namespace^ CppSharp::Parser::AST::Namespace::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Namespace((::CppSharp::CppParser::AST::Namespace*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Namespace((::CppSharp::CppParser::AST::Namespace*) native.ToPointer()); } CppSharp::Parser::AST::Namespace::Namespace() @@ -3218,7 +3218,7 @@ CppSharp::Parser::AST::PreprocessedEntity::PreprocessedEntity(::CppSharp::CppPar CppSharp::Parser::AST::PreprocessedEntity^ CppSharp::Parser::AST::PreprocessedEntity::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::PreprocessedEntity((::CppSharp::CppParser::AST::PreprocessedEntity*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::PreprocessedEntity((::CppSharp::CppParser::AST::PreprocessedEntity*) native.ToPointer()); } CppSharp::Parser::AST::PreprocessedEntity::PreprocessedEntity() @@ -3251,7 +3251,7 @@ CppSharp::Parser::AST::MacroDefinition::MacroDefinition(::CppSharp::CppParser::A CppSharp::Parser::AST::MacroDefinition^ CppSharp::Parser::AST::MacroDefinition::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::MacroDefinition((::CppSharp::CppParser::AST::MacroDefinition*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::MacroDefinition((::CppSharp::CppParser::AST::MacroDefinition*) native.ToPointer()); } CppSharp::Parser::AST::MacroDefinition::MacroDefinition() @@ -3288,7 +3288,7 @@ CppSharp::Parser::AST::MacroExpansion::MacroExpansion(::CppSharp::CppParser::AST CppSharp::Parser::AST::MacroExpansion^ CppSharp::Parser::AST::MacroExpansion::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::MacroExpansion((::CppSharp::CppParser::AST::MacroExpansion*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::MacroExpansion((::CppSharp::CppParser::AST::MacroExpansion*) native.ToPointer()); } CppSharp::Parser::AST::MacroExpansion::MacroExpansion() @@ -3335,7 +3335,7 @@ CppSharp::Parser::AST::TranslationUnit::TranslationUnit(::CppSharp::CppParser::A CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::TranslationUnit::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::TranslationUnit((::CppSharp::CppParser::AST::TranslationUnit*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::TranslationUnit((::CppSharp::CppParser::AST::TranslationUnit*) native.ToPointer()); } CppSharp::Parser::AST::TranslationUnit::TranslationUnit() @@ -3406,7 +3406,7 @@ CppSharp::Parser::AST::NativeLibrary::NativeLibrary(::CppSharp::CppParser::AST:: CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::AST::NativeLibrary::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*) native.ToPointer()); } CppSharp::Parser::AST::NativeLibrary::NativeLibrary() @@ -3511,7 +3511,7 @@ CppSharp::Parser::AST::ASTContext::ASTContext(::CppSharp::CppParser::AST::ASTCon CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::AST::ASTContext::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::ASTContext((::CppSharp::CppParser::AST::ASTContext*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::ASTContext((::CppSharp::CppParser::AST::ASTContext*) native.ToPointer()); } CppSharp::Parser::AST::ASTContext::ASTContext() @@ -3566,7 +3566,7 @@ CppSharp::Parser::AST::Comment::Comment(::CppSharp::CppParser::AST::Comment* nat CppSharp::Parser::AST::Comment^ CppSharp::Parser::AST::Comment::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*) native.ToPointer()); } CppSharp::Parser::AST::Comment::Comment(CppSharp::Parser::AST::CommentKind kind) @@ -3601,6 +3601,36 @@ void CppSharp::Parser::AST::Comment::Kind::set(CppSharp::Parser::AST::CommentKin ((::CppSharp::CppParser::AST::Comment*)NativePtr)->Kind = (::CppSharp::CppParser::AST::CommentKind)value; } +CppSharp::Parser::AST::BlockContentComment::BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)native) +{ +} + +CppSharp::Parser::AST::BlockContentComment^ CppSharp::Parser::AST::BlockContentComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::BlockContentComment::BlockContentComment() + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::BlockContentComment(); +} + +CppSharp::Parser::AST::BlockContentComment::BlockContentComment(CppSharp::Parser::AST::CommentKind Kind) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + auto arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind; + NativePtr = new ::CppSharp::CppParser::AST::BlockContentComment(arg0); +} + +CppSharp::Parser::AST::BlockContentComment::BlockContentComment(CppSharp::Parser::AST::BlockContentComment^ _0) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::BlockContentComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::BlockContentComment(arg0); +} + CppSharp::Parser::AST::FullComment::FullComment(::CppSharp::CppParser::AST::FullComment* native) : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)native) { @@ -3608,7 +3638,7 @@ CppSharp::Parser::AST::FullComment::FullComment(::CppSharp::CppParser::AST::Full CppSharp::Parser::AST::FullComment^ CppSharp::Parser::AST::FullComment::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*) native.ToPointer()); } CppSharp::Parser::AST::FullComment::FullComment() @@ -3617,6 +3647,24 @@ CppSharp::Parser::AST::FullComment::FullComment() NativePtr = new ::CppSharp::CppParser::AST::FullComment(); } +CppSharp::Parser::AST::BlockContentComment^ CppSharp::Parser::AST::FullComment::getBlocks(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocks(i); + if (__ret == nullptr) return nullptr; + return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)__ret); +} + +void CppSharp::Parser::AST::FullComment::addBlocks(CppSharp::Parser::AST::BlockContentComment^ s) +{ + auto arg0 = (::CppSharp::CppParser::AST::BlockContentComment*)s->NativePtr; + ((::CppSharp::CppParser::AST::FullComment*)NativePtr)->addBlocks(arg0); +} + +void CppSharp::Parser::AST::FullComment::clearBlocks() +{ + ((::CppSharp::CppParser::AST::FullComment*)NativePtr)->clearBlocks(); +} + CppSharp::Parser::AST::FullComment::FullComment(CppSharp::Parser::AST::FullComment^ _0) : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) { @@ -3624,6 +3672,744 @@ CppSharp::Parser::AST::FullComment::FullComment(CppSharp::Parser::AST::FullComme NativePtr = new ::CppSharp::CppParser::AST::FullComment(arg0); } +unsigned int CppSharp::Parser::AST::FullComment::BlocksCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocksCount(); + return __ret; +} + +CppSharp::Parser::AST::BlockCommandComment::Argument::Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native) +{ + NativePtr = native; +} + +CppSharp::Parser::AST::BlockCommandComment::Argument^ CppSharp::Parser::AST::BlockCommandComment::Argument::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((::CppSharp::CppParser::AST::BlockCommandComment::Argument*) native.ToPointer()); +} + +CppSharp::Parser::AST::BlockCommandComment::Argument::Argument() +{ + NativePtr = new ::CppSharp::CppParser::AST::BlockCommandComment::Argument(); +} + +CppSharp::Parser::AST::BlockCommandComment::Argument::Argument(CppSharp::Parser::AST::BlockCommandComment::Argument^ _0) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::BlockCommandComment::Argument*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::BlockCommandComment::Argument(arg0); +} + +System::IntPtr CppSharp::Parser::AST::BlockCommandComment::Argument::__Instance::get() +{ + return System::IntPtr(NativePtr); +} + +void CppSharp::Parser::AST::BlockCommandComment::Argument::__Instance::set(System::IntPtr object) +{ + NativePtr = (::CppSharp::CppParser::AST::BlockCommandComment::Argument*)object.ToPointer(); +} + +System::String^ CppSharp::Parser::AST::BlockCommandComment::Argument::Text::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)NativePtr)->getText(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::BlockCommandComment::Argument::Text::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)NativePtr)->setText(arg0); +} + +CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(::CppSharp::CppParser::AST::BlockCommandComment* native) + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)native) +{ +} + +CppSharp::Parser::AST::BlockCommandComment^ CppSharp::Parser::AST::BlockCommandComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment() + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::BlockCommandComment(); +} + +CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(CppSharp::Parser::AST::CommentKind Kind) + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) +{ + auto arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind; + NativePtr = new ::CppSharp::CppParser::AST::BlockCommandComment(arg0); +} + +CppSharp::Parser::AST::BlockCommandComment::Argument^ CppSharp::Parser::AST::BlockCommandComment::getArguments(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArguments(i); + auto ____ret = new ::CppSharp::CppParser::AST::BlockCommandComment::Argument(__ret); + return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockCommandComment::Argument((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)____ret); +} + +void CppSharp::Parser::AST::BlockCommandComment::addArguments(CppSharp::Parser::AST::BlockCommandComment::Argument^ s) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::BlockCommandComment::Argument*)s->NativePtr; + ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->addArguments(arg0); +} + +void CppSharp::Parser::AST::BlockCommandComment::clearArguments() +{ + ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->clearArguments(); +} + +CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(CppSharp::Parser::AST::BlockCommandComment^ _0) + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::BlockCommandComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::BlockCommandComment(arg0); +} + +unsigned int CppSharp::Parser::AST::BlockCommandComment::ArgumentsCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArgumentsCount(); + return __ret; +} + +unsigned int CppSharp::Parser::AST::BlockCommandComment::CommandId::get() +{ + return ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->CommandId; +} + +void CppSharp::Parser::AST::BlockCommandComment::CommandId::set(unsigned int value) +{ + ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->CommandId = value; +} + +CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)native) +{ +} + +CppSharp::Parser::AST::ParamCommandComment^ CppSharp::Parser::AST::ParamCommandComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::ParamCommandComment((::CppSharp::CppParser::AST::ParamCommandComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment() + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::ParamCommandComment(); +} + +CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment(CppSharp::Parser::AST::ParamCommandComment^ _0) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::ParamCommandComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::ParamCommandComment(arg0); +} + +CppSharp::Parser::AST::ParamCommandComment::PassDirection CppSharp::Parser::AST::ParamCommandComment::Direction::get() +{ + return (CppSharp::Parser::AST::ParamCommandComment::PassDirection)((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->Direction; +} + +void CppSharp::Parser::AST::ParamCommandComment::Direction::set(CppSharp::Parser::AST::ParamCommandComment::PassDirection value) +{ + ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->Direction = (::CppSharp::CppParser::AST::ParamCommandComment::PassDirection)value; +} + +unsigned int CppSharp::Parser::AST::ParamCommandComment::ParamIndex::get() +{ + return ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->ParamIndex; +} + +void CppSharp::Parser::AST::ParamCommandComment::ParamIndex::set(unsigned int value) +{ + ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->ParamIndex = value; +} + +CppSharp::Parser::AST::TParamCommandComment::TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)native) +{ +} + +CppSharp::Parser::AST::TParamCommandComment^ CppSharp::Parser::AST::TParamCommandComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::TParamCommandComment((::CppSharp::CppParser::AST::TParamCommandComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::TParamCommandComment::TParamCommandComment() + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::TParamCommandComment(); +} + +unsigned int CppSharp::Parser::AST::TParamCommandComment::getPosition(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPosition(i); + return __ret; +} + +void CppSharp::Parser::AST::TParamCommandComment::addPosition(unsigned int* s) +{ + auto arg0 = (unsigned int&)s; + ((::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->addPosition(arg0); +} + +void CppSharp::Parser::AST::TParamCommandComment::clearPosition() +{ + ((::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->clearPosition(); +} + +CppSharp::Parser::AST::TParamCommandComment::TParamCommandComment(CppSharp::Parser::AST::TParamCommandComment^ _0) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::TParamCommandComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::TParamCommandComment(arg0); +} + +unsigned int CppSharp::Parser::AST::TParamCommandComment::PositionCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPositionCount(); + return __ret; +} + +CppSharp::Parser::AST::VerbatimBlockLineComment::VerbatimBlockLineComment(::CppSharp::CppParser::AST::VerbatimBlockLineComment* native) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)native) +{ +} + +CppSharp::Parser::AST::VerbatimBlockLineComment^ CppSharp::Parser::AST::VerbatimBlockLineComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((::CppSharp::CppParser::AST::VerbatimBlockLineComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::VerbatimBlockLineComment::VerbatimBlockLineComment() + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::VerbatimBlockLineComment(); +} + +CppSharp::Parser::AST::VerbatimBlockLineComment::VerbatimBlockLineComment(CppSharp::Parser::AST::VerbatimBlockLineComment^ _0) + : CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::VerbatimBlockLineComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::VerbatimBlockLineComment(arg0); +} + +System::String^ CppSharp::Parser::AST::VerbatimBlockLineComment::Text::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)NativePtr)->getText(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::VerbatimBlockLineComment::Text::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)NativePtr)->setText(arg0); +} + +CppSharp::Parser::AST::VerbatimBlockComment::VerbatimBlockComment(::CppSharp::CppParser::AST::VerbatimBlockComment* native) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)native) +{ +} + +CppSharp::Parser::AST::VerbatimBlockComment^ CppSharp::Parser::AST::VerbatimBlockComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::VerbatimBlockComment((::CppSharp::CppParser::AST::VerbatimBlockComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::VerbatimBlockComment::VerbatimBlockComment() + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::VerbatimBlockComment(); +} + +CppSharp::Parser::AST::VerbatimBlockLineComment^ CppSharp::Parser::AST::VerbatimBlockComment::getLines(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLines(i); + if (__ret == nullptr) return nullptr; + return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VerbatimBlockLineComment((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)__ret); +} + +void CppSharp::Parser::AST::VerbatimBlockComment::addLines(CppSharp::Parser::AST::VerbatimBlockLineComment^ s) +{ + auto arg0 = (::CppSharp::CppParser::AST::VerbatimBlockLineComment*)s->NativePtr; + ((::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->addLines(arg0); +} + +void CppSharp::Parser::AST::VerbatimBlockComment::clearLines() +{ + ((::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->clearLines(); +} + +CppSharp::Parser::AST::VerbatimBlockComment::VerbatimBlockComment(CppSharp::Parser::AST::VerbatimBlockComment^ _0) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::VerbatimBlockComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::VerbatimBlockComment(arg0); +} + +unsigned int CppSharp::Parser::AST::VerbatimBlockComment::LinesCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLinesCount(); + return __ret; +} + +CppSharp::Parser::AST::VerbatimLineComment::VerbatimLineComment(::CppSharp::CppParser::AST::VerbatimLineComment* native) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)native) +{ +} + +CppSharp::Parser::AST::VerbatimLineComment^ CppSharp::Parser::AST::VerbatimLineComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::VerbatimLineComment((::CppSharp::CppParser::AST::VerbatimLineComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::VerbatimLineComment::VerbatimLineComment() + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::VerbatimLineComment(); +} + +CppSharp::Parser::AST::VerbatimLineComment::VerbatimLineComment(CppSharp::Parser::AST::VerbatimLineComment^ _0) + : CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::VerbatimLineComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::VerbatimLineComment(arg0); +} + +System::String^ CppSharp::Parser::AST::VerbatimLineComment::Text::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::VerbatimLineComment*)NativePtr)->getText(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::VerbatimLineComment::Text::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::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::Comment((::CppSharp::CppParser::AST::Comment*)nullptr) +{ + 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) +{ + 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) +{ + 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() + : CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)nullptr) +{ + 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) +{ + 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) +{ + 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) +{ + NativePtr = native; +} + +CppSharp::Parser::AST::InlineCommandComment::Argument^ CppSharp::Parser::AST::InlineCommandComment::Argument::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((::CppSharp::CppParser::AST::InlineCommandComment::Argument*) native.ToPointer()); +} + +CppSharp::Parser::AST::InlineCommandComment::Argument::Argument() +{ + NativePtr = new ::CppSharp::CppParser::AST::InlineCommandComment::Argument(); +} + +CppSharp::Parser::AST::InlineCommandComment::Argument::Argument(CppSharp::Parser::AST::InlineCommandComment::Argument^ _0) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::InlineCommandComment::Argument*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::InlineCommandComment::Argument(arg0); +} + +System::IntPtr CppSharp::Parser::AST::InlineCommandComment::Argument::__Instance::get() +{ + return System::IntPtr(NativePtr); +} + +void CppSharp::Parser::AST::InlineCommandComment::Argument::__Instance::set(System::IntPtr object) +{ + NativePtr = (::CppSharp::CppParser::AST::InlineCommandComment::Argument*)object.ToPointer(); +} + +System::String^ CppSharp::Parser::AST::InlineCommandComment::Argument::Text::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)NativePtr)->getText(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::InlineCommandComment::Argument::Text::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)NativePtr)->setText(arg0); +} + +CppSharp::Parser::AST::InlineCommandComment::InlineCommandComment(::CppSharp::CppParser::AST::InlineCommandComment* native) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)native) +{ +} + +CppSharp::Parser::AST::InlineCommandComment^ CppSharp::Parser::AST::InlineCommandComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::InlineCommandComment((::CppSharp::CppParser::AST::InlineCommandComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::InlineCommandComment::InlineCommandComment() + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::InlineCommandComment(); +} + +CppSharp::Parser::AST::InlineCommandComment::Argument^ CppSharp::Parser::AST::InlineCommandComment::getArguments(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArguments(i); + auto ____ret = new ::CppSharp::CppParser::AST::InlineCommandComment::Argument(__ret); + return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineCommandComment::Argument((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)____ret); +} + +void CppSharp::Parser::AST::InlineCommandComment::addArguments(CppSharp::Parser::AST::InlineCommandComment::Argument^ s) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::InlineCommandComment::Argument*)s->NativePtr; + ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->addArguments(arg0); +} + +void CppSharp::Parser::AST::InlineCommandComment::clearArguments() +{ + ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->clearArguments(); +} + +CppSharp::Parser::AST::InlineCommandComment::InlineCommandComment(CppSharp::Parser::AST::InlineCommandComment^ _0) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::InlineCommandComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::InlineCommandComment(arg0); +} + +unsigned int CppSharp::Parser::AST::InlineCommandComment::ArgumentsCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArgumentsCount(); + return __ret; +} + +CppSharp::Parser::AST::InlineCommandComment::RenderKind CppSharp::Parser::AST::InlineCommandComment::CommentRenderKind::get() +{ + return (CppSharp::Parser::AST::InlineCommandComment::RenderKind)((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->CommentRenderKind; +} + +void CppSharp::Parser::AST::InlineCommandComment::CommentRenderKind::set(CppSharp::Parser::AST::InlineCommandComment::RenderKind value) +{ + ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->CommentRenderKind = (::CppSharp::CppParser::AST::InlineCommandComment::RenderKind)value; +} + +CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(::CppSharp::CppParser::AST::HTMLTagComment* native) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)native) +{ +} + +CppSharp::Parser::AST::HTMLTagComment^ CppSharp::Parser::AST::HTMLTagComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment() + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::HTMLTagComment(); +} + +CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(CppSharp::Parser::AST::CommentKind Kind) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + auto arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind; + NativePtr = new ::CppSharp::CppParser::AST::HTMLTagComment(arg0); +} + +CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(CppSharp::Parser::AST::HTMLTagComment^ _0) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::HTMLTagComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::HTMLTagComment(arg0); +} + +CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native) +{ + NativePtr = native; +} + +CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ CppSharp::Parser::AST::HTMLStartTagComment::Attribute::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*) native.ToPointer()); +} + +CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Attribute() +{ + NativePtr = new ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(); +} + +CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Attribute(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ _0) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(arg0); +} + +System::IntPtr CppSharp::Parser::AST::HTMLStartTagComment::Attribute::__Instance::get() +{ + return System::IntPtr(NativePtr); +} + +void CppSharp::Parser::AST::HTMLStartTagComment::Attribute::__Instance::set(System::IntPtr object) +{ + NativePtr = (::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)object.ToPointer(); +} + +System::String^ CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Name::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)NativePtr)->getName(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Name::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)NativePtr)->setName(arg0); +} + +System::String^ CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Value::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)NativePtr)->getValue(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Value::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)NativePtr)->setValue(arg0); +} + +CppSharp::Parser::AST::HTMLStartTagComment::HTMLStartTagComment(::CppSharp::CppParser::AST::HTMLStartTagComment* native) + : CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)native) +{ +} + +CppSharp::Parser::AST::HTMLStartTagComment^ CppSharp::Parser::AST::HTMLStartTagComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::HTMLStartTagComment((::CppSharp::CppParser::AST::HTMLStartTagComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::HTMLStartTagComment::HTMLStartTagComment() + : CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::HTMLStartTagComment(); +} + +CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ CppSharp::Parser::AST::HTMLStartTagComment::getAttributes(unsigned int i) +{ + auto __ret = ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributes(i); + auto ____ret = new ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(__ret); + return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::HTMLStartTagComment::Attribute((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)____ret); +} + +void CppSharp::Parser::AST::HTMLStartTagComment::addAttributes(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ s) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)s->NativePtr; + ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->addAttributes(arg0); +} + +void CppSharp::Parser::AST::HTMLStartTagComment::clearAttributes() +{ + ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->clearAttributes(); +} + +CppSharp::Parser::AST::HTMLStartTagComment::HTMLStartTagComment(CppSharp::Parser::AST::HTMLStartTagComment^ _0) + : CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::HTMLStartTagComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::HTMLStartTagComment(arg0); +} + +System::String^ CppSharp::Parser::AST::HTMLStartTagComment::TagName::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getTagName(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::HTMLStartTagComment::TagName::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->setTagName(arg0); +} + +unsigned int CppSharp::Parser::AST::HTMLStartTagComment::AttributesCount::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributesCount(); + return __ret; +} + +CppSharp::Parser::AST::HTMLEndTagComment::HTMLEndTagComment(::CppSharp::CppParser::AST::HTMLEndTagComment* native) + : CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)native) +{ +} + +CppSharp::Parser::AST::HTMLEndTagComment^ CppSharp::Parser::AST::HTMLEndTagComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::HTMLEndTagComment((::CppSharp::CppParser::AST::HTMLEndTagComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::HTMLEndTagComment::HTMLEndTagComment() + : CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::HTMLEndTagComment(); +} + +CppSharp::Parser::AST::HTMLEndTagComment::HTMLEndTagComment(CppSharp::Parser::AST::HTMLEndTagComment^ _0) + : CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::HTMLEndTagComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::HTMLEndTagComment(arg0); +} + +System::String^ CppSharp::Parser::AST::HTMLEndTagComment::TagName::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::HTMLEndTagComment*)NativePtr)->getTagName(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::HTMLEndTagComment::TagName::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::HTMLEndTagComment*)NativePtr)->setTagName(arg0); +} + +CppSharp::Parser::AST::TextComment::TextComment(::CppSharp::CppParser::AST::TextComment* native) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)native) +{ +} + +CppSharp::Parser::AST::TextComment^ CppSharp::Parser::AST::TextComment::__CreateInstance(::System::IntPtr native) +{ + return gcnew ::CppSharp::Parser::AST::TextComment((::CppSharp::CppParser::AST::TextComment*) native.ToPointer()); +} + +CppSharp::Parser::AST::TextComment::TextComment() + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + NativePtr = new ::CppSharp::CppParser::AST::TextComment(); +} + +CppSharp::Parser::AST::TextComment::TextComment(CppSharp::Parser::AST::TextComment^ _0) + : CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)nullptr) +{ + auto &arg0 = *(::CppSharp::CppParser::AST::TextComment*)_0->NativePtr; + NativePtr = new ::CppSharp::CppParser::AST::TextComment(arg0); +} + +System::String^ CppSharp::Parser::AST::TextComment::Text::get() +{ + auto __ret = ((::CppSharp::CppParser::AST::TextComment*)NativePtr)->getText(); + if (__ret == nullptr) return nullptr; + return clix::marshalString(__ret); +} + +void CppSharp::Parser::AST::TextComment::Text::set(System::String^ s) +{ + auto _arg0 = clix::marshalString(s); + auto arg0 = _arg0.c_str(); + ((::CppSharp::CppParser::AST::TextComment*)NativePtr)->setText(arg0); +} + CppSharp::Parser::AST::RawComment::RawComment(::CppSharp::CppParser::AST::RawComment* native) { NativePtr = native; @@ -3631,7 +4417,7 @@ CppSharp::Parser::AST::RawComment::RawComment(::CppSharp::CppParser::AST::RawCom CppSharp::Parser::AST::RawComment^ CppSharp::Parser::AST::RawComment::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::AST::RawComment((::CppSharp::CppParser::AST::RawComment*) native.ToPointer()); + return gcnew ::CppSharp::Parser::AST::RawComment((::CppSharp::CppParser::AST::RawComment*) native.ToPointer()); } CppSharp::Parser::AST::RawComment::RawComment() diff --git a/src/CppParser/Bindings/CLI/AST.h b/src/CppParser/Bindings/CLI/AST.h index 47572bad..b4e2a0ac 100644 --- a/src/CppParser/Bindings/CLI/AST.h +++ b/src/CppParser/Bindings/CLI/AST.h @@ -31,6 +31,8 @@ namespace CppSharp ref class AttributedType; ref class BaseClassSpecifier; ref class BinaryOperator; + ref class BlockCommandComment; + ref class BlockContentComment; ref class BuiltinType; ref class Class; ref class ClassLayout; @@ -51,7 +53,12 @@ namespace CppSharp ref class FunctionTemplate; ref class FunctionTemplateSpecialization; ref class FunctionType; + ref class HTMLEndTagComment; + ref class HTMLStartTagComment; + ref class HTMLTagComment; ref class InjectedClassNameType; + ref class InlineCommandComment; + ref class InlineContentComment; ref class MacroDefinition; ref class MacroExpansion; ref class MemberPointerType; @@ -59,12 +66,15 @@ namespace CppSharp ref class Namespace; ref class NativeLibrary; ref class PackExpansionType; + ref class ParagraphComment; + ref class ParamCommandComment; ref class Parameter; ref class PointerType; ref class PreprocessedEntity; ref class QualifiedType; ref class RawComment; ref class Statement; + ref class TParamCommandComment; ref class TagType; ref class Template; ref class TemplateArgument; @@ -72,6 +82,7 @@ namespace CppSharp ref class TemplateParameterSubstitutionType; ref class TemplateParameterType; ref class TemplateSpecializationType; + ref class TextComment; ref class TranslationUnit; ref class Type; ref class TypeQualifiers; @@ -81,6 +92,9 @@ namespace CppSharp ref class VTableComponent; ref class VTableLayout; ref class Variable; + ref class VerbatimBlockComment; + ref class VerbatimBlockLineComment; + ref class VerbatimLineComment; } } } @@ -287,7 +301,21 @@ namespace CppSharp public enum struct CommentKind { - FullComment = 0 + FullComment = 0, + BlockContentComment = 1, + BlockCommandComment = 2, + ParamCommandComment = 3, + TParamCommandComment = 4, + VerbatimBlockComment = 5, + VerbatimLineComment = 6, + ParagraphComment = 7, + HTMLTagComment = 8, + HTMLStartTagComment = 9, + HTMLEndTagComment = 10, + TextComment = 11, + InlineContentComment = 12, + InlineCommandComment = 13, + VerbatimBlockLineComment = 14 }; public enum struct MacroLocation @@ -2250,6 +2278,19 @@ namespace CppSharp } }; + public ref class BlockContentComment : CppSharp::Parser::AST::Comment + { + public: + + BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native); + static BlockContentComment^ __CreateInstance(::System::IntPtr native); + BlockContentComment(); + + BlockContentComment(CppSharp::Parser::AST::CommentKind Kind); + + BlockContentComment(CppSharp::Parser::AST::BlockContentComment^ _0); + }; + public ref class FullComment : CppSharp::Parser::AST::Comment { public: @@ -2259,6 +2300,385 @@ namespace CppSharp FullComment(); FullComment(CppSharp::Parser::AST::FullComment^ _0); + + property unsigned int BlocksCount + { + unsigned int get(); + } + + CppSharp::Parser::AST::BlockContentComment^ getBlocks(unsigned int i); + + void addBlocks(CppSharp::Parser::AST::BlockContentComment^ s); + + void clearBlocks(); + }; + + public ref class BlockCommandComment : CppSharp::Parser::AST::BlockContentComment + { + public: + + ref class Argument : ICppInstance + { + public: + + property ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr; + property System::IntPtr __Instance + { + virtual System::IntPtr get(); + virtual void set(System::IntPtr instance); + } + + Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native); + static Argument^ __CreateInstance(::System::IntPtr native); + Argument(); + + Argument(CppSharp::Parser::AST::BlockCommandComment::Argument^ _0); + + property System::String^ Text + { + System::String^ get(); + void set(System::String^); + } + }; + + BlockCommandComment(::CppSharp::CppParser::AST::BlockCommandComment* native); + static BlockCommandComment^ __CreateInstance(::System::IntPtr native); + BlockCommandComment(); + + BlockCommandComment(CppSharp::Parser::AST::CommentKind Kind); + + BlockCommandComment(CppSharp::Parser::AST::BlockCommandComment^ _0); + + property unsigned int ArgumentsCount + { + unsigned int get(); + } + + property unsigned int CommandId + { + unsigned int get(); + void set(unsigned int); + } + + CppSharp::Parser::AST::BlockCommandComment::Argument^ getArguments(unsigned int i); + + void addArguments(CppSharp::Parser::AST::BlockCommandComment::Argument^ s); + + void clearArguments(); + }; + + public ref class ParamCommandComment : CppSharp::Parser::AST::BlockCommandComment + { + public: + + enum struct PassDirection + { + In = 0, + Out = 1, + InOut = 2 + }; + + ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native); + static ParamCommandComment^ __CreateInstance(::System::IntPtr native); + ParamCommandComment(); + + ParamCommandComment(CppSharp::Parser::AST::ParamCommandComment^ _0); + + property CppSharp::Parser::AST::ParamCommandComment::PassDirection Direction + { + CppSharp::Parser::AST::ParamCommandComment::PassDirection get(); + void set(CppSharp::Parser::AST::ParamCommandComment::PassDirection); + } + + property unsigned int ParamIndex + { + unsigned int get(); + void set(unsigned int); + } + }; + + public ref class TParamCommandComment : CppSharp::Parser::AST::BlockCommandComment + { + public: + + TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native); + static TParamCommandComment^ __CreateInstance(::System::IntPtr native); + TParamCommandComment(); + + TParamCommandComment(CppSharp::Parser::AST::TParamCommandComment^ _0); + + property unsigned int PositionCount + { + unsigned int get(); + } + + unsigned int getPosition(unsigned int i); + + void addPosition(unsigned int* s); + + void clearPosition(); + }; + + public ref class VerbatimBlockLineComment : CppSharp::Parser::AST::Comment + { + public: + + VerbatimBlockLineComment(::CppSharp::CppParser::AST::VerbatimBlockLineComment* native); + static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native); + VerbatimBlockLineComment(); + + VerbatimBlockLineComment(CppSharp::Parser::AST::VerbatimBlockLineComment^ _0); + + property System::String^ Text + { + System::String^ get(); + void set(System::String^); + } + }; + + public ref class VerbatimBlockComment : CppSharp::Parser::AST::BlockCommandComment + { + public: + + VerbatimBlockComment(::CppSharp::CppParser::AST::VerbatimBlockComment* native); + static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native); + VerbatimBlockComment(); + + VerbatimBlockComment(CppSharp::Parser::AST::VerbatimBlockComment^ _0); + + property unsigned int LinesCount + { + unsigned int get(); + } + + CppSharp::Parser::AST::VerbatimBlockLineComment^ getLines(unsigned int i); + + void addLines(CppSharp::Parser::AST::VerbatimBlockLineComment^ s); + + void clearLines(); + }; + + public ref class VerbatimLineComment : CppSharp::Parser::AST::BlockCommandComment + { + public: + + VerbatimLineComment(::CppSharp::CppParser::AST::VerbatimLineComment* native); + static VerbatimLineComment^ __CreateInstance(::System::IntPtr native); + VerbatimLineComment(); + + VerbatimLineComment(CppSharp::Parser::AST::VerbatimLineComment^ _0); + + property System::String^ Text + { + System::String^ get(); + void set(System::String^); + } + }; + + 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); + }; + + 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); + + 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: + + enum struct RenderKind + { + RenderNormal = 0, + RenderBold = 1, + RenderMonospaced = 2, + RenderEmphasized = 3 + }; + + ref class Argument : ICppInstance + { + public: + + property ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr; + property System::IntPtr __Instance + { + virtual System::IntPtr get(); + virtual void set(System::IntPtr instance); + } + + Argument(::CppSharp::CppParser::AST::InlineCommandComment::Argument* native); + static Argument^ __CreateInstance(::System::IntPtr native); + Argument(); + + Argument(CppSharp::Parser::AST::InlineCommandComment::Argument^ _0); + + property System::String^ Text + { + System::String^ get(); + void set(System::String^); + } + }; + + InlineCommandComment(::CppSharp::CppParser::AST::InlineCommandComment* native); + static InlineCommandComment^ __CreateInstance(::System::IntPtr native); + InlineCommandComment(); + + InlineCommandComment(CppSharp::Parser::AST::InlineCommandComment^ _0); + + property unsigned int ArgumentsCount + { + unsigned int get(); + } + + property CppSharp::Parser::AST::InlineCommandComment::RenderKind CommentRenderKind + { + CppSharp::Parser::AST::InlineCommandComment::RenderKind get(); + void set(CppSharp::Parser::AST::InlineCommandComment::RenderKind); + } + + CppSharp::Parser::AST::InlineCommandComment::Argument^ getArguments(unsigned int i); + + void addArguments(CppSharp::Parser::AST::InlineCommandComment::Argument^ s); + + void clearArguments(); + }; + + public ref class HTMLTagComment : CppSharp::Parser::AST::InlineContentComment + { + public: + + HTMLTagComment(::CppSharp::CppParser::AST::HTMLTagComment* native); + static HTMLTagComment^ __CreateInstance(::System::IntPtr native); + HTMLTagComment(); + + HTMLTagComment(CppSharp::Parser::AST::CommentKind Kind); + + HTMLTagComment(CppSharp::Parser::AST::HTMLTagComment^ _0); + }; + + public ref class HTMLStartTagComment : CppSharp::Parser::AST::HTMLTagComment + { + public: + + ref class Attribute : ICppInstance + { + public: + + property ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr; + property System::IntPtr __Instance + { + virtual System::IntPtr get(); + virtual void set(System::IntPtr instance); + } + + Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native); + static Attribute^ __CreateInstance(::System::IntPtr native); + Attribute(); + + Attribute(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ _0); + + property System::String^ Name + { + System::String^ get(); + void set(System::String^); + } + + property System::String^ Value + { + System::String^ get(); + void set(System::String^); + } + }; + + HTMLStartTagComment(::CppSharp::CppParser::AST::HTMLStartTagComment* native); + static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native); + HTMLStartTagComment(); + + HTMLStartTagComment(CppSharp::Parser::AST::HTMLStartTagComment^ _0); + + property System::String^ TagName + { + System::String^ get(); + void set(System::String^); + } + + property unsigned int AttributesCount + { + unsigned int get(); + } + + CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ getAttributes(unsigned int i); + + void addAttributes(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ s); + + void clearAttributes(); + }; + + public ref class HTMLEndTagComment : CppSharp::Parser::AST::HTMLTagComment + { + public: + + HTMLEndTagComment(::CppSharp::CppParser::AST::HTMLEndTagComment* native); + static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native); + HTMLEndTagComment(); + + HTMLEndTagComment(CppSharp::Parser::AST::HTMLEndTagComment^ _0); + + property System::String^ TagName + { + System::String^ get(); + void set(System::String^); + } + }; + + public ref class TextComment : CppSharp::Parser::AST::InlineContentComment + { + public: + + TextComment(::CppSharp::CppParser::AST::TextComment* native); + static TextComment^ __CreateInstance(::System::IntPtr native); + TextComment(); + + TextComment(CppSharp::Parser::AST::TextComment^ _0); + + property System::String^ Text + { + System::String^ get(); + void set(System::String^); + } }; public ref class RawComment : ICppInstance diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp index 4da754da..15c231a2 100644 --- a/src/CppParser/Bindings/CLI/CppParser.cpp +++ b/src/CppParser/Bindings/CLI/CppParser.cpp @@ -12,7 +12,7 @@ CppSharp::Parser::ParserOptions::ParserOptions(::CppSharp::CppParser::ParserOpti CppSharp::Parser::ParserOptions^ CppSharp::Parser::ParserOptions::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::ParserOptions((::CppSharp::CppParser::ParserOptions*) native.ToPointer()); + return gcnew ::CppSharp::Parser::ParserOptions((::CppSharp::CppParser::ParserOptions*) native.ToPointer()); } CppSharp::Parser::ParserOptions::ParserOptions() @@ -301,7 +301,7 @@ CppSharp::Parser::ParserDiagnostic::ParserDiagnostic(::CppSharp::CppParser::Pars CppSharp::Parser::ParserDiagnostic^ CppSharp::Parser::ParserDiagnostic::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::ParserDiagnostic((::CppSharp::CppParser::ParserDiagnostic*) native.ToPointer()); + return gcnew ::CppSharp::Parser::ParserDiagnostic((::CppSharp::CppParser::ParserDiagnostic*) native.ToPointer()); } CppSharp::Parser::ParserDiagnostic::ParserDiagnostic() @@ -390,7 +390,7 @@ CppSharp::Parser::ParserResult::ParserResult(::CppSharp::CppParser::ParserResult CppSharp::Parser::ParserResult^ CppSharp::Parser::ParserResult::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::ParserResult((::CppSharp::CppParser::ParserResult*) native.ToPointer()); + return gcnew ::CppSharp::Parser::ParserResult((::CppSharp::CppParser::ParserResult*) native.ToPointer()); } CppSharp::Parser::ParserResult::ParserResult() @@ -475,7 +475,7 @@ CppSharp::Parser::ClangParser::ClangParser(::CppSharp::CppParser::ClangParser* n CppSharp::Parser::ClangParser^ CppSharp::Parser::ClangParser::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::ClangParser((::CppSharp::CppParser::ClangParser*) native.ToPointer()); + return gcnew ::CppSharp::Parser::ClangParser((::CppSharp::CppParser::ClangParser*) native.ToPointer()); } CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseHeader(CppSharp::Parser::ParserOptions^ Opts) diff --git a/src/CppParser/Bindings/CLI/Sources.cpp b/src/CppParser/Bindings/CLI/Sources.cpp index f0cfd168..97ccbb45 100644 --- a/src/CppParser/Bindings/CLI/Sources.cpp +++ b/src/CppParser/Bindings/CLI/Sources.cpp @@ -10,7 +10,7 @@ CppSharp::Parser::SourceLocation::SourceLocation(::CppSharp::CppParser::SourceLo CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer()); + return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer()); } CppSharp::Parser::SourceLocation::SourceLocation(unsigned int ID) diff --git a/src/CppParser/Bindings/CLI/Target.cpp b/src/CppParser/Bindings/CLI/Target.cpp index 2cb7406b..ad577a26 100644 --- a/src/CppParser/Bindings/CLI/Target.cpp +++ b/src/CppParser/Bindings/CLI/Target.cpp @@ -10,7 +10,7 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native) { - return gcnew CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer()); + return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer()); } CppSharp::Parser::ParserTargetInfo::ParserTargetInfo() 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 d693526d..a9cc27cc 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 @@ -208,7 +208,21 @@ namespace CppSharp public enum CommentKind { - FullComment = 0 + FullComment = 0, + BlockContentComment = 1, + BlockCommandComment = 2, + ParamCommandComment = 3, + TParamCommandComment = 4, + VerbatimBlockComment = 5, + VerbatimLineComment = 6, + ParagraphComment = 7, + HTMLTagComment = 8, + HTMLStartTagComment = 9, + HTMLEndTagComment = 10, + TextComment = 11, + InlineContentComment = 12, + InlineCommandComment = 13, + VerbatimBlockLineComment = 14 } public enum MacroLocation @@ -10316,7 +10330,7 @@ namespace CppSharp } } - public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class BlockContentComment : CppSharp.Parser.AST.Comment, IDisposable { [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal @@ -10324,6 +10338,109 @@ namespace CppSharp [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2ENS1_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="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new BlockContentComment __CreateInstance(global::System.IntPtr native) + { + return new BlockContentComment((BlockContentComment.Internal*) native); + } + + public static BlockContentComment __CreateInstance(BlockContentComment.Internal native) + { + return new BlockContentComment(native); + } + + private static BlockContentComment.Internal* __CopyValue(BlockContentComment.Internal native) + { + var ret = (BlockContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private BlockContentComment(BlockContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockContentComment(BlockContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public BlockContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockContentComment(CppSharp.Parser.AST.BlockContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((BlockContentComment.Internal*) __Instance) = *((BlockContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2Ev")] @@ -10332,7 +10449,32 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + 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="_ZN8CppSharp9CppParser3AST11FullCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment9getBlocksEj")] + internal static extern global::System.IntPtr getBlocks_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment9addBlocksERPNS1_19BlockContentCommentE")] + internal static extern void addBlocks_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment11clearBlocksEv")] + internal static extern void clearBlocks_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment14getBlocksCountEv")] + internal static extern uint getBlocksCount_0(global::System.IntPtr instance); } private readonly bool __ownsNativeInstance; @@ -10349,9 +10491,9 @@ namespace CppSharp private static FullComment.Internal* __CopyValue(FullComment.Internal native) { - var ret = (FullComment.Internal*) Marshal.AllocHGlobal(4); - *ret = native; - return ret; + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (FullComment.Internal*) ret; } private FullComment(FullComment.Internal native) @@ -10369,7 +10511,7 @@ namespace CppSharp public FullComment() : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0(__Instance); @@ -10378,10 +10520,11 @@ namespace CppSharp public FullComment(CppSharp.Parser.AST.FullComment _0) : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - *((FullComment.Internal*) __Instance) = *((FullComment.Internal*) _0.__Instance); + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); } protected override void Dispose(bool disposing) @@ -10402,6 +10545,2216 @@ namespace CppSharp if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); } + + public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) + { + var __ret = Internal.getBlocks_0(__Instance, i); + CppSharp.Parser.AST.BlockContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.BlockContentComment) CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.BlockContentComment.__CreateInstance(__ret); + return __result0; + } + + public void addBlocks(CppSharp.Parser.AST.BlockContentComment s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addBlocks_0(__Instance, arg0); + } + + public void clearBlocks() + { + Internal.clearBlocks_0(__Instance); + } + + public uint BlocksCount + { + get + { + var __ret = Internal.getBlocksCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class BlockCommandComment : 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 uint CommandId; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_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_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_2(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; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(12); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(12); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(12); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native) + { + return new BlockCommandComment((BlockCommandComment.Internal*) native); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native) + { + return new BlockCommandComment(native); + } + + private static BlockCommandComment.Internal* __CopyValue(BlockCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + return (BlockCommandComment.Internal*) ret; + } + + private BlockCommandComment(BlockCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockCommandComment(BlockCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public BlockCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_3(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + 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, i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public uint CommandId + { + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } + } + } + + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 28)] + 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; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + 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")] + internal static extern void dtor_0(global::System.IntPtr instance); + } + + public enum PassDirection : uint + { + In = 0, + Out = 1, + InOut = 2 + } + + private readonly bool __ownsNativeInstance; + + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new ParamCommandComment((ParamCommandComment.Internal*) native); + } + + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native) + { + return new ParamCommandComment(native); + } + + private static ParamCommandComment.Internal* __CopyValue(ParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(28); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (ParamCommandComment.Internal*) ret; + } + + private ParamCommandComment(ParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParamCommandComment(ParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public ParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + { + get + { + return ((Internal*) __Instance)->Direction; + } + + set + { + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; + } + } + } + + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [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="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] + 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); + + [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); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new TParamCommandComment((TParamCommandComment.Internal*) native); + } + + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native) + { + return new TParamCommandComment(native); + } + + private static TParamCommandComment.Internal* __CopyValue(TParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TParamCommandComment.Internal*) ret; + } + + private TParamCommandComment(TParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TParamCommandComment(TParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public TParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public uint getPosition(uint i) + { + var __ret = Internal.getPosition_0(__Instance, i); + return __ret; + } + + public void addPosition(uint* s) + { + var arg0 = s; + Internal.addPosition_0(__Instance, arg0); + } + + public void clearPosition() + { + Internal.clearPosition_0(__Instance); + } + + public uint PositionCount + { + get + { + var __ret = Internal.getPositionCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_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="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockLineComment((VerbatimBlockLineComment.Internal*) native); + } + + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native) + { + return new VerbatimBlockLineComment(native); + } + + private static VerbatimBlockLineComment.Internal* __CopyValue(VerbatimBlockLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockLineComment.Internal*) ret; + } + + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockLineComment(VerbatimBlockLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public VerbatimBlockLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [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="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] + 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_2(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockComment((VerbatimBlockComment.Internal*) native); + } + + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native) + { + return new VerbatimBlockComment(native); + } + + private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockComment.Internal*) ret; + } + + private VerbatimBlockComment(VerbatimBlockComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockComment(VerbatimBlockComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimBlockComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addLines_0(__Instance, arg0); + } + + public void clearLines() + { + Internal.clearLines_0(__Instance); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [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")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimLineComment((VerbatimLineComment.Internal*) native); + } + + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native) + { + return new VerbatimLineComment(native); + } + + private static VerbatimLineComment.Internal* __CopyValue(VerbatimLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimLineComment.Internal*) ret; + } + + private VerbatimLineComment(VerbatimLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimLineComment(VerbatimLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + 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.Cdecl, + 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="_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="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new InlineContentComment __CreateInstance(global::System.IntPtr native) + { + return new InlineContentComment((InlineContentComment.Internal*) native); + } + + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native) + { + return new InlineContentComment(native); + } + + private static InlineContentComment.Internal* __CopyValue(InlineContentComment.Internal native) + { + var ret = (InlineContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private InlineContentComment(InlineContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineContentComment(InlineContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public InlineContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__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 bool IsWhitespace; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] + 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")] + 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); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new ParagraphComment __CreateInstance(global::System.IntPtr native) + { + return new ParagraphComment((ParagraphComment.Internal*) native); + } + + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native) + { + return new ParagraphComment(native); + } + + private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (ParagraphComment.Internal*) ret; + } + + private ParagraphComment(ParagraphComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParagraphComment(ParagraphComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public ParagraphComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) + { + var __ret = Internal.getContent_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addContent_0(__Instance, arg0); + } + + public void clearContent() + { + Internal.clearContent_0(__Instance); + } + + public uint ContentCount + { + get + { + var __ret = Internal.getContentCount_0(__Instance); + return __ret; + } + } + + public bool IsWhitespace + { + get + { + return ((Internal*) __Instance)->IsWhitespace; + } + + set + { + ((Internal*) __Instance)->IsWhitespace = value; + } + } + } + + public unsafe partial class InlineCommandComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 20)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [FieldOffset(4)] + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment12getArgumentsEj")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment12addArgumentsERNS2_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="_ZN8CppSharp9CppParser3AST20InlineCommandComment14clearArgumentsEv")] + internal static extern void clearArguments_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment17getArgumentsCountEv")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); + } + + public enum RenderKind : uint + { + RenderNormal = 0, + RenderBold = 1, + RenderMonospaced = 2, + RenderEmphasized = 3 + } + + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2ERKS3_")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment8Argument7getTextEv")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8Argument7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(12); + CppSharp.Parser.AST.InlineCommandComment.Argument.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(12); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.InlineCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(12); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.InlineCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new InlineCommandComment __CreateInstance(global::System.IntPtr native) + { + return new InlineCommandComment((InlineCommandComment.Internal*) native); + } + + public static InlineCommandComment __CreateInstance(InlineCommandComment.Internal native) + { + return new InlineCommandComment(native); + } + + private static InlineCommandComment.Internal* __CopyValue(InlineCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.InlineCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (InlineCommandComment.Internal*) ret; + } + + private InlineCommandComment(InlineCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineCommandComment(InlineCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public InlineCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineCommandComment(CppSharp.Parser.AST.InlineCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineCommandComment.Argument getArguments(uint i) + { + var __ret = new CppSharp.Parser.AST.InlineCommandComment.Argument.Internal(); + Internal.getArguments_0(new IntPtr(&__ret), __Instance, i); + return CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.InlineCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind + { + get + { + return ((Internal*) __Instance)->CommentRenderKind; + } + + set + { + ((Internal*) __Instance)->CommentRenderKind = value; + } + } + } + + public unsafe partial class HTMLTagComment : CppSharp.Parser.AST.InlineContentComment, 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.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2ENS1_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="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLTagComment((HTMLTagComment.Internal*) native); + } + + public static HTMLTagComment __CreateInstance(HTMLTagComment.Internal native) + { + return new HTMLTagComment(native); + } + + private static HTMLTagComment.Internal* __CopyValue(HTMLTagComment.Internal native) + { + var ret = (HTMLTagComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private HTMLTagComment(HTMLTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLTagComment(HTMLTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public HTMLTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLTagComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public HTMLTagComment(CppSharp.Parser.AST.HTMLTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((HTMLTagComment.Internal*) __Instance) = *((HTMLTagComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class HTMLStartTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 28)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment13getAttributesEj")] + internal static extern void getAttributes_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment13addAttributesERNS2_9AttributeE")] + internal static extern void addAttributes_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment15clearAttributesEv")] + internal static extern void clearAttributes_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment10getTagNameEv")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment10setTagNameEPKc")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment18getAttributesCountEv")] + internal static extern uint getAttributesCount_0(global::System.IntPtr instance); + } + + public unsafe partial class Attribute : IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 24)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2ERKS3_")] + 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="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute7getNameEv")] + internal static extern global::System.IntPtr getName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute7setNameEPKc")] + internal static extern void setName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute8getValueEv")] + internal static extern global::System.IntPtr getValue_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute8setValueEPKc")] + internal static extern void setValue_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Attribute __CreateInstance(global::System.IntPtr native) + { + return new Attribute((Attribute.Internal*) native); + } + + public static Attribute __CreateInstance(Attribute.Internal native) + { + return new Attribute(native); + } + + private static Attribute.Internal* __CopyValue(Attribute.Internal native) + { + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Attribute.Internal*) ret; + } + + private Attribute(Attribute.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Attribute(Attribute.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Attribute() + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Attribute(CppSharp.Parser.AST.HTMLStartTagComment.Attribute _0) + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.HTMLStartTagComment.Attribute __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Name + { + get + { + var __ret = Internal.getName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public string Value + { + get + { + var __ret = Internal.getValue_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setValue_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLStartTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLStartTagComment((HTMLStartTagComment.Internal*) native); + } + + public static HTMLStartTagComment __CreateInstance(HTMLStartTagComment.Internal native) + { + return new HTMLStartTagComment(native); + } + + private static HTMLStartTagComment.Internal* __CopyValue(HTMLStartTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(28); + CppSharp.Parser.AST.HTMLStartTagComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (HTMLStartTagComment.Internal*) ret; + } + + private HTMLStartTagComment(HTMLStartTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLStartTagComment(HTMLStartTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLStartTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLStartTagComment(CppSharp.Parser.AST.HTMLStartTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.HTMLStartTagComment.Attribute getAttributes(uint i) + { + var __ret = new CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal(); + Internal.getAttributes_0(new IntPtr(&__ret), __Instance, i); + return CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); + } + + public void addAttributes(CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addAttributes_0(__Instance, arg0); + } + + public void clearAttributes() + { + Internal.clearAttributes_0(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public uint AttributesCount + { + get + { + var __ret = Internal.getAttributesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class HTMLEndTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagComment10getTagNameEv")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagComment10setTagNameEPKc")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLEndTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLEndTagComment((HTMLEndTagComment.Internal*) native); + } + + public static HTMLEndTagComment __CreateInstance(HTMLEndTagComment.Internal native) + { + return new HTMLEndTagComment(native); + } + + private static HTMLEndTagComment.Internal* __CopyValue(HTMLEndTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.HTMLEndTagComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (HTMLEndTagComment.Internal*) ret; + } + + private HTMLEndTagComment(HTMLEndTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLEndTagComment(HTMLEndTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLEndTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLEndTagComment(CppSharp.Parser.AST.HTMLEndTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class TextComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST11TextCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextComment7getTextEv")] + 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="_ZN8CppSharp9CppParser3AST11TextComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new TextComment __CreateInstance(global::System.IntPtr native) + { + return new TextComment((TextComment.Internal*) native); + } + + public static TextComment __CreateInstance(TextComment.Internal native) + { + return new TextComment(native); + } + + private static TextComment.Internal* __CopyValue(TextComment.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.TextComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TextComment.Internal*) ret; + } + + private TextComment(TextComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TextComment(TextComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public TextComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TextComment(CppSharp.Parser.AST.TextComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } } public unsafe partial class RawComment : IDisposable diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs index bddb431e..1348b55c 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppParser.cs @@ -822,6 +822,9 @@ namespace CppSharp [FieldOffset(20)] public global::System.IntPtr Library; + [FieldOffset(24)] + public global::System.IntPtr CodeParser; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser12ParserResultC2Ev")] @@ -1013,7 +1016,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 1)] + [StructLayout(LayoutKind.Explicit, Size = 0)] public partial struct Internal { [SuppressUnmanagedCodeSecurity] @@ -1054,7 +1057,7 @@ namespace CppSharp private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) { - var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(1); + var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); *ret = native; return ret; } @@ -1073,14 +1076,14 @@ namespace CppSharp public ClangParser() { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } public ClangParser(CppSharp.Parser.ClangParser _0) { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((ClangParser.Internal*) __Instance) = *((ClangParser.Internal*) _0.__Instance); 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 db33737f..33cf1e91 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs @@ -208,7 +208,21 @@ namespace CppSharp public enum CommentKind { - FullComment = 0 + FullComment = 0, + BlockContentComment = 1, + BlockCommandComment = 2, + ParamCommandComment = 3, + TParamCommandComment = 4, + VerbatimBlockComment = 5, + VerbatimLineComment = 6, + ParagraphComment = 7, + HTMLTagComment = 8, + HTMLStartTagComment = 9, + HTMLEndTagComment = 10, + TextComment = 11, + InlineContentComment = 12, + InlineCommandComment = 13, + VerbatimBlockLineComment = 14 } public enum MacroLocation @@ -10316,7 +10330,7 @@ namespace CppSharp } } - public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class BlockContentComment : CppSharp.Parser.AST.Comment, IDisposable { [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal @@ -10324,6 +10338,109 @@ namespace CppSharp [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0BlockContentComment@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="??0BlockContentComment@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="??0BlockContentComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new BlockContentComment __CreateInstance(global::System.IntPtr native) + { + return new BlockContentComment((BlockContentComment.Internal*) native); + } + + public static BlockContentComment __CreateInstance(BlockContentComment.Internal native) + { + return new BlockContentComment(native); + } + + private static BlockContentComment.Internal* __CopyValue(BlockContentComment.Internal native) + { + var ret = (BlockContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private BlockContentComment(BlockContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockContentComment(BlockContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public BlockContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockContentComment(CppSharp.Parser.AST.BlockContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((BlockContentComment.Internal*) __Instance) = *((BlockContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + 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="??0FullComment@AST@CppParser@CppSharp@@QAE@XZ")] @@ -10332,7 +10449,32 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0FullComment@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, + EntryPoint="??1FullComment@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="?getBlocks@FullComment@AST@CppParser@CppSharp@@QAEPAVBlockContentComment@234@I@Z")] + internal static extern global::System.IntPtr getBlocks_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?addBlocks@FullComment@AST@CppParser@CppSharp@@QAEXAAPAVBlockContentComment@234@@Z")] + internal static extern void addBlocks_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?clearBlocks@FullComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearBlocks_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getBlocksCount@FullComment@AST@CppParser@CppSharp@@QAEIXZ")] + internal static extern uint getBlocksCount_0(global::System.IntPtr instance); } private readonly bool __ownsNativeInstance; @@ -10349,9 +10491,9 @@ namespace CppSharp private static FullComment.Internal* __CopyValue(FullComment.Internal native) { - var ret = (FullComment.Internal*) Marshal.AllocHGlobal(4); - *ret = native; - return ret; + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (FullComment.Internal*) ret; } private FullComment(FullComment.Internal native) @@ -10369,7 +10511,7 @@ namespace CppSharp public FullComment() : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0(__Instance); @@ -10378,10 +10520,11 @@ namespace CppSharp public FullComment(CppSharp.Parser.AST.FullComment _0) : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(16); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - *((FullComment.Internal*) __Instance) = *((FullComment.Internal*) _0.__Instance); + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); } protected override void Dispose(bool disposing) @@ -10402,6 +10545,2216 @@ namespace CppSharp if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); } + + public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) + { + var __ret = Internal.getBlocks_0(__Instance, i); + CppSharp.Parser.AST.BlockContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.BlockContentComment) CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.BlockContentComment.__CreateInstance(__ret); + return __result0; + } + + public void addBlocks(CppSharp.Parser.AST.BlockContentComment s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addBlocks_0(__Instance, arg0); + } + + public void clearBlocks() + { + Internal.clearBlocks_0(__Instance); + } + + public uint BlocksCount + { + get + { + var __ret = Internal.getBlocksCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class BlockCommandComment : 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 uint CommandId; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0BlockCommandComment@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="??0BlockCommandComment@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="??0BlockCommandComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1BlockCommandComment@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="?getArguments@BlockCommandComment@AST@CppParser@CppSharp@@QAE?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.ThisCall, + EntryPoint="?addArguments@BlockCommandComment@AST@CppParser@CppSharp@@QAEXAAVArgument@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.ThisCall, + EntryPoint="?clearArguments@BlockCommandComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearArguments_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getArgumentsCount@BlockCommandComment@AST@CppParser@CppSharp@@QAEIXZ")] + 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.ThisCall, + EntryPoint="??0Argument@BlockCommandComment@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="??0Argument@BlockCommandComment@AST@CppParser@CppSharp@@QAE@ABV01234@@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.ThisCall, + EntryPoint="??1Argument@BlockCommandComment@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="?getText@Argument@BlockCommandComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setText@Argument@BlockCommandComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance, 0); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native) + { + return new BlockCommandComment((BlockCommandComment.Internal*) native); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native) + { + return new BlockCommandComment(native); + } + + private static BlockCommandComment.Internal* __CopyValue(BlockCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + return (BlockCommandComment.Internal*) ret; + } + + private BlockCommandComment(BlockCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockCommandComment(BlockCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public BlockCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_3(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + 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, new IntPtr(&__ret), i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public uint CommandId + { + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } + } + } + + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 28)] + 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; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0ParamCommandComment@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="??0ParamCommandComment@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="??1ParamCommandComment@AST@CppParser@CppSharp@@QAE@XZ")] + internal static extern void dtor_0(global::System.IntPtr instance, int delete); + } + + public enum PassDirection + { + In = 0, + Out = 1, + InOut = 2 + } + + private readonly bool __ownsNativeInstance; + + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new ParamCommandComment((ParamCommandComment.Internal*) native); + } + + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native) + { + return new ParamCommandComment(native); + } + + private static ParamCommandComment.Internal* __CopyValue(ParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(28); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (ParamCommandComment.Internal*) ret; + } + + private ParamCommandComment(ParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParamCommandComment(ParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public ParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + { + get + { + return ((Internal*) __Instance)->Direction; + } + + set + { + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; + } + } + } + + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [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.ThisCall, + EntryPoint="??0TParamCommandComment@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="??0TParamCommandComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1TParamCommandComment@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="?getPosition@TParamCommandComment@AST@CppParser@CppSharp@@QAEII@Z")] + internal static extern uint getPosition_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?addPosition@TParamCommandComment@AST@CppParser@CppSharp@@QAEXAAI@Z")] + internal static extern void addPosition_0(global::System.IntPtr instance, uint* s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?clearPosition@TParamCommandComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearPosition_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getPositionCount@TParamCommandComment@AST@CppParser@CppSharp@@QAEIXZ")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new TParamCommandComment((TParamCommandComment.Internal*) native); + } + + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native) + { + return new TParamCommandComment(native); + } + + private static TParamCommandComment.Internal* __CopyValue(TParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TParamCommandComment.Internal*) ret; + } + + private TParamCommandComment(TParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TParamCommandComment(TParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public TParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public uint getPosition(uint i) + { + var __ret = Internal.getPosition_0(__Instance, i); + return __ret; + } + + public void addPosition(uint* s) + { + var arg0 = s; + Internal.addPosition_0(__Instance, arg0); + } + + public void clearPosition() + { + Internal.clearPosition_0(__Instance); + } + + public uint PositionCount + { + get + { + var __ret = Internal.getPositionCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 28)] + 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="??0VerbatimBlockLineComment@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="??0VerbatimBlockLineComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1VerbatimBlockLineComment@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="?getText@VerbatimBlockLineComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setText@VerbatimBlockLineComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockLineComment((VerbatimBlockLineComment.Internal*) native); + } + + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native) + { + return new VerbatimBlockLineComment(native); + } + + private static VerbatimBlockLineComment.Internal* __CopyValue(VerbatimBlockLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(28); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockLineComment.Internal*) ret; + } + + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockLineComment(VerbatimBlockLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public VerbatimBlockLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [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.ThisCall, + EntryPoint="??0VerbatimBlockComment@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="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1VerbatimBlockComment@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="?getLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QAEPAVVerbatimBlockLineComment@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.ThisCall, + EntryPoint="?addLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QAEXAAPAVVerbatimBlockLineComment@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.ThisCall, + EntryPoint="?clearLines@VerbatimBlockComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearLines_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getLinesCount@VerbatimBlockComment@AST@CppParser@CppSharp@@QAEIXZ")] + internal static extern uint getLinesCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockComment((VerbatimBlockComment.Internal*) native); + } + + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native) + { + return new VerbatimBlockComment(native); + } + + private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockComment.Internal*) ret; + } + + private VerbatimBlockComment(VerbatimBlockComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockComment(VerbatimBlockComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimBlockComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addLines_0(__Instance, arg0); + } + + public void clearLines() + { + Internal.clearLines_0(__Instance); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 44)] + 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.ThisCall, + EntryPoint="??0VerbatimLineComment@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="??0VerbatimLineComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1VerbatimLineComment@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="?getText@VerbatimLineComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setText@VerbatimLineComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimLineComment((VerbatimLineComment.Internal*) native); + } + + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native) + { + return new VerbatimLineComment(native); + } + + private static VerbatimLineComment.Internal* __CopyValue(VerbatimLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(44); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimLineComment.Internal*) ret; + } + + private VerbatimLineComment(VerbatimLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimLineComment(VerbatimLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(44); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(44); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new InlineContentComment __CreateInstance(global::System.IntPtr native) + { + return new InlineContentComment((InlineContentComment.Internal*) native); + } + + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native) + { + return new InlineContentComment(native); + } + + private static InlineContentComment.Internal* __CopyValue(InlineContentComment.Internal native) + { + var ret = (InlineContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private InlineContentComment(InlineContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineContentComment(InlineContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public InlineContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__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 bool 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_2(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); + } + + private readonly bool __ownsNativeInstance; + + public static new ParagraphComment __CreateInstance(global::System.IntPtr native) + { + return new ParagraphComment((ParagraphComment.Internal*) native); + } + + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native) + { + return new ParagraphComment(native); + } + + private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (ParagraphComment.Internal*) ret; + } + + private ParagraphComment(ParagraphComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParagraphComment(ParagraphComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public ParagraphComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) + { + var __ret = Internal.getContent_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addContent_0(__Instance, arg0); + } + + public void clearContent() + { + Internal.clearContent_0(__Instance); + } + + public uint ContentCount + { + get + { + var __ret = Internal.getContentCount_0(__Instance); + return __ret; + } + } + + public bool IsWhitespace + { + get + { + return ((Internal*) __Instance)->IsWhitespace; + } + + set + { + ((Internal*) __Instance)->IsWhitespace = value; + } + } + } + + public unsafe partial class InlineCommandComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 20)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [FieldOffset(4)] + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0InlineCommandComment@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="??0InlineCommandComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1InlineCommandComment@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="?getArguments@InlineCommandComment@AST@CppParser@CppSharp@@QAE?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.ThisCall, + EntryPoint="?addArguments@InlineCommandComment@AST@CppParser@CppSharp@@QAEXAAVArgument@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.ThisCall, + EntryPoint="?clearArguments@InlineCommandComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearArguments_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getArgumentsCount@InlineCommandComment@AST@CppParser@CppSharp@@QAEIXZ")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); + } + + public enum RenderKind + { + RenderNormal = 0, + RenderBold = 1, + RenderMonospaced = 2, + RenderEmphasized = 3 + } + + 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.ThisCall, + EntryPoint="??0Argument@InlineCommandComment@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="??0Argument@InlineCommandComment@AST@CppParser@CppSharp@@QAE@ABV01234@@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.ThisCall, + EntryPoint="??1Argument@InlineCommandComment@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="?getText@Argument@InlineCommandComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setText@Argument@InlineCommandComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.InlineCommandComment.Argument.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.InlineCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.InlineCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance, 0); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new InlineCommandComment __CreateInstance(global::System.IntPtr native) + { + return new InlineCommandComment((InlineCommandComment.Internal*) native); + } + + public static InlineCommandComment __CreateInstance(InlineCommandComment.Internal native) + { + return new InlineCommandComment(native); + } + + private static InlineCommandComment.Internal* __CopyValue(InlineCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(20); + CppSharp.Parser.AST.InlineCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (InlineCommandComment.Internal*) ret; + } + + private InlineCommandComment(InlineCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineCommandComment(InlineCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public InlineCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineCommandComment(CppSharp.Parser.AST.InlineCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(20); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineCommandComment.Argument getArguments(uint i) + { + var __ret = new CppSharp.Parser.AST.InlineCommandComment.Argument.Internal(); + Internal.getArguments_0(__Instance, new IntPtr(&__ret), i); + return CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.InlineCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind + { + get + { + return ((Internal*) __Instance)->CommentRenderKind; + } + + set + { + ((Internal*) __Instance)->CommentRenderKind = value; + } + } + } + + public unsafe partial class HTMLTagComment : CppSharp.Parser.AST.InlineContentComment, 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="??0HTMLTagComment@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="??0HTMLTagComment@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="??0HTMLTagComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] + internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLTagComment((HTMLTagComment.Internal*) native); + } + + public static HTMLTagComment __CreateInstance(HTMLTagComment.Internal native) + { + return new HTMLTagComment(native); + } + + private static HTMLTagComment.Internal* __CopyValue(HTMLTagComment.Internal native) + { + var ret = (HTMLTagComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private HTMLTagComment(HTMLTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLTagComment(HTMLTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public HTMLTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLTagComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public HTMLTagComment(CppSharp.Parser.AST.HTMLTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((HTMLTagComment.Internal*) __Instance) = *((HTMLTagComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class HTMLStartTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 40)] + 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="??0HTMLStartTagComment@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="??0HTMLStartTagComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1HTMLStartTagComment@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="?getAttributes@HTMLStartTagComment@AST@CppParser@CppSharp@@QAE?AVAttribute@1234@I@Z")] + internal static extern void getAttributes_0(global::System.IntPtr instance, global::System.IntPtr @return, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?addAttributes@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEXAAVAttribute@1234@@Z")] + internal static extern void addAttributes_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?clearAttributes@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEXXZ")] + internal static extern void clearAttributes_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getTagName@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setTagName@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getAttributesCount@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEIXZ")] + internal static extern uint getAttributesCount_0(global::System.IntPtr instance); + } + + public unsafe partial class Attribute : IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 48)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0Attribute@HTMLStartTagComment@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="??0Attribute@HTMLStartTagComment@AST@CppParser@CppSharp@@QAE@ABV01234@@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.ThisCall, + EntryPoint="??1Attribute@HTMLStartTagComment@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="?getName@Attribute@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setName@Attribute@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?getValue@Attribute@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getValue_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setValue@Attribute@HTMLStartTagComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setValue_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Attribute __CreateInstance(global::System.IntPtr native) + { + return new Attribute((Attribute.Internal*) native); + } + + public static Attribute __CreateInstance(Attribute.Internal native) + { + return new Attribute(native); + } + + private static Attribute.Internal* __CopyValue(Attribute.Internal native) + { + var ret = Marshal.AllocHGlobal(48); + CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Attribute.Internal*) ret; + } + + private Attribute(Attribute.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Attribute(Attribute.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Attribute() + { + __Instance = Marshal.AllocHGlobal(48); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Attribute(CppSharp.Parser.AST.HTMLStartTagComment.Attribute _0) + { + __Instance = Marshal.AllocHGlobal(48); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.HTMLStartTagComment.Attribute __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance, 0); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Name + { + get + { + var __ret = Internal.getName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public string Value + { + get + { + var __ret = Internal.getValue_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setValue_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLStartTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLStartTagComment((HTMLStartTagComment.Internal*) native); + } + + public static HTMLStartTagComment __CreateInstance(HTMLStartTagComment.Internal native) + { + return new HTMLStartTagComment(native); + } + + private static HTMLStartTagComment.Internal* __CopyValue(HTMLStartTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.HTMLStartTagComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (HTMLStartTagComment.Internal*) ret; + } + + private HTMLStartTagComment(HTMLStartTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLStartTagComment(HTMLStartTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLStartTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLStartTagComment(CppSharp.Parser.AST.HTMLStartTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.HTMLStartTagComment.Attribute getAttributes(uint i) + { + var __ret = new CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal(); + Internal.getAttributes_0(__Instance, new IntPtr(&__ret), i); + return CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); + } + + public void addAttributes(CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addAttributes_0(__Instance, arg0); + } + + public void clearAttributes() + { + Internal.clearAttributes_0(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public uint AttributesCount + { + get + { + var __ret = Internal.getAttributesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class HTMLEndTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 28)] + 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="??0HTMLEndTagComment@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="??0HTMLEndTagComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1HTMLEndTagComment@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="?getTagName@HTMLEndTagComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setTagName@HTMLEndTagComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLEndTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLEndTagComment((HTMLEndTagComment.Internal*) native); + } + + public static HTMLEndTagComment __CreateInstance(HTMLEndTagComment.Internal native) + { + return new HTMLEndTagComment(native); + } + + private static HTMLEndTagComment.Internal* __CopyValue(HTMLEndTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(28); + CppSharp.Parser.AST.HTMLEndTagComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (HTMLEndTagComment.Internal*) ret; + } + + private HTMLEndTagComment(HTMLEndTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLEndTagComment(HTMLEndTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLEndTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLEndTagComment(CppSharp.Parser.AST.HTMLEndTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class TextComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 28)] + 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="??0TextComment@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="??0TextComment@AST@CppParser@CppSharp@@QAE@ABV0123@@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.ThisCall, + EntryPoint="??1TextComment@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="?getText@TextComment@AST@CppParser@CppSharp@@QAEPBDXZ")] + internal static extern global::System.IntPtr getText_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?setText@TextComment@AST@CppParser@CppSharp@@QAEXPBD@Z")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new TextComment __CreateInstance(global::System.IntPtr native) + { + return new TextComment((TextComment.Internal*) native); + } + + public static TextComment __CreateInstance(TextComment.Internal native) + { + return new TextComment(native); + } + + private static TextComment.Internal* __CopyValue(TextComment.Internal native) + { + var ret = Marshal.AllocHGlobal(28); + CppSharp.Parser.AST.TextComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TextComment.Internal*) ret; + } + + private TextComment(TextComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TextComment(TextComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public TextComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TextComment(CppSharp.Parser.AST.TextComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(28); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } } public unsafe partial class RawComment : IDisposable diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppParser.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppParser.cs index fae5d1ef..a6ba7f09 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppParser.cs @@ -822,6 +822,9 @@ namespace CppSharp [FieldOffset(20)] public global::System.IntPtr Library; + [FieldOffset(24)] + public global::System.IntPtr CodeParser; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserResult@CppParser@CppSharp@@QAE@XZ")] @@ -1013,7 +1016,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 1)] + [StructLayout(LayoutKind.Explicit, Size = 0)] public partial struct Internal { [SuppressUnmanagedCodeSecurity] @@ -1054,7 +1057,7 @@ namespace CppSharp private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) { - var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(1); + var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); *ret = native; return ret; } @@ -1073,14 +1076,14 @@ namespace CppSharp public ClangParser() { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } public ClangParser(CppSharp.Parser.ClangParser _0) { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((ClangParser.Internal*) __Instance) = *((ClangParser.Internal*) _0.__Instance); 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 ec779812..2a029bb8 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 @@ -208,7 +208,21 @@ namespace CppSharp public enum CommentKind { - FullComment = 0 + FullComment = 0, + BlockContentComment = 1, + BlockCommandComment = 2, + ParamCommandComment = 3, + TParamCommandComment = 4, + VerbatimBlockComment = 5, + VerbatimLineComment = 6, + ParagraphComment = 7, + HTMLTagComment = 8, + HTMLStartTagComment = 9, + HTMLEndTagComment = 10, + TextComment = 11, + InlineContentComment = 12, + InlineCommandComment = 13, + VerbatimBlockLineComment = 14 } public enum MacroLocation @@ -10315,7 +10329,7 @@ namespace CppSharp } } - public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class BlockContentComment : CppSharp.Parser.AST.Comment, IDisposable { [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal @@ -10323,6 +10337,109 @@ namespace CppSharp [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2ENS1_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="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new BlockContentComment __CreateInstance(global::System.IntPtr native) + { + return new BlockContentComment((BlockContentComment.Internal*) native); + } + + public static BlockContentComment __CreateInstance(BlockContentComment.Internal native) + { + return new BlockContentComment(native); + } + + private static BlockContentComment.Internal* __CopyValue(BlockContentComment.Internal native) + { + var ret = (BlockContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private BlockContentComment(BlockContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockContentComment(BlockContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public BlockContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockContentComment(CppSharp.Parser.AST.BlockContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((BlockContentComment.Internal*) __Instance) = *((BlockContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2Ev")] @@ -10331,7 +10448,32 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + 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="_ZN8CppSharp9CppParser3AST11FullCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment9getBlocksEj")] + internal static extern global::System.IntPtr getBlocks_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment9addBlocksERPNS1_19BlockContentCommentE")] + internal static extern void addBlocks_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment11clearBlocksEv")] + internal static extern void clearBlocks_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment14getBlocksCountEv")] + internal static extern uint getBlocksCount_0(global::System.IntPtr instance); } private readonly bool __ownsNativeInstance; @@ -10348,9 +10490,9 @@ namespace CppSharp private static FullComment.Internal* __CopyValue(FullComment.Internal native) { - var ret = (FullComment.Internal*) Marshal.AllocHGlobal(4); - *ret = native; - return ret; + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (FullComment.Internal*) ret; } private FullComment(FullComment.Internal native) @@ -10368,7 +10510,7 @@ namespace CppSharp public FullComment() : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0(__Instance); @@ -10377,10 +10519,11 @@ namespace CppSharp public FullComment(CppSharp.Parser.AST.FullComment _0) : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - *((FullComment.Internal*) __Instance) = *((FullComment.Internal*) _0.__Instance); + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); } protected override void Dispose(bool disposing) @@ -10401,6 +10544,2216 @@ namespace CppSharp if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); } + + public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) + { + var __ret = Internal.getBlocks_0(__Instance, i); + CppSharp.Parser.AST.BlockContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.BlockContentComment) CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.BlockContentComment.__CreateInstance(__ret); + return __result0; + } + + public void addBlocks(CppSharp.Parser.AST.BlockContentComment s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addBlocks_0(__Instance, arg0); + } + + public void clearBlocks() + { + Internal.clearBlocks_0(__Instance); + } + + public uint BlocksCount + { + get + { + var __ret = Internal.getBlocksCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + { + [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="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] + 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")] + 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_2(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; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native) + { + return new BlockCommandComment((BlockCommandComment.Internal*) native); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native) + { + return new BlockCommandComment(native); + } + + private static BlockCommandComment.Internal* __CopyValue(BlockCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + return (BlockCommandComment.Internal*) ret; + } + + private BlockCommandComment(BlockCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockCommandComment(BlockCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public BlockCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_3(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + 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, i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public uint CommandId + { + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } + } + } + + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 40)] + 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; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + 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")] + internal static extern void dtor_0(global::System.IntPtr instance); + } + + public enum PassDirection : uint + { + In = 0, + Out = 1, + InOut = 2 + } + + private readonly bool __ownsNativeInstance; + + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new ParamCommandComment((ParamCommandComment.Internal*) native); + } + + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native) + { + return new ParamCommandComment(native); + } + + private static ParamCommandComment.Internal* __CopyValue(ParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (ParamCommandComment.Internal*) ret; + } + + private ParamCommandComment(ParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParamCommandComment(ParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public ParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + { + get + { + return ((Internal*) __Instance)->Direction; + } + + set + { + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; + } + } + } + + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 56)] + 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="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] + 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); + + [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); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new TParamCommandComment((TParamCommandComment.Internal*) native); + } + + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native) + { + return new TParamCommandComment(native); + } + + private static TParamCommandComment.Internal* __CopyValue(TParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(56); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TParamCommandComment.Internal*) ret; + } + + private TParamCommandComment(TParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TParamCommandComment(TParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public TParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public uint getPosition(uint i) + { + var __ret = Internal.getPosition_0(__Instance, i); + return __ret; + } + + public void addPosition(uint* s) + { + var arg0 = s; + Internal.addPosition_0(__Instance, arg0); + } + + public void clearPosition() + { + Internal.clearPosition_0(__Instance); + } + + public uint PositionCount + { + get + { + var __ret = Internal.getPositionCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_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="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockLineComment((VerbatimBlockLineComment.Internal*) native); + } + + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native) + { + return new VerbatimBlockLineComment(native); + } + + private static VerbatimBlockLineComment.Internal* __CopyValue(VerbatimBlockLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockLineComment.Internal*) ret; + } + + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockLineComment(VerbatimBlockLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public VerbatimBlockLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 56)] + 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="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] + 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_2(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockComment((VerbatimBlockComment.Internal*) native); + } + + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native) + { + return new VerbatimBlockComment(native); + } + + private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) + { + var ret = Marshal.AllocHGlobal(56); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockComment.Internal*) ret; + } + + private VerbatimBlockComment(VerbatimBlockComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockComment(VerbatimBlockComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimBlockComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addLines_0(__Instance, arg0); + } + + public void clearLines() + { + Internal.clearLines_0(__Instance); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 56)] + 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")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimLineComment((VerbatimLineComment.Internal*) native); + } + + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native) + { + return new VerbatimLineComment(native); + } + + private static VerbatimLineComment.Internal* __CopyValue(VerbatimLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(56); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimLineComment.Internal*) ret; + } + + private VerbatimLineComment(VerbatimLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimLineComment(VerbatimLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + 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.Cdecl, + 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="_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="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new InlineContentComment __CreateInstance(global::System.IntPtr native) + { + return new InlineContentComment((InlineContentComment.Internal*) native); + } + + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native) + { + return new InlineContentComment(native); + } + + private static InlineContentComment.Internal* __CopyValue(InlineContentComment.Internal native) + { + var ret = (InlineContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private InlineContentComment(InlineContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineContentComment(InlineContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public InlineContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [FieldOffset(4)] + public bool IsWhitespace; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] + 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")] + 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); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new ParagraphComment __CreateInstance(global::System.IntPtr native) + { + return new ParagraphComment((ParagraphComment.Internal*) native); + } + + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native) + { + return new ParagraphComment(native); + } + + private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (ParagraphComment.Internal*) ret; + } + + private ParagraphComment(ParagraphComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParagraphComment(ParagraphComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public ParagraphComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) + { + var __ret = Internal.getContent_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addContent_0(__Instance, arg0); + } + + public void clearContent() + { + Internal.clearContent_0(__Instance); + } + + public uint ContentCount + { + get + { + var __ret = Internal.getContentCount_0(__Instance); + return __ret; + } + } + + public bool IsWhitespace + { + get + { + return ((Internal*) __Instance)->IsWhitespace; + } + + set + { + ((Internal*) __Instance)->IsWhitespace = value; + } + } + } + + public unsafe partial class InlineCommandComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [FieldOffset(4)] + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment12getArgumentsEj")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment12addArgumentsERNS2_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="_ZN8CppSharp9CppParser3AST20InlineCommandComment14clearArgumentsEv")] + internal static extern void clearArguments_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment17getArgumentsCountEv")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); + } + + public enum RenderKind : uint + { + RenderNormal = 0, + RenderBold = 1, + RenderMonospaced = 2, + RenderEmphasized = 3 + } + + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2ERKS3_")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment8Argument7getTextEv")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8Argument7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(24); + CppSharp.Parser.AST.InlineCommandComment.Argument.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.InlineCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(24); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.InlineCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new InlineCommandComment __CreateInstance(global::System.IntPtr native) + { + return new InlineCommandComment((InlineCommandComment.Internal*) native); + } + + public static InlineCommandComment __CreateInstance(InlineCommandComment.Internal native) + { + return new InlineCommandComment(native); + } + + private static InlineCommandComment.Internal* __CopyValue(InlineCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.InlineCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (InlineCommandComment.Internal*) ret; + } + + private InlineCommandComment(InlineCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineCommandComment(InlineCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public InlineCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineCommandComment(CppSharp.Parser.AST.InlineCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineCommandComment.Argument getArguments(uint i) + { + var __ret = new CppSharp.Parser.AST.InlineCommandComment.Argument.Internal(); + Internal.getArguments_0(new IntPtr(&__ret), __Instance, i); + return CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.InlineCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind + { + get + { + return ((Internal*) __Instance)->CommentRenderKind; + } + + set + { + ((Internal*) __Instance)->CommentRenderKind = value; + } + } + } + + public unsafe partial class HTMLTagComment : CppSharp.Parser.AST.InlineContentComment, 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.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2ENS1_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="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLTagComment((HTMLTagComment.Internal*) native); + } + + public static HTMLTagComment __CreateInstance(HTMLTagComment.Internal native) + { + return new HTMLTagComment(native); + } + + private static HTMLTagComment.Internal* __CopyValue(HTMLTagComment.Internal native) + { + var ret = (HTMLTagComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private HTMLTagComment(HTMLTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLTagComment(HTMLTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public HTMLTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLTagComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public HTMLTagComment(CppSharp.Parser.AST.HTMLTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((HTMLTagComment.Internal*) __Instance) = *((HTMLTagComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class HTMLStartTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 56)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment13getAttributesEj")] + internal static extern void getAttributes_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment13addAttributesERNS2_9AttributeE")] + internal static extern void addAttributes_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment15clearAttributesEv")] + internal static extern void clearAttributes_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment10getTagNameEv")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment10setTagNameEPKc")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment18getAttributesCountEv")] + internal static extern uint getAttributesCount_0(global::System.IntPtr instance); + } + + public unsafe partial class Attribute : IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 48)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2ERKS3_")] + 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="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute7getNameEv")] + internal static extern global::System.IntPtr getName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute7setNameEPKc")] + internal static extern void setName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute8getValueEv")] + internal static extern global::System.IntPtr getValue_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute8setValueEPKc")] + internal static extern void setValue_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Attribute __CreateInstance(global::System.IntPtr native) + { + return new Attribute((Attribute.Internal*) native); + } + + public static Attribute __CreateInstance(Attribute.Internal native) + { + return new Attribute(native); + } + + private static Attribute.Internal* __CopyValue(Attribute.Internal native) + { + var ret = Marshal.AllocHGlobal(48); + CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (Attribute.Internal*) ret; + } + + private Attribute(Attribute.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Attribute(Attribute.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Attribute() + { + __Instance = Marshal.AllocHGlobal(48); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Attribute(CppSharp.Parser.AST.HTMLStartTagComment.Attribute _0) + { + __Instance = Marshal.AllocHGlobal(48); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.HTMLStartTagComment.Attribute __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Name + { + get + { + var __ret = Internal.getName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public string Value + { + get + { + var __ret = Internal.getValue_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setValue_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLStartTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLStartTagComment((HTMLStartTagComment.Internal*) native); + } + + public static HTMLStartTagComment __CreateInstance(HTMLStartTagComment.Internal native) + { + return new HTMLStartTagComment(native); + } + + private static HTMLStartTagComment.Internal* __CopyValue(HTMLStartTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(56); + CppSharp.Parser.AST.HTMLStartTagComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (HTMLStartTagComment.Internal*) ret; + } + + private HTMLStartTagComment(HTMLStartTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLStartTagComment(HTMLStartTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLStartTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLStartTagComment(CppSharp.Parser.AST.HTMLStartTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.HTMLStartTagComment.Attribute getAttributes(uint i) + { + var __ret = new CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal(); + Internal.getAttributes_0(new IntPtr(&__ret), __Instance, i); + return CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); + } + + public void addAttributes(CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addAttributes_0(__Instance, arg0); + } + + public void clearAttributes() + { + Internal.clearAttributes_0(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public uint AttributesCount + { + get + { + var __ret = Internal.getAttributesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class HTMLEndTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagComment10getTagNameEv")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagComment10setTagNameEPKc")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLEndTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLEndTagComment((HTMLEndTagComment.Internal*) native); + } + + public static HTMLEndTagComment __CreateInstance(HTMLEndTagComment.Internal native) + { + return new HTMLEndTagComment(native); + } + + private static HTMLEndTagComment.Internal* __CopyValue(HTMLEndTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.HTMLEndTagComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (HTMLEndTagComment.Internal*) ret; + } + + private HTMLEndTagComment(HTMLEndTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLEndTagComment(HTMLEndTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLEndTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLEndTagComment(CppSharp.Parser.AST.HTMLEndTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class TextComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST11TextCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextComment7getTextEv")] + 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="_ZN8CppSharp9CppParser3AST11TextComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new TextComment __CreateInstance(global::System.IntPtr native) + { + return new TextComment((TextComment.Internal*) native); + } + + public static TextComment __CreateInstance(TextComment.Internal native) + { + return new TextComment(native); + } + + private static TextComment.Internal* __CopyValue(TextComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.TextComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TextComment.Internal*) ret; + } + + private TextComment(TextComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TextComment(TextComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public TextComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TextComment(CppSharp.Parser.AST.TextComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } } public unsafe partial class RawComment : IDisposable diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppParser.cs index ccec2b07..03d5fa67 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppParser.cs @@ -822,6 +822,9 @@ namespace CppSharp [FieldOffset(40)] public global::System.IntPtr Library; + [FieldOffset(48)] + public global::System.IntPtr CodeParser; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser12ParserResultC2Ev")] @@ -1013,7 +1016,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 1)] + [StructLayout(LayoutKind.Explicit, Size = 0)] public partial struct Internal { [SuppressUnmanagedCodeSecurity] @@ -1054,7 +1057,7 @@ namespace CppSharp private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) { - var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(1); + var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); *ret = native; return ret; } @@ -1073,14 +1076,14 @@ namespace CppSharp public ClangParser() { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } public ClangParser(CppSharp.Parser.ClangParser _0) { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((ClangParser.Internal*) __Instance) = *((ClangParser.Internal*) _0.__Instance); 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 108119e1..99205c9b 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs @@ -208,7 +208,21 @@ namespace CppSharp public enum CommentKind { - FullComment = 0 + FullComment = 0, + BlockContentComment = 1, + BlockCommandComment = 2, + ParamCommandComment = 3, + TParamCommandComment = 4, + VerbatimBlockComment = 5, + VerbatimLineComment = 6, + ParagraphComment = 7, + HTMLTagComment = 8, + HTMLStartTagComment = 9, + HTMLEndTagComment = 10, + TextComment = 11, + InlineContentComment = 12, + InlineCommandComment = 13, + VerbatimBlockLineComment = 14 } public enum MacroLocation @@ -10315,7 +10329,7 @@ namespace CppSharp } } - public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + public unsafe partial class BlockContentComment : CppSharp.Parser.AST.Comment, IDisposable { [StructLayout(LayoutKind.Explicit, Size = 4)] public new partial struct Internal @@ -10323,6 +10337,109 @@ namespace CppSharp [FieldOffset(0)] public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2ENS1_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="_ZN8CppSharp9CppParser3AST19BlockContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new BlockContentComment __CreateInstance(global::System.IntPtr native) + { + return new BlockContentComment((BlockContentComment.Internal*) native); + } + + public static BlockContentComment __CreateInstance(BlockContentComment.Internal native) + { + return new BlockContentComment(native); + } + + private static BlockContentComment.Internal* __CopyValue(BlockContentComment.Internal native) + { + var ret = (BlockContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private BlockContentComment(BlockContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockContentComment(BlockContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public BlockContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockContentComment(CppSharp.Parser.AST.BlockContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((BlockContentComment.Internal*) __Instance) = *((BlockContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2Ev")] @@ -10331,7 +10448,32 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")] - internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0); + 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="_ZN8CppSharp9CppParser3AST11FullCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment9getBlocksEj")] + internal static extern global::System.IntPtr getBlocks_0(global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment9addBlocksERPNS1_19BlockContentCommentE")] + internal static extern void addBlocks_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment11clearBlocksEv")] + internal static extern void clearBlocks_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11FullComment14getBlocksCountEv")] + internal static extern uint getBlocksCount_0(global::System.IntPtr instance); } private readonly bool __ownsNativeInstance; @@ -10348,9 +10490,9 @@ namespace CppSharp private static FullComment.Internal* __CopyValue(FullComment.Internal native) { - var ret = (FullComment.Internal*) Marshal.AllocHGlobal(4); - *ret = native; - return ret; + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (FullComment.Internal*) ret; } private FullComment(FullComment.Internal native) @@ -10368,7 +10510,7 @@ namespace CppSharp public FullComment() : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; Internal.ctor_0(__Instance); @@ -10377,10 +10519,11 @@ namespace CppSharp public FullComment(CppSharp.Parser.AST.FullComment _0) : this((Internal*) null) { - __Instance = Marshal.AllocHGlobal(4); + __Instance = Marshal.AllocHGlobal(32); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; - *((FullComment.Internal*) __Instance) = *((FullComment.Internal*) _0.__Instance); + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); } protected override void Dispose(bool disposing) @@ -10401,6 +10544,2216 @@ namespace CppSharp if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); } + + public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) + { + var __ret = Internal.getBlocks_0(__Instance, i); + CppSharp.Parser.AST.BlockContentComment __result0; + if (__ret == IntPtr.Zero) __result0 = null; + else if (CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap.ContainsKey(__ret)) + __result0 = (CppSharp.Parser.AST.BlockContentComment) CppSharp.Parser.AST.BlockContentComment.NativeToManagedMap[__ret]; + else __result0 = CppSharp.Parser.AST.BlockContentComment.__CreateInstance(__ret); + return __result0; + } + + public void addBlocks(CppSharp.Parser.AST.BlockContentComment s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addBlocks_0(__Instance, arg0); + } + + public void clearBlocks() + { + Internal.clearBlocks_0(__Instance); + } + + public uint BlocksCount + { + get + { + var __ret = Internal.getBlocksCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class BlockCommandComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + { + [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="_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev")] + 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")] + 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; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(8); + CppSharp.Parser.AST.BlockCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(8); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(8); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.BlockCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new BlockCommandComment __CreateInstance(global::System.IntPtr native) + { + return new BlockCommandComment((BlockCommandComment.Internal*) native); + } + + public static BlockCommandComment __CreateInstance(BlockCommandComment.Internal native) + { + return new BlockCommandComment(native); + } + + private static BlockCommandComment.Internal* __CopyValue(BlockCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.BlockCommandComment.Internal.cctor_3(ret, new global::System.IntPtr(&native)); + return (BlockCommandComment.Internal*) ret; + } + + private BlockCommandComment(BlockCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected BlockCommandComment(BlockCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public BlockCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public BlockCommandComment(CppSharp.Parser.AST.BlockCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_3(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + 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, i); + return CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public uint CommandId + { + get + { + return ((Internal*) __Instance)->CommandId; + } + + set + { + ((Internal*) __Instance)->CommandId = value; + } + } + } + + public unsafe partial class ParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 40)] + 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; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19ParamCommandCommentC2ERKS2_")] + 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")] + internal static extern void dtor_0(global::System.IntPtr instance); + } + + public enum PassDirection : uint + { + In = 0, + Out = 1, + InOut = 2 + } + + private readonly bool __ownsNativeInstance; + + public static new ParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new ParamCommandComment((ParamCommandComment.Internal*) native); + } + + public static ParamCommandComment __CreateInstance(ParamCommandComment.Internal native) + { + return new ParamCommandComment(native); + } + + private static ParamCommandComment.Internal* __CopyValue(ParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.ParamCommandComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (ParamCommandComment.Internal*) ret; + } + + private ParamCommandComment(ParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParamCommandComment(ParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public ParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParamCommandComment(CppSharp.Parser.AST.ParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.ParamCommandComment.PassDirection Direction + { + get + { + return ((Internal*) __Instance)->Direction; + } + + set + { + ((Internal*) __Instance)->Direction = value; + } + } + + public uint ParamIndex + { + get + { + return ((Internal*) __Instance)->ParamIndex; + } + + set + { + ((Internal*) __Instance)->ParamIndex = value; + } + } + } + + public unsafe partial class TParamCommandComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 56)] + 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="_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST20TParamCommandCommentD2Ev")] + 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); + + [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); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST20TParamCommandComment16getPositionCountEv")] + internal static extern uint getPositionCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new TParamCommandComment __CreateInstance(global::System.IntPtr native) + { + return new TParamCommandComment((TParamCommandComment.Internal*) native); + } + + public static TParamCommandComment __CreateInstance(TParamCommandComment.Internal native) + { + return new TParamCommandComment(native); + } + + private static TParamCommandComment.Internal* __CopyValue(TParamCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(56); + CppSharp.Parser.AST.TParamCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (TParamCommandComment.Internal*) ret; + } + + private TParamCommandComment(TParamCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TParamCommandComment(TParamCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public TParamCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TParamCommandComment(CppSharp.Parser.AST.TParamCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public uint getPosition(uint i) + { + var __ret = Internal.getPosition_0(__Instance, i); + return __ret; + } + + public void addPosition(uint* s) + { + var arg0 = s; + Internal.addPosition_0(__Instance, arg0); + } + + public void clearPosition() + { + Internal.clearPosition_0(__Instance); + } + + public uint PositionCount + { + get + { + var __ret = Internal.getPositionCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimBlockLineComment : CppSharp.Parser.AST.Comment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_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="_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentD2Ev")] + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockLineComment((VerbatimBlockLineComment.Internal*) native); + } + + public static VerbatimBlockLineComment __CreateInstance(VerbatimBlockLineComment.Internal native) + { + return new VerbatimBlockLineComment(native); + } + + private static VerbatimBlockLineComment.Internal* __CopyValue(VerbatimBlockLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.VerbatimBlockLineComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockLineComment.Internal*) ret; + } + + private VerbatimBlockLineComment(VerbatimBlockLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockLineComment(VerbatimBlockLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public VerbatimBlockLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class VerbatimBlockComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 56)] + 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="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev")] + 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_2(global::System.IntPtr instance, global::System.IntPtr _0); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimBlockComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimBlockComment((VerbatimBlockComment.Internal*) native); + } + + public static VerbatimBlockComment __CreateInstance(VerbatimBlockComment.Internal native) + { + return new VerbatimBlockComment(native); + } + + private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) + { + var ret = Marshal.AllocHGlobal(56); + CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (VerbatimBlockComment.Internal*) ret; + } + + private VerbatimBlockComment(VerbatimBlockComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimBlockComment(VerbatimBlockComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimBlockComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimBlockComment(CppSharp.Parser.AST.VerbatimBlockComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(56); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) + { + var __ret = Internal.getLines_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addLines_0(__Instance, arg0); + } + + public void clearLines() + { + Internal.clearLines_0(__Instance); + } + + public uint LinesCount + { + get + { + var __ret = Internal.getLinesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class VerbatimLineComment : CppSharp.Parser.AST.BlockCommandComment, IDisposable + { + [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="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19VerbatimLineCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST19VerbatimLineComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new VerbatimLineComment __CreateInstance(global::System.IntPtr native) + { + return new VerbatimLineComment((VerbatimLineComment.Internal*) native); + } + + public static VerbatimLineComment __CreateInstance(VerbatimLineComment.Internal native) + { + return new VerbatimLineComment(native); + } + + private static VerbatimLineComment.Internal* __CopyValue(VerbatimLineComment.Internal native) + { + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.VerbatimLineComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (VerbatimLineComment.Internal*) ret; + } + + private VerbatimLineComment(VerbatimLineComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected VerbatimLineComment(VerbatimLineComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockCommandComment.Internal*) native) + { + } + + public VerbatimLineComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public VerbatimLineComment(CppSharp.Parser.AST.VerbatimLineComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + 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.Cdecl, + 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="_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="_ZN8CppSharp9CppParser3AST20InlineContentCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new InlineContentComment __CreateInstance(global::System.IntPtr native) + { + return new InlineContentComment((InlineContentComment.Internal*) native); + } + + public static InlineContentComment __CreateInstance(InlineContentComment.Internal native) + { + return new InlineContentComment(native); + } + + private static InlineContentComment.Internal* __CopyValue(InlineContentComment.Internal native) + { + var ret = (InlineContentComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private InlineContentComment(InlineContentComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineContentComment(InlineContentComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.Comment.Internal*) native) + { + } + + public InlineContentComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineContentComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public InlineContentComment(CppSharp.Parser.AST.InlineContentComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((InlineContentComment.Internal*) __Instance) = *((InlineContentComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class ParagraphComment : CppSharp.Parser.AST.BlockContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [FieldOffset(4)] + public bool IsWhitespace; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + 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="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] + 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")] + 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); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphComment15getContentCountEv")] + internal static extern uint getContentCount_0(global::System.IntPtr instance); + } + + private readonly bool __ownsNativeInstance; + + public static new ParagraphComment __CreateInstance(global::System.IntPtr native) + { + return new ParagraphComment((ParagraphComment.Internal*) native); + } + + public static ParagraphComment __CreateInstance(ParagraphComment.Internal native) + { + return new ParagraphComment(native); + } + + private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (ParagraphComment.Internal*) ret; + } + + private ParagraphComment(ParagraphComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected ParagraphComment(ParagraphComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.BlockContentComment.Internal*) native) + { + } + + public ParagraphComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public ParagraphComment(CppSharp.Parser.AST.ParagraphComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineContentComment getContent(uint i) + { + var __ret = Internal.getContent_0(__Instance, 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) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addContent_0(__Instance, arg0); + } + + public void clearContent() + { + Internal.clearContent_0(__Instance); + } + + public uint ContentCount + { + get + { + var __ret = Internal.getContentCount_0(__Instance); + return __ret; + } + } + + public bool IsWhitespace + { + get + { + return ((Internal*) __Instance)->IsWhitespace; + } + + set + { + ((Internal*) __Instance)->IsWhitespace = value; + } + } + } + + public unsafe partial class InlineCommandComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 32)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [FieldOffset(4)] + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment12getArgumentsEj")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment12addArgumentsERNS2_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="_ZN8CppSharp9CppParser3AST20InlineCommandComment14clearArgumentsEv")] + internal static extern void clearArguments_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment17getArgumentsCountEv")] + internal static extern uint getArgumentsCount_0(global::System.IntPtr instance); + } + + public enum RenderKind : uint + { + RenderNormal = 0, + RenderBold = 1, + RenderMonospaced = 2, + RenderEmphasized = 3 + } + + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2ERKS3_")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST20InlineCommandComment8Argument7getTextEv")] + 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="_ZN8CppSharp9CppParser3AST20InlineCommandComment8Argument7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Argument __CreateInstance(global::System.IntPtr native) + { + return new Argument((Argument.Internal*) native); + } + + public static Argument __CreateInstance(Argument.Internal native) + { + return new Argument(native); + } + + private static Argument.Internal* __CopyValue(Argument.Internal native) + { + var ret = Marshal.AllocHGlobal(8); + CppSharp.Parser.AST.InlineCommandComment.Argument.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (Argument.Internal*) ret; + } + + private Argument(Argument.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Argument(Argument.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Argument() + { + __Instance = Marshal.AllocHGlobal(8); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Argument(CppSharp.Parser.AST.InlineCommandComment.Argument _0) + { + __Instance = Marshal.AllocHGlobal(8); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.InlineCommandComment.Argument __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new InlineCommandComment __CreateInstance(global::System.IntPtr native) + { + return new InlineCommandComment((InlineCommandComment.Internal*) native); + } + + public static InlineCommandComment __CreateInstance(InlineCommandComment.Internal native) + { + return new InlineCommandComment(native); + } + + private static InlineCommandComment.Internal* __CopyValue(InlineCommandComment.Internal native) + { + var ret = Marshal.AllocHGlobal(32); + CppSharp.Parser.AST.InlineCommandComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); + return (InlineCommandComment.Internal*) ret; + } + + private InlineCommandComment(InlineCommandComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected InlineCommandComment(InlineCommandComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public InlineCommandComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public InlineCommandComment(CppSharp.Parser.AST.InlineCommandComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(32); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_2(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.InlineCommandComment.Argument getArguments(uint i) + { + var __ret = new CppSharp.Parser.AST.InlineCommandComment.Argument.Internal(); + Internal.getArguments_0(new IntPtr(&__ret), __Instance, i); + return CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret); + } + + public void addArguments(CppSharp.Parser.AST.InlineCommandComment.Argument s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addArguments_0(__Instance, arg0); + } + + public void clearArguments() + { + Internal.clearArguments_0(__Instance); + } + + public uint ArgumentsCount + { + get + { + var __ret = Internal.getArgumentsCount_0(__Instance); + return __ret; + } + } + + public CppSharp.Parser.AST.InlineCommandComment.RenderKind CommentRenderKind + { + get + { + return ((Internal*) __Instance)->CommentRenderKind; + } + + set + { + ((Internal*) __Instance)->CommentRenderKind = value; + } + } + } + + public unsafe partial class HTMLTagComment : CppSharp.Parser.AST.InlineContentComment, 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.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2ENS1_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="_ZN8CppSharp9CppParser3AST14HTMLTagCommentC2ERKS2_")] + internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLTagComment((HTMLTagComment.Internal*) native); + } + + public static HTMLTagComment __CreateInstance(HTMLTagComment.Internal native) + { + return new HTMLTagComment(native); + } + + private static HTMLTagComment.Internal* __CopyValue(HTMLTagComment.Internal native) + { + var ret = (HTMLTagComment.Internal*) Marshal.AllocHGlobal(4); + *ret = native; + return ret; + } + + private HTMLTagComment(HTMLTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLTagComment(HTMLTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public HTMLTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLTagComment(CppSharp.Parser.AST.CommentKind Kind) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = Kind; + Internal.ctor_1(__Instance, arg0); + } + + public HTMLTagComment(CppSharp.Parser.AST.HTMLTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(4); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + *((HTMLTagComment.Internal*) __Instance) = *((HTMLTagComment.Internal*) _0.__Instance); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + } + + public unsafe partial class HTMLStartTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 40)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment13getAttributesEj")] + internal static extern void getAttributes_0(global::System.IntPtr @return, global::System.IntPtr instance, uint i); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment13addAttributesERNS2_9AttributeE")] + internal static extern void addAttributes_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment15clearAttributesEv")] + internal static extern void clearAttributes_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment10getTagNameEv")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment10setTagNameEPKc")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment18getAttributesCountEv")] + internal static extern uint getAttributesCount_0(global::System.IntPtr instance); + } + + public unsafe partial class Attribute : IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public partial struct Internal + { + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2ERKS3_")] + 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="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute7getNameEv")] + internal static extern global::System.IntPtr getName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute7setNameEPKc")] + internal static extern void setName_0(global::System.IntPtr instance, global::System.IntPtr s); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute8getValueEv")] + internal static extern global::System.IntPtr getValue_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9Attribute8setValueEPKc")] + internal static extern void setValue_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + public global::System.IntPtr __Instance { get; protected set; } + public static readonly System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary(); + + private readonly bool __ownsNativeInstance; + + public static Attribute __CreateInstance(global::System.IntPtr native) + { + return new Attribute((Attribute.Internal*) native); + } + + public static Attribute __CreateInstance(Attribute.Internal native) + { + return new Attribute(native); + } + + private static Attribute.Internal* __CopyValue(Attribute.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (Attribute.Internal*) ret; + } + + private Attribute(Attribute.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected Attribute(Attribute.Internal* native, bool isInternalImpl = false) + { + __Instance = new global::System.IntPtr(native); + } + + public Attribute() + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public Attribute(CppSharp.Parser.AST.HTMLStartTagComment.Attribute _0) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + public void Dispose() + { + Dispose(disposing: true); + } + + protected virtual void Dispose(bool disposing) + { + DestroyNativeInstance(false); + } + + public virtual void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.HTMLStartTagComment.Attribute __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance || force) + Internal.dtor_0(__Instance); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Name + { + get + { + var __ret = Internal.getName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public string Value + { + get + { + var __ret = Internal.getValue_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setValue_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLStartTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLStartTagComment((HTMLStartTagComment.Internal*) native); + } + + public static HTMLStartTagComment __CreateInstance(HTMLStartTagComment.Internal native) + { + return new HTMLStartTagComment(native); + } + + private static HTMLStartTagComment.Internal* __CopyValue(HTMLStartTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(40); + CppSharp.Parser.AST.HTMLStartTagComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (HTMLStartTagComment.Internal*) ret; + } + + private HTMLStartTagComment(HTMLStartTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLStartTagComment(HTMLStartTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLStartTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLStartTagComment(CppSharp.Parser.AST.HTMLStartTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(40); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public CppSharp.Parser.AST.HTMLStartTagComment.Attribute getAttributes(uint i) + { + var __ret = new CppSharp.Parser.AST.HTMLStartTagComment.Attribute.Internal(); + Internal.getAttributes_0(new IntPtr(&__ret), __Instance, i); + return CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret); + } + + public void addAttributes(CppSharp.Parser.AST.HTMLStartTagComment.Attribute s) + { + var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance; + Internal.addAttributes_0(__Instance, arg0); + } + + public void clearAttributes() + { + Internal.clearAttributes_0(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + + public uint AttributesCount + { + get + { + var __ret = Internal.getAttributesCount_0(__Instance); + return __ret; + } + } + } + + public unsafe partial class HTMLEndTagComment : CppSharp.Parser.AST.HTMLTagComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagComment10getTagNameEv")] + internal static extern global::System.IntPtr getTagName_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST17HTMLEndTagComment10setTagNameEPKc")] + internal static extern void setTagName_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new HTMLEndTagComment __CreateInstance(global::System.IntPtr native) + { + return new HTMLEndTagComment((HTMLEndTagComment.Internal*) native); + } + + public static HTMLEndTagComment __CreateInstance(HTMLEndTagComment.Internal native) + { + return new HTMLEndTagComment(native); + } + + private static HTMLEndTagComment.Internal* __CopyValue(HTMLEndTagComment.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.HTMLEndTagComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (HTMLEndTagComment.Internal*) ret; + } + + private HTMLEndTagComment(HTMLEndTagComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected HTMLEndTagComment(HTMLEndTagComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.HTMLTagComment.Internal*) native) + { + } + + public HTMLEndTagComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public HTMLEndTagComment(CppSharp.Parser.AST.HTMLEndTagComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string TagName + { + get + { + var __ret = Internal.getTagName_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setTagName_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } + } + + public unsafe partial class TextComment : CppSharp.Parser.AST.InlineContentComment, IDisposable + { + [StructLayout(LayoutKind.Explicit, Size = 16)] + public new partial struct Internal + { + [FieldOffset(0)] + public CppSharp.Parser.AST.CommentKind Kind; + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextCommentC2Ev")] + internal static extern void ctor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextCommentC2ERKS2_")] + 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="_ZN8CppSharp9CppParser3AST11TextCommentD2Ev")] + internal static extern void dtor_0(global::System.IntPtr instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZN8CppSharp9CppParser3AST11TextComment7getTextEv")] + 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="_ZN8CppSharp9CppParser3AST11TextComment7setTextEPKc")] + internal static extern void setText_0(global::System.IntPtr instance, global::System.IntPtr s); + } + + private readonly bool __ownsNativeInstance; + + public static new TextComment __CreateInstance(global::System.IntPtr native) + { + return new TextComment((TextComment.Internal*) native); + } + + public static TextComment __CreateInstance(TextComment.Internal native) + { + return new TextComment(native); + } + + private static TextComment.Internal* __CopyValue(TextComment.Internal native) + { + var ret = Marshal.AllocHGlobal(16); + CppSharp.Parser.AST.TextComment.Internal.cctor_1(ret, new global::System.IntPtr(&native)); + return (TextComment.Internal*) ret; + } + + private TextComment(TextComment.Internal native) + : this(__CopyValue(native)) + { + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + } + + protected TextComment(TextComment.Internal* native, bool isInternalImpl = false) + : base((CppSharp.Parser.AST.InlineContentComment.Internal*) native) + { + } + + public TextComment() + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + Internal.ctor_0(__Instance); + } + + public TextComment(CppSharp.Parser.AST.TextComment _0) + : this((Internal*) null) + { + __Instance = Marshal.AllocHGlobal(16); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance; + Internal.cctor_1(__Instance, arg0); + } + + protected override void Dispose(bool disposing) + { + DestroyNativeInstance(false); + base.Dispose(disposing); + } + + public override void DestroyNativeInstance() + { + DestroyNativeInstance(true); + } + + private void DestroyNativeInstance(bool force) + { + CppSharp.Parser.AST.Comment __dummy; + NativeToManagedMap.TryRemove(__Instance, out __dummy); + if (__ownsNativeInstance) + Marshal.FreeHGlobal(__Instance); + } + + public string Text + { + get + { + var __ret = Internal.getText_0(__Instance); + return Marshal.PtrToStringAnsi(__ret); + } + + set + { + var arg0 = Marshal.StringToHGlobalAnsi(value); + Internal.setText_0(__Instance, arg0); + Marshal.FreeHGlobal(arg0); + } + } } public unsafe partial class RawComment : IDisposable diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppParser.cs index 559d94fe..8ea2882d 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppParser.cs @@ -822,6 +822,9 @@ namespace CppSharp [FieldOffset(40)] public global::System.IntPtr Library; + [FieldOffset(48)] + public global::System.IntPtr CodeParser; + [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser12ParserResultC2Ev")] @@ -1013,7 +1016,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 1)] + [StructLayout(LayoutKind.Explicit, Size = 0)] public partial struct Internal { [SuppressUnmanagedCodeSecurity] @@ -1054,7 +1057,7 @@ namespace CppSharp private static ClangParser.Internal* __CopyValue(ClangParser.Internal native) { - var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(1); + var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0); *ret = native; return ret; } @@ -1073,14 +1076,14 @@ namespace CppSharp public ClangParser() { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; } public ClangParser(CppSharp.Parser.ClangParser _0) { - __Instance = Marshal.AllocHGlobal(1); + __Instance = Marshal.AllocHGlobal(0); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((ClangParser.Internal*) __Instance) = *((ClangParser.Internal*) _0.__Instance); diff --git a/src/CppParser/Comments.cpp b/src/CppParser/Comments.cpp index c4f3bd96..a708f64f 100644 --- a/src/CppParser/Comments.cpp +++ b/src/CppParser/Comments.cpp @@ -47,21 +47,20 @@ RawComment* Parser::WalkRawComment(const clang::RawComment* RC) return Comment; } -#if 0 static InlineCommandComment::RenderKind ConvertRenderKind(clang::comments::InlineCommandComment::RenderKind Kind) { using namespace clang::comments; switch(Kind) { - case InlineCommandComment::RenderNormal: - return InlineCommandComment::RenderKind::RenderNormal; - case InlineCommandComment::RenderBold: - return InlineCommandComment::RenderKind::RenderBold; - case InlineCommandComment::RenderMonospaced: - return InlineCommandComment::RenderKind::RenderMonospaced; - case InlineCommandComment::RenderEmphasized: - return InlineCommandComment::RenderKind::RenderEmphasized; + case clang::comments::InlineCommandComment::RenderNormal: + return CppSharp::CppParser::AST::InlineCommandComment::RenderKind::RenderNormal; + case clang::comments::InlineCommandComment::RenderBold: + return CppSharp::CppParser::AST::InlineCommandComment::RenderKind::RenderBold; + case clang::comments::InlineCommandComment::RenderMonospaced: + return CppSharp::CppParser::AST::InlineCommandComment::RenderKind::RenderMonospaced; + case clang::comments::InlineCommandComment::RenderEmphasized: + return CppSharp::CppParser::AST::InlineCommandComment::RenderKind::RenderEmphasized; } llvm_unreachable("Unknown render kind"); } @@ -72,30 +71,27 @@ ConvertParamPassDirection(clang::comments::ParamCommandComment::PassDirection Di using namespace clang::comments; switch(Dir) { - case ParamCommandComment::In: - return ParamCommandComment::PassDirection::In; - case ParamCommandComment::Out: - return ParamCommandComment::PassDirection::Out; - case ParamCommandComment::InOut: - return ParamCommandComment::PassDirection::InOut; + case clang::comments::ParamCommandComment::In: + return CppSharp::CppParser::AST::ParamCommandComment::PassDirection::In; + case clang::comments::ParamCommandComment::Out: + return CppSharp::CppParser::AST::ParamCommandComment::PassDirection::Out; + case clang::comments::ParamCommandComment::InOut: + return CppSharp::CppParser::AST::ParamCommandComment::PassDirection::InOut; } llvm_unreachable("Unknown parameter pass direction"); } static void HandleBlockCommand(const clang::comments::BlockCommandComment *CK, - BlockCommandComment^ BC) + BlockCommandComment* BC) { - using namespace clix; - BC->CommandId = CK->getCommandID(); for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++I) { auto Arg = BlockCommandComment::Argument(); - Arg.Text = marshalString(CK->getArgText(I)); - BC->Arguments->Add(Arg); + Arg.Text = CK->getArgText(I); + BC->Arguments.push_back(Arg); } } -#endif static Comment* ConvertCommentBlock(clang::comments::Comment* C) { @@ -112,16 +108,13 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto FC = new FullComment(); _Comment = FC; -#if 0 for (auto I = CK->child_begin(), E = CK->child_end(); I != E; ++I) { auto Content = ConvertCommentBlock(*I); - FC->Blocks->Add(dynamic_cast(Content)); + FC->Blocks.push_back(cast(Content)); } break; -#endif } -#if 0 case Comment::BlockCommandCommentKind: { auto CK = cast(C); @@ -150,7 +143,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) HandleBlockCommand(CK, TC); if (CK->isPositionValid()) for (unsigned I = 0, E = CK->getDepth(); I != E; ++I) - TC->Position->Add(CK->getIndex(I)); + TC->Position.push_back(CK->getIndex(I)); break; } case Comment::VerbatimBlockCommentKind: @@ -161,7 +154,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) for (auto I = CK->child_begin(), E = CK->child_end(); I != E; ++I) { auto Line = ConvertCommentBlock(*I); - VB->Lines->Add(dynamic_cast(Line)); + VB->Lines.push_back(cast(Line)); } break; } @@ -170,7 +163,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto VL = new VerbatimLineComment(); _Comment = VL; - VL->Text = marshalString(CK->getText()); + VL->Text = CK->getText(); break; } case Comment::ParagraphCommentKind: @@ -181,7 +174,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) for (auto I = CK->child_begin(), E = CK->child_end(); I != E; ++I) { auto Content = ConvertCommentBlock(*I); - PC->Content->Add(dynamic_cast(Content)); + PC->Content.push_back(cast(Content)); } PC->IsWhitespace = CK->isWhitespace(); break; @@ -191,14 +184,14 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto TC = new HTMLStartTagComment(); _Comment = TC; - TC->TagName = marshalString(CK->getTagName()); + TC->TagName = CK->getTagName(); for (unsigned I = 0, E = CK->getNumAttrs(); I != E; ++I) { auto A = CK->getAttr(I); auto Attr = HTMLStartTagComment::Attribute(); - Attr.Name = marshalString(A.Name); - Attr.Value = marshalString(A.Value); - TC->Attributes->Add(Attr); + Attr.Name = A.Name; + Attr.Value = A.Value; + TC->Attributes.push_back(Attr); } break; } @@ -207,7 +200,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto TC = new HTMLEndTagComment(); _Comment = TC; - TC->TagName = marshalString(CK->getTagName()); + TC->TagName = CK->getTagName(); break; } case Comment::TextCommentKind: @@ -215,7 +208,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto TC = new TextComment(); _Comment = TC; - TC->Text = marshalString(CK->getText()); + TC->Text = CK->getText(); break; } case Comment::InlineCommandCommentKind: @@ -223,12 +216,12 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto IC = new InlineCommandComment(); _Comment = IC; - IC->Kind = ConvertRenderKind(CK->getRenderKind()); + IC->CommentRenderKind = ConvertRenderKind(CK->getRenderKind()); for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++I) { auto Arg = InlineCommandComment::Argument(); - Arg.Text = marshalString(CK->getArgText(I)); - IC->Arguments->Add(Arg); + Arg.Text = CK->getArgText(I); + IC->Arguments.push_back(Arg); } break; } @@ -237,10 +230,9 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto CK = cast(C); auto VL = new VerbatimBlockLineComment(); _Comment = VL; - VL->Text = marshalString(CK->getText()); + VL->Text = CK->getText(); break; } -#endif case Comment::NoCommentKind: return nullptr; default: llvm_unreachable("Unknown comment kind");