Browse Source

Fix regressed marshalling of lists in C++/CLI

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1621/head
Dimitar Dobrev 5 years ago
parent
commit
36c9e5f60a
  1. 803
      src/CppParser/Bindings/CLI/AST.cpp
  2. 268
      src/CppParser/Bindings/CLI/AST.h
  3. 514
      src/CppParser/Bindings/CLI/CppParser.cpp
  4. 194
      src/CppParser/Bindings/CLI/CppParser.h
  5. 2521
      src/CppParser/Bindings/CLI/Decl.cpp
  6. 608
      src/CppParser/Bindings/CLI/Decl.h
  7. 3643
      src/CppParser/Bindings/CLI/Expr.cpp
  8. 550
      src/CppParser/Bindings/CLI/Expr.h
  9. 42
      src/CppParser/Bindings/CLI/Sources.cpp
  10. 16
      src/CppParser/Bindings/CLI/Sources.h
  11. 1333
      src/CppParser/Bindings/CLI/Stmt.cpp
  12. 224
      src/CppParser/Bindings/CLI/Stmt.h
  13. 190
      src/CppParser/Bindings/CLI/Target.cpp
  14. 18
      src/CppParser/Bindings/CLI/Target.h
  15. 653
      src/CppParser/Bindings/CLI/Types.cpp
  16. 148
      src/CppParser/Bindings/CLI/Types.h
  17. 7
      src/Generator/Types/Std/Stdlib.CLI.cs

803
src/CppParser/Bindings/CLI/AST.cpp

File diff suppressed because it is too large Load Diff

268
src/CppParser/Bindings/CLI/AST.h

@ -88,15 +88,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::NativeLibrary* NativePtr; property struct ::CppSharp::CppParser::AST::NativeLibrary* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
NativeLibrary(::CppSharp::CppParser::AST::NativeLibrary* native); NativeLibrary(struct ::CppSharp::CppParser::AST::NativeLibrary* native);
NativeLibrary(::CppSharp::CppParser::AST::NativeLibrary* native, bool ownNativeInstance); NativeLibrary(struct ::CppSharp::CppParser::AST::NativeLibrary* native, bool ownNativeInstance);
static NativeLibrary^ __CreateInstance(::System::IntPtr native); static NativeLibrary^ __CreateInstance(::System::IntPtr native);
static NativeLibrary^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static NativeLibrary^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NativeLibrary(); NativeLibrary();
@ -105,10 +105,10 @@ namespace CppSharp
~NativeLibrary(); ~NativeLibrary();
property System::String^ FileName property ::System::String^ FileName
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property CppSharp::Parser::AST::ArchType ArchType property CppSharp::Parser::AST::ArchType ArchType
@ -117,16 +117,16 @@ namespace CppSharp
void set(CppSharp::Parser::AST::ArchType); void set(CppSharp::Parser::AST::ArchType);
} }
property System::Collections::Generic::List<System::String^>^ Symbols property ::System::Collections::Generic::List<::System::String^>^ Symbols
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ Dependencies property ::System::Collections::Generic::List<::System::String^>^ Dependencies
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property unsigned int SymbolsCount property unsigned int SymbolsCount
@ -139,15 +139,15 @@ namespace CppSharp
unsigned int get(); unsigned int get();
} }
System::String^ GetSymbols(unsigned int i); ::System::String^ GetSymbols(unsigned int i);
void AddSymbols(System::String^ s); void AddSymbols(::System::String^ s);
void ClearSymbols(); void ClearSymbols();
System::String^ GetDependencies(unsigned int i); ::System::String^ GetDependencies(unsigned int i);
void AddDependencies(System::String^ s); void AddDependencies(::System::String^ s);
void ClearDependencies(); void ClearDependencies();
@ -160,15 +160,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::Comment* NativePtr; property struct ::CppSharp::CppParser::AST::Comment* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Comment(::CppSharp::CppParser::AST::Comment* native); Comment(struct ::CppSharp::CppParser::AST::Comment* native);
Comment(::CppSharp::CppParser::AST::Comment* native, bool ownNativeInstance); Comment(struct ::CppSharp::CppParser::AST::Comment* native, bool ownNativeInstance);
static Comment^ __CreateInstance(::System::IntPtr native); static Comment^ __CreateInstance(::System::IntPtr native);
static Comment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Comment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Comment(CppSharp::Parser::AST::CommentKind kind); Comment(CppSharp::Parser::AST::CommentKind kind);
@ -194,8 +194,8 @@ namespace CppSharp
{ {
public: public:
BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native); BlockContentComment(struct ::CppSharp::CppParser::AST::BlockContentComment* native);
BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native, bool ownNativeInstance); BlockContentComment(struct ::CppSharp::CppParser::AST::BlockContentComment* native, bool ownNativeInstance);
static BlockContentComment^ __CreateInstance(::System::IntPtr native); static BlockContentComment^ __CreateInstance(::System::IntPtr native);
static BlockContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static BlockContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BlockContentComment(); BlockContentComment();
@ -213,8 +213,8 @@ namespace CppSharp
{ {
public: public:
FullComment(::CppSharp::CppParser::AST::FullComment* native); FullComment(struct ::CppSharp::CppParser::AST::FullComment* native);
FullComment(::CppSharp::CppParser::AST::FullComment* native, bool ownNativeInstance); FullComment(struct ::CppSharp::CppParser::AST::FullComment* native, bool ownNativeInstance);
static FullComment^ __CreateInstance(::System::IntPtr native); static FullComment^ __CreateInstance(::System::IntPtr native);
static FullComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static FullComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FullComment(); FullComment();
@ -223,10 +223,10 @@ namespace CppSharp
~FullComment(); ~FullComment();
property System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ Blocks property ::System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ Blocks
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^);
} }
property unsigned int BlocksCount property unsigned int BlocksCount
@ -245,8 +245,8 @@ namespace CppSharp
{ {
public: public:
InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native); InlineContentComment(struct ::CppSharp::CppParser::AST::InlineContentComment* native);
InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native, bool ownNativeInstance); InlineContentComment(struct ::CppSharp::CppParser::AST::InlineContentComment* native, bool ownNativeInstance);
static InlineContentComment^ __CreateInstance(::System::IntPtr native); static InlineContentComment^ __CreateInstance(::System::IntPtr native);
static InlineContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static InlineContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InlineContentComment(); InlineContentComment();
@ -270,8 +270,8 @@ namespace CppSharp
{ {
public: public:
ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native); ParagraphComment(struct ::CppSharp::CppParser::AST::ParagraphComment* native);
ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native, bool ownNativeInstance); ParagraphComment(struct ::CppSharp::CppParser::AST::ParagraphComment* native, bool ownNativeInstance);
static ParagraphComment^ __CreateInstance(::System::IntPtr native); static ParagraphComment^ __CreateInstance(::System::IntPtr native);
static ParagraphComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ParagraphComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParagraphComment(); ParagraphComment();
@ -286,10 +286,10 @@ namespace CppSharp
void set(bool); void set(bool);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ Content property ::System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ Content
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^);
} }
property unsigned int ContentCount property unsigned int ContentCount
@ -312,15 +312,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr; property struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native); Argument(struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native);
Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native, bool ownNativeInstance); Argument(struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native, bool ownNativeInstance);
static Argument^ __CreateInstance(::System::IntPtr native); static Argument^ __CreateInstance(::System::IntPtr native);
static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Argument(); Argument();
@ -329,10 +329,10 @@ namespace CppSharp
~Argument(); ~Argument();
property System::String^ Text property ::System::String^ Text
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
protected: protected:
@ -340,8 +340,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
BlockCommandComment(::CppSharp::CppParser::AST::BlockCommandComment* native); BlockCommandComment(struct ::CppSharp::CppParser::AST::BlockCommandComment* native);
BlockCommandComment(::CppSharp::CppParser::AST::BlockCommandComment* native, bool ownNativeInstance); BlockCommandComment(struct ::CppSharp::CppParser::AST::BlockCommandComment* native, bool ownNativeInstance);
static BlockCommandComment^ __CreateInstance(::System::IntPtr native); static BlockCommandComment^ __CreateInstance(::System::IntPtr native);
static BlockCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static BlockCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BlockCommandComment(); BlockCommandComment();
@ -364,10 +364,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::ParagraphComment^); void set(CppSharp::Parser::AST::ParagraphComment^);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ Arguments property ::System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ Arguments
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^);
} }
property unsigned int ArgumentsCount property unsigned int ArgumentsCount
@ -395,8 +395,8 @@ namespace CppSharp
InOut = 2 InOut = 2
}; };
ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native); ParamCommandComment(struct ::CppSharp::CppParser::AST::ParamCommandComment* native);
ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native, bool ownNativeInstance); ParamCommandComment(struct ::CppSharp::CppParser::AST::ParamCommandComment* native, bool ownNativeInstance);
static ParamCommandComment^ __CreateInstance(::System::IntPtr native); static ParamCommandComment^ __CreateInstance(::System::IntPtr native);
static ParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParamCommandComment(); ParamCommandComment();
@ -422,8 +422,8 @@ namespace CppSharp
{ {
public: public:
TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native); TParamCommandComment(struct ::CppSharp::CppParser::AST::TParamCommandComment* native);
TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native, bool ownNativeInstance); TParamCommandComment(struct ::CppSharp::CppParser::AST::TParamCommandComment* native, bool ownNativeInstance);
static TParamCommandComment^ __CreateInstance(::System::IntPtr native); static TParamCommandComment^ __CreateInstance(::System::IntPtr native);
static TParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TParamCommandComment(); TParamCommandComment();
@ -432,10 +432,10 @@ namespace CppSharp
~TParamCommandComment(); ~TParamCommandComment();
property System::Collections::Generic::List<unsigned int>^ Position property ::System::Collections::Generic::List<unsigned int>^ Position
{ {
System::Collections::Generic::List<unsigned int>^ get(); ::System::Collections::Generic::List<unsigned int>^ get();
void set(System::Collections::Generic::List<unsigned int>^); void set(::System::Collections::Generic::List<unsigned int>^);
} }
property unsigned int PositionCount property unsigned int PositionCount
@ -445,7 +445,7 @@ namespace CppSharp
unsigned int GetPosition(unsigned int i); unsigned int GetPosition(unsigned int i);
void AddPosition([System::Runtime::InteropServices::In, System::Runtime::InteropServices::Out] unsigned int% s); void AddPosition([::System::Runtime::InteropServices::In, ::System::Runtime::InteropServices::Out] unsigned int% s);
void ClearPosition(); void ClearPosition();
}; };
@ -454,8 +454,8 @@ namespace CppSharp
{ {
public: public:
VerbatimBlockLineComment(::CppSharp::CppParser::AST::VerbatimBlockLineComment* native); VerbatimBlockLineComment(struct ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native);
VerbatimBlockLineComment(::CppSharp::CppParser::AST::VerbatimBlockLineComment* native, bool ownNativeInstance); VerbatimBlockLineComment(struct ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native, bool ownNativeInstance);
static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native); static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native);
static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimBlockLineComment(); VerbatimBlockLineComment();
@ -464,10 +464,10 @@ namespace CppSharp
~VerbatimBlockLineComment(); ~VerbatimBlockLineComment();
property System::String^ Text property ::System::String^ Text
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -475,8 +475,8 @@ namespace CppSharp
{ {
public: public:
VerbatimBlockComment(::CppSharp::CppParser::AST::VerbatimBlockComment* native); VerbatimBlockComment(struct ::CppSharp::CppParser::AST::VerbatimBlockComment* native);
VerbatimBlockComment(::CppSharp::CppParser::AST::VerbatimBlockComment* native, bool ownNativeInstance); VerbatimBlockComment(struct ::CppSharp::CppParser::AST::VerbatimBlockComment* native, bool ownNativeInstance);
static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native); static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native);
static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimBlockComment(); VerbatimBlockComment();
@ -485,10 +485,10 @@ namespace CppSharp
~VerbatimBlockComment(); ~VerbatimBlockComment();
property System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ Lines property ::System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ Lines
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^);
} }
property unsigned int LinesCount property unsigned int LinesCount
@ -507,8 +507,8 @@ namespace CppSharp
{ {
public: public:
VerbatimLineComment(::CppSharp::CppParser::AST::VerbatimLineComment* native); VerbatimLineComment(struct ::CppSharp::CppParser::AST::VerbatimLineComment* native);
VerbatimLineComment(::CppSharp::CppParser::AST::VerbatimLineComment* native, bool ownNativeInstance); VerbatimLineComment(struct ::CppSharp::CppParser::AST::VerbatimLineComment* native, bool ownNativeInstance);
static VerbatimLineComment^ __CreateInstance(::System::IntPtr native); static VerbatimLineComment^ __CreateInstance(::System::IntPtr native);
static VerbatimLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VerbatimLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimLineComment(); VerbatimLineComment();
@ -517,10 +517,10 @@ namespace CppSharp
~VerbatimLineComment(); ~VerbatimLineComment();
property System::String^ Text property ::System::String^ Text
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -541,15 +541,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr; property struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Argument(::CppSharp::CppParser::AST::InlineCommandComment::Argument* native); Argument(struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native);
Argument(::CppSharp::CppParser::AST::InlineCommandComment::Argument* native, bool ownNativeInstance); Argument(struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native, bool ownNativeInstance);
static Argument^ __CreateInstance(::System::IntPtr native); static Argument^ __CreateInstance(::System::IntPtr native);
static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Argument(); Argument();
@ -558,10 +558,10 @@ namespace CppSharp
~Argument(); ~Argument();
property System::String^ Text property ::System::String^ Text
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
protected: protected:
@ -569,8 +569,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
InlineCommandComment(::CppSharp::CppParser::AST::InlineCommandComment* native); InlineCommandComment(struct ::CppSharp::CppParser::AST::InlineCommandComment* native);
InlineCommandComment(::CppSharp::CppParser::AST::InlineCommandComment* native, bool ownNativeInstance); InlineCommandComment(struct ::CppSharp::CppParser::AST::InlineCommandComment* native, bool ownNativeInstance);
static InlineCommandComment^ __CreateInstance(::System::IntPtr native); static InlineCommandComment^ __CreateInstance(::System::IntPtr native);
static InlineCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static InlineCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InlineCommandComment(); InlineCommandComment();
@ -591,10 +591,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::InlineCommandComment::RenderKind); void set(CppSharp::Parser::AST::InlineCommandComment::RenderKind);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ Arguments property ::System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ Arguments
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^);
} }
property unsigned int ArgumentsCount property unsigned int ArgumentsCount
@ -613,8 +613,8 @@ namespace CppSharp
{ {
public: public:
HTMLTagComment(::CppSharp::CppParser::AST::HTMLTagComment* native); HTMLTagComment(struct ::CppSharp::CppParser::AST::HTMLTagComment* native);
HTMLTagComment(::CppSharp::CppParser::AST::HTMLTagComment* native, bool ownNativeInstance); HTMLTagComment(struct ::CppSharp::CppParser::AST::HTMLTagComment* native, bool ownNativeInstance);
static HTMLTagComment^ __CreateInstance(::System::IntPtr native); static HTMLTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static HTMLTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLTagComment(); HTMLTagComment();
@ -636,15 +636,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr; property struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native); Attribute(struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native);
Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native, bool ownNativeInstance); Attribute(struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native, bool ownNativeInstance);
static Attribute^ __CreateInstance(::System::IntPtr native); static Attribute^ __CreateInstance(::System::IntPtr native);
static Attribute^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Attribute^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Attribute(); Attribute();
@ -653,16 +653,16 @@ namespace CppSharp
~Attribute(); ~Attribute();
property System::String^ Name property ::System::String^ Name
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property System::String^ Value property ::System::String^ Value
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
protected: protected:
@ -670,8 +670,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
HTMLStartTagComment(::CppSharp::CppParser::AST::HTMLStartTagComment* native); HTMLStartTagComment(struct ::CppSharp::CppParser::AST::HTMLStartTagComment* native);
HTMLStartTagComment(::CppSharp::CppParser::AST::HTMLStartTagComment* native, bool ownNativeInstance); HTMLStartTagComment(struct ::CppSharp::CppParser::AST::HTMLStartTagComment* native, bool ownNativeInstance);
static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native); static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLStartTagComment(); HTMLStartTagComment();
@ -680,16 +680,16 @@ namespace CppSharp
~HTMLStartTagComment(); ~HTMLStartTagComment();
property System::String^ TagName property ::System::String^ TagName
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ Attributes property ::System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ Attributes
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^);
} }
property unsigned int AttributesCount property unsigned int AttributesCount
@ -708,8 +708,8 @@ namespace CppSharp
{ {
public: public:
HTMLEndTagComment(::CppSharp::CppParser::AST::HTMLEndTagComment* native); HTMLEndTagComment(struct ::CppSharp::CppParser::AST::HTMLEndTagComment* native);
HTMLEndTagComment(::CppSharp::CppParser::AST::HTMLEndTagComment* native, bool ownNativeInstance); HTMLEndTagComment(struct ::CppSharp::CppParser::AST::HTMLEndTagComment* native, bool ownNativeInstance);
static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native); static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLEndTagComment(); HTMLEndTagComment();
@ -718,10 +718,10 @@ namespace CppSharp
~HTMLEndTagComment(); ~HTMLEndTagComment();
property System::String^ TagName property ::System::String^ TagName
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -729,8 +729,8 @@ namespace CppSharp
{ {
public: public:
TextComment(::CppSharp::CppParser::AST::TextComment* native); TextComment(struct ::CppSharp::CppParser::AST::TextComment* native);
TextComment(::CppSharp::CppParser::AST::TextComment* native, bool ownNativeInstance); TextComment(struct ::CppSharp::CppParser::AST::TextComment* native, bool ownNativeInstance);
static TextComment^ __CreateInstance(::System::IntPtr native); static TextComment^ __CreateInstance(::System::IntPtr native);
static TextComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TextComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TextComment(); TextComment();
@ -739,10 +739,10 @@ namespace CppSharp
~TextComment(); ~TextComment();
property System::String^ Text property ::System::String^ Text
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -750,15 +750,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::RawComment* NativePtr; property struct ::CppSharp::CppParser::AST::RawComment* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
RawComment(::CppSharp::CppParser::AST::RawComment* native); RawComment(struct ::CppSharp::CppParser::AST::RawComment* native);
RawComment(::CppSharp::CppParser::AST::RawComment* native, bool ownNativeInstance); RawComment(struct ::CppSharp::CppParser::AST::RawComment* native, bool ownNativeInstance);
static RawComment^ __CreateInstance(::System::IntPtr native); static RawComment^ __CreateInstance(::System::IntPtr native);
static RawComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static RawComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
RawComment(); RawComment();
@ -773,16 +773,16 @@ namespace CppSharp
void set(CppSharp::Parser::AST::RawCommentKind); void set(CppSharp::Parser::AST::RawCommentKind);
} }
property System::String^ Text property ::System::String^ Text
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property System::String^ BriefText property ::System::String^ BriefText
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property CppSharp::Parser::AST::FullComment^ FullCommentBlock property CppSharp::Parser::AST::FullComment^ FullCommentBlock

514
src/CppParser/Bindings/CLI/CppParser.cpp

File diff suppressed because it is too large Load Diff

194
src/CppParser/Bindings/CLI/CppParser.h

@ -64,15 +64,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::CppParserOptions* NativePtr; property struct ::CppSharp::CppParser::CppParserOptions* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
CppParserOptions(::CppSharp::CppParser::CppParserOptions* native); CppParserOptions(struct ::CppSharp::CppParser::CppParserOptions* native);
CppParserOptions(::CppSharp::CppParser::CppParserOptions* native, bool ownNativeInstance); CppParserOptions(struct ::CppSharp::CppParser::CppParserOptions* native, bool ownNativeInstance);
static CppParserOptions^ __CreateInstance(::System::IntPtr native); static CppParserOptions^ __CreateInstance(::System::IntPtr native);
static CppParserOptions^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CppParserOptions^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CppParserOptions(); CppParserOptions();
@ -81,46 +81,46 @@ namespace CppSharp
~CppParserOptions(); ~CppParserOptions();
property System::Collections::Generic::List<System::String^>^ Arguments property ::System::Collections::Generic::List<::System::String^>^ Arguments
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ SourceFiles property ::System::Collections::Generic::List<::System::String^>^ SourceFiles
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ IncludeDirs property ::System::Collections::Generic::List<::System::String^>^ IncludeDirs
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ SystemIncludeDirs property ::System::Collections::Generic::List<::System::String^>^ SystemIncludeDirs
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ Defines property ::System::Collections::Generic::List<::System::String^>^ Defines
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ Undefines property ::System::Collections::Generic::List<::System::String^>^ Undefines
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ SupportedStdTypes property ::System::Collections::Generic::List<::System::String^>^ SupportedStdTypes
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property CppSharp::Parser::AST::ASTContext^ ASTContext property CppSharp::Parser::AST::ASTContext^ ASTContext
@ -135,10 +135,10 @@ namespace CppSharp
void set(int); void set(int);
} }
property System::String^ TargetTriple property ::System::String^ TargetTriple
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property bool NoStandardIncludes property bool NoStandardIncludes
@ -189,9 +189,9 @@ namespace CppSharp
void set(bool); void set(bool);
} }
property System::String^ ClangVersion property ::System::String^ ClangVersion
{ {
System::String^ get(); ::System::String^ get();
} }
property unsigned int ArgumentsCount property unsigned int ArgumentsCount
@ -229,45 +229,45 @@ namespace CppSharp
unsigned int get(); unsigned int get();
} }
System::String^ GetArguments(unsigned int i); ::System::String^ GetArguments(unsigned int i);
void AddArguments(System::String^ s); void AddArguments(::System::String^ s);
void ClearArguments(); void ClearArguments();
System::String^ GetSourceFiles(unsigned int i); ::System::String^ GetSourceFiles(unsigned int i);
void AddSourceFiles(System::String^ s); void AddSourceFiles(::System::String^ s);
void ClearSourceFiles(); void ClearSourceFiles();
System::String^ GetIncludeDirs(unsigned int i); ::System::String^ GetIncludeDirs(unsigned int i);
void AddIncludeDirs(System::String^ s); void AddIncludeDirs(::System::String^ s);
void ClearIncludeDirs(); void ClearIncludeDirs();
System::String^ GetSystemIncludeDirs(unsigned int i); ::System::String^ GetSystemIncludeDirs(unsigned int i);
void AddSystemIncludeDirs(System::String^ s); void AddSystemIncludeDirs(::System::String^ s);
void ClearSystemIncludeDirs(); void ClearSystemIncludeDirs();
System::String^ GetDefines(unsigned int i); ::System::String^ GetDefines(unsigned int i);
void AddDefines(System::String^ s); void AddDefines(::System::String^ s);
void ClearDefines(); void ClearDefines();
System::String^ GetUndefines(unsigned int i); ::System::String^ GetUndefines(unsigned int i);
void AddUndefines(System::String^ s); void AddUndefines(::System::String^ s);
void ClearUndefines(); void ClearUndefines();
System::String^ GetSupportedStdTypes(unsigned int i); ::System::String^ GetSupportedStdTypes(unsigned int i);
void AddSupportedStdTypes(System::String^ s); void AddSupportedStdTypes(::System::String^ s);
void ClearSupportedStdTypes(); void ClearSupportedStdTypes();
@ -280,15 +280,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::LinkerOptions* NativePtr; property struct ::CppSharp::CppParser::LinkerOptions* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
LinkerOptions(::CppSharp::CppParser::LinkerOptions* native); LinkerOptions(struct ::CppSharp::CppParser::LinkerOptions* native);
LinkerOptions(::CppSharp::CppParser::LinkerOptions* native, bool ownNativeInstance); LinkerOptions(struct ::CppSharp::CppParser::LinkerOptions* native, bool ownNativeInstance);
static LinkerOptions^ __CreateInstance(::System::IntPtr native); static LinkerOptions^ __CreateInstance(::System::IntPtr native);
static LinkerOptions^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static LinkerOptions^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LinkerOptions(); LinkerOptions();
@ -297,22 +297,22 @@ namespace CppSharp
~LinkerOptions(); ~LinkerOptions();
property System::Collections::Generic::List<System::String^>^ Arguments property ::System::Collections::Generic::List<::System::String^>^ Arguments
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ LibraryDirs property ::System::Collections::Generic::List<::System::String^>^ LibraryDirs
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property System::Collections::Generic::List<System::String^>^ Libraries property ::System::Collections::Generic::List<::System::String^>^ Libraries
{ {
System::Collections::Generic::List<System::String^>^ get(); ::System::Collections::Generic::List<::System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^); void set(::System::Collections::Generic::List<::System::String^>^);
} }
property unsigned int ArgumentsCount property unsigned int ArgumentsCount
@ -330,21 +330,21 @@ namespace CppSharp
unsigned int get(); unsigned int get();
} }
System::String^ GetArguments(unsigned int i); ::System::String^ GetArguments(unsigned int i);
void AddArguments(System::String^ s); void AddArguments(::System::String^ s);
void ClearArguments(); void ClearArguments();
System::String^ GetLibraryDirs(unsigned int i); ::System::String^ GetLibraryDirs(unsigned int i);
void AddLibraryDirs(System::String^ s); void AddLibraryDirs(::System::String^ s);
void ClearLibraryDirs(); void ClearLibraryDirs();
System::String^ GetLibraries(unsigned int i); ::System::String^ GetLibraries(unsigned int i);
void AddLibraries(System::String^ s); void AddLibraries(::System::String^ s);
void ClearLibraries(); void ClearLibraries();
@ -357,15 +357,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::ParserDiagnostic* NativePtr; property struct ::CppSharp::CppParser::ParserDiagnostic* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
ParserDiagnostic(::CppSharp::CppParser::ParserDiagnostic* native); ParserDiagnostic(struct ::CppSharp::CppParser::ParserDiagnostic* native);
ParserDiagnostic(::CppSharp::CppParser::ParserDiagnostic* native, bool ownNativeInstance); ParserDiagnostic(struct ::CppSharp::CppParser::ParserDiagnostic* native, bool ownNativeInstance);
static ParserDiagnostic^ __CreateInstance(::System::IntPtr native); static ParserDiagnostic^ __CreateInstance(::System::IntPtr native);
static ParserDiagnostic^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ParserDiagnostic^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParserDiagnostic(); ParserDiagnostic();
@ -374,16 +374,16 @@ namespace CppSharp
~ParserDiagnostic(); ~ParserDiagnostic();
property System::String^ FileName property ::System::String^ FileName
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property System::String^ Message property ::System::String^ Message
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property CppSharp::Parser::ParserDiagnosticLevel Level property CppSharp::Parser::ParserDiagnosticLevel Level
@ -413,15 +413,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::ParserResult* NativePtr; property struct ::CppSharp::CppParser::ParserResult* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
ParserResult(::CppSharp::CppParser::ParserResult* native); ParserResult(struct ::CppSharp::CppParser::ParserResult* native);
ParserResult(::CppSharp::CppParser::ParserResult* native, bool ownNativeInstance); ParserResult(struct ::CppSharp::CppParser::ParserResult* native, bool ownNativeInstance);
static ParserResult^ __CreateInstance(::System::IntPtr native); static ParserResult^ __CreateInstance(::System::IntPtr native);
static ParserResult^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ParserResult^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParserResult(); ParserResult();
@ -436,16 +436,16 @@ namespace CppSharp
void set(CppSharp::Parser::ParserResultKind); void set(CppSharp::Parser::ParserResultKind);
} }
property System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ Diagnostics property ::System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ Diagnostics
{ {
System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ Libraries property ::System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ Libraries
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^);
} }
property CppSharp::Parser::ParserTargetInfo^ TargetInfo property CppSharp::Parser::ParserTargetInfo^ TargetInfo
@ -485,15 +485,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::ClangParser* NativePtr; property struct ::CppSharp::CppParser::ClangParser* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
ClangParser(::CppSharp::CppParser::ClangParser* native); ClangParser(struct ::CppSharp::CppParser::ClangParser* native);
ClangParser(::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance); ClangParser(struct ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance);
static ClangParser^ __CreateInstance(::System::IntPtr native); static ClangParser^ __CreateInstance(::System::IntPtr native);
static ClangParser^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ClangParser^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClangParser(); ClangParser();

2521
src/CppParser/Bindings/CLI/Decl.cpp

File diff suppressed because it is too large Load Diff

608
src/CppParser/Bindings/CLI/Decl.h

File diff suppressed because it is too large Load Diff

3643
src/CppParser/Bindings/CLI/Expr.cpp

File diff suppressed because it is too large Load Diff

550
src/CppParser/Bindings/CLI/Expr.h

File diff suppressed because it is too large Load Diff

42
src/CppParser/Bindings/CLI/Sources.cpp

@ -9,36 +9,36 @@
using namespace System; using namespace System;
using namespace System::Runtime::InteropServices; using namespace System::Runtime::InteropServices;
CppSharp::Parser::SourceLocation::SourceLocation(::CppSharp::CppParser::SourceLocation* native) CppSharp::Parser::SourceLocation::SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native)
{ {
__ID = native->ID; __ID = native->ID;
} }
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native) 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((struct ::CppSharp::CppParser::SourceLocation*) native.ToPointer());
} }
CppSharp::Parser::SourceLocation::SourceLocation(::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance) CppSharp::Parser::SourceLocation::SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance)
{ {
__ID = native->ID; __ID = native->ID;
} }
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance) CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{ {
return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer(), __ownsNativeInstance); return gcnew ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*) native.ToPointer(), __ownsNativeInstance);
} }
CppSharp::Parser::SourceLocation::SourceLocation(unsigned int ID) CppSharp::Parser::SourceLocation::SourceLocation(unsigned int ID)
{ {
::CppSharp::CppParser::SourceLocation _native(ID); struct ::CppSharp::CppParser::SourceLocation _native(ID);
this->ID = _native.ID; this->ID = _native.ID;
} }
CppSharp::Parser::SourceLocation::operator CppSharp::Parser::SourceLocation(unsigned int ID) CppSharp::Parser::SourceLocation::operator CppSharp::Parser::SourceLocation(unsigned int ID)
{ {
auto __ret = (::CppSharp::CppParser::SourceLocation) ID; auto __ret = (::CppSharp::CppParser::SourceLocation) ID;
return ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&__ret); return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&__ret);
} }
unsigned int CppSharp::Parser::SourceLocation::ID::get() unsigned int CppSharp::Parser::SourceLocation::ID::get()
@ -51,7 +51,7 @@ void CppSharp::Parser::SourceLocation::ID::set(unsigned int value)
__ID = value; __ID = value;
} }
CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* native) CppSharp::Parser::SourceRange::SourceRange(struct ::CppSharp::CppParser::SourceRange* native)
: __ownsNativeInstance(false) : __ownsNativeInstance(false)
{ {
NativePtr = native; NativePtr = native;
@ -59,10 +59,10 @@ CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* n
CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native) CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native)
{ {
return gcnew ::CppSharp::Parser::SourceRange((::CppSharp::CppParser::SourceRange*) native.ToPointer()); return gcnew ::CppSharp::Parser::SourceRange((struct ::CppSharp::CppParser::SourceRange*) native.ToPointer());
} }
CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance) CppSharp::Parser::SourceRange::SourceRange(struct ::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance)
: __ownsNativeInstance(ownNativeInstance) : __ownsNativeInstance(ownNativeInstance)
{ {
NativePtr = native; NativePtr = native;
@ -70,7 +70,7 @@ CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* n
CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance) CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{ {
return gcnew ::CppSharp::Parser::SourceRange((::CppSharp::CppParser::SourceRange*) native.ToPointer(), __ownsNativeInstance); return gcnew ::CppSharp::Parser::SourceRange((struct ::CppSharp::CppParser::SourceRange*) native.ToPointer(), __ownsNativeInstance);
} }
CppSharp::Parser::SourceRange::~SourceRange() CppSharp::Parser::SourceRange::~SourceRange()
@ -83,47 +83,47 @@ CppSharp::Parser::SourceRange::SourceRange(CppSharp::Parser::SourceRange^ _0)
__ownsNativeInstance = true; __ownsNativeInstance = true;
if (ReferenceEquals(_0, nullptr)) if (ReferenceEquals(_0, nullptr))
throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&).");
auto &__arg0 = *(::CppSharp::CppParser::SourceRange*)_0->NativePtr; auto &__arg0 = *(struct ::CppSharp::CppParser::SourceRange*)_0->NativePtr;
NativePtr = new ::CppSharp::CppParser::SourceRange(__arg0); NativePtr = new struct ::CppSharp::CppParser::SourceRange(__arg0);
} }
CppSharp::Parser::SourceRange::SourceRange() CppSharp::Parser::SourceRange::SourceRange()
{ {
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativePtr = new ::CppSharp::CppParser::SourceRange(); NativePtr = new struct ::CppSharp::CppParser::SourceRange();
} }
System::IntPtr CppSharp::Parser::SourceRange::__Instance::get() ::System::IntPtr CppSharp::Parser::SourceRange::__Instance::get()
{ {
return System::IntPtr(NativePtr); return ::System::IntPtr(NativePtr);
} }
void CppSharp::Parser::SourceRange::__Instance::set(System::IntPtr object) void CppSharp::Parser::SourceRange::__Instance::set(::System::IntPtr object)
{ {
NativePtr = (::CppSharp::CppParser::SourceRange*)object.ToPointer(); NativePtr = (struct ::CppSharp::CppParser::SourceRange*)object.ToPointer();
} }
CppSharp::Parser::SourceLocation CppSharp::Parser::SourceRange::BeginLoc::get() CppSharp::Parser::SourceLocation CppSharp::Parser::SourceRange::BeginLoc::get()
{ {
return ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::SourceRange*)NativePtr)->beginLoc); return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&NativePtr->beginLoc);
} }
void CppSharp::Parser::SourceRange::BeginLoc::set(CppSharp::Parser::SourceLocation value) void CppSharp::Parser::SourceRange::BeginLoc::set(CppSharp::Parser::SourceLocation value)
{ {
auto _marshal0 = ::CppSharp::CppParser::SourceLocation(); auto _marshal0 = ::CppSharp::CppParser::SourceLocation();
_marshal0.ID = value.ID; _marshal0.ID = value.ID;
((::CppSharp::CppParser::SourceRange*)NativePtr)->beginLoc = _marshal0; ((struct ::CppSharp::CppParser::SourceRange*)NativePtr)->beginLoc = _marshal0;
} }
CppSharp::Parser::SourceLocation CppSharp::Parser::SourceRange::EndLoc::get() CppSharp::Parser::SourceLocation CppSharp::Parser::SourceRange::EndLoc::get()
{ {
return ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::SourceRange*)NativePtr)->endLoc); return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&NativePtr->endLoc);
} }
void CppSharp::Parser::SourceRange::EndLoc::set(CppSharp::Parser::SourceLocation value) void CppSharp::Parser::SourceRange::EndLoc::set(CppSharp::Parser::SourceLocation value)
{ {
auto _marshal0 = ::CppSharp::CppParser::SourceLocation(); auto _marshal0 = ::CppSharp::CppParser::SourceLocation();
_marshal0.ID = value.ID; _marshal0.ID = value.ID;
((::CppSharp::CppParser::SourceRange*)NativePtr)->endLoc = _marshal0; ((struct ::CppSharp::CppParser::SourceRange*)NativePtr)->endLoc = _marshal0;
} }

16
src/CppParser/Bindings/CLI/Sources.h

@ -26,8 +26,8 @@ namespace CppSharp
{ {
public: public:
SourceLocation(::CppSharp::CppParser::SourceLocation* native); SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native);
SourceLocation(::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance); SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance);
static SourceLocation^ __CreateInstance(::System::IntPtr native); static SourceLocation^ __CreateInstance(::System::IntPtr native);
static SourceLocation^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SourceLocation^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SourceLocation(unsigned int ID); SourceLocation(unsigned int ID);
@ -49,15 +49,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::SourceRange* NativePtr; property struct ::CppSharp::CppParser::SourceRange* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
SourceRange(::CppSharp::CppParser::SourceRange* native); SourceRange(struct ::CppSharp::CppParser::SourceRange* native);
SourceRange(::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance); SourceRange(struct ::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance);
static SourceRange^ __CreateInstance(::System::IntPtr native); static SourceRange^ __CreateInstance(::System::IntPtr native);
static SourceRange^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SourceRange^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SourceRange(CppSharp::Parser::SourceRange^ _0); SourceRange(CppSharp::Parser::SourceRange^ _0);

1333
src/CppParser/Bindings/CLI/Stmt.cpp

File diff suppressed because it is too large Load Diff

224
src/CppParser/Bindings/CLI/Stmt.h

@ -198,15 +198,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::Stmt* NativePtr; property struct ::CppSharp::CppParser::AST::Stmt* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Stmt(::CppSharp::CppParser::AST::Stmt* native); Stmt(struct ::CppSharp::CppParser::AST::Stmt* native);
Stmt(::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance); Stmt(struct ::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance);
static Stmt^ __CreateInstance(::System::IntPtr native); static Stmt^ __CreateInstance(::System::IntPtr native);
static Stmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Stmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Stmt(); Stmt();
@ -252,8 +252,8 @@ namespace CppSharp
{ {
public: public:
DeclStmt(::CppSharp::CppParser::AST::DeclStmt* native); DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native);
DeclStmt(::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance); DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance);
static DeclStmt^ __CreateInstance(::System::IntPtr native); static DeclStmt^ __CreateInstance(::System::IntPtr native);
static DeclStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DeclStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DeclStmt(); DeclStmt();
@ -262,10 +262,10 @@ namespace CppSharp
~DeclStmt(); ~DeclStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ Decls property ::System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ Decls
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^);
} }
property bool IsSingleDecl property bool IsSingleDecl
@ -296,8 +296,8 @@ namespace CppSharp
{ {
public: public:
NullStmt(::CppSharp::CppParser::AST::NullStmt* native); NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native);
NullStmt(::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance); NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance);
static NullStmt^ __CreateInstance(::System::IntPtr native); static NullStmt^ __CreateInstance(::System::IntPtr native);
static NullStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static NullStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NullStmt(); NullStmt();
@ -323,8 +323,8 @@ namespace CppSharp
{ {
public: public:
CompoundStmt(::CppSharp::CppParser::AST::CompoundStmt* native); CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native);
CompoundStmt(::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance); CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance);
static CompoundStmt^ __CreateInstance(::System::IntPtr native); static CompoundStmt^ __CreateInstance(::System::IntPtr native);
static CompoundStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CompoundStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CompoundStmt(); CompoundStmt();
@ -333,10 +333,10 @@ namespace CppSharp
~CompoundStmt(); ~CompoundStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ Body property ::System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ Body
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^);
} }
property bool BodyEmpty property bool BodyEmpty
@ -391,8 +391,8 @@ namespace CppSharp
{ {
public: public:
SwitchCase(::CppSharp::CppParser::AST::SwitchCase* native); SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native);
SwitchCase(::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance); SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance);
static SwitchCase^ __CreateInstance(::System::IntPtr native); static SwitchCase^ __CreateInstance(::System::IntPtr native);
static SwitchCase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SwitchCase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchCase(); SwitchCase();
@ -428,8 +428,8 @@ namespace CppSharp
{ {
public: public:
CaseStmt(::CppSharp::CppParser::AST::CaseStmt* native); CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native);
CaseStmt(::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance); CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance);
static CaseStmt^ __CreateInstance(::System::IntPtr native); static CaseStmt^ __CreateInstance(::System::IntPtr native);
static CaseStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CaseStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CaseStmt(); CaseStmt();
@ -473,8 +473,8 @@ namespace CppSharp
{ {
public: public:
DefaultStmt(::CppSharp::CppParser::AST::DefaultStmt* native); DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native);
DefaultStmt(::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance); DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance);
static DefaultStmt^ __CreateInstance(::System::IntPtr native); static DefaultStmt^ __CreateInstance(::System::IntPtr native);
static DefaultStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DefaultStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DefaultStmt(); DefaultStmt();
@ -494,8 +494,8 @@ namespace CppSharp
{ {
public: public:
LabelStmt(::CppSharp::CppParser::AST::LabelStmt* native); LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native);
LabelStmt(::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance); LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance);
static LabelStmt^ __CreateInstance(::System::IntPtr native); static LabelStmt^ __CreateInstance(::System::IntPtr native);
static LabelStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static LabelStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LabelStmt(); LabelStmt();
@ -516,10 +516,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::Stmt^); void set(CppSharp::Parser::AST::Stmt^);
} }
property System::String^ Name property ::System::String^ Name
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -527,8 +527,8 @@ namespace CppSharp
{ {
public: public:
AttributedStmt(::CppSharp::CppParser::AST::AttributedStmt* native); AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native);
AttributedStmt(::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance); AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance);
static AttributedStmt^ __CreateInstance(::System::IntPtr native); static AttributedStmt^ __CreateInstance(::System::IntPtr native);
static AttributedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AttributedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedStmt(); AttributedStmt();
@ -554,8 +554,8 @@ namespace CppSharp
{ {
public: public:
IfStmt(::CppSharp::CppParser::AST::IfStmt* native); IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native);
IfStmt(::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance); IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance);
static IfStmt^ __CreateInstance(::System::IntPtr native); static IfStmt^ __CreateInstance(::System::IntPtr native);
static IfStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static IfStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IfStmt(); IfStmt();
@ -641,8 +641,8 @@ namespace CppSharp
{ {
public: public:
SwitchStmt(::CppSharp::CppParser::AST::SwitchStmt* native); SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native);
SwitchStmt(::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance); SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance);
static SwitchStmt^ __CreateInstance(::System::IntPtr native); static SwitchStmt^ __CreateInstance(::System::IntPtr native);
static SwitchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SwitchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchStmt(); SwitchStmt();
@ -704,8 +704,8 @@ namespace CppSharp
{ {
public: public:
WhileStmt(::CppSharp::CppParser::AST::WhileStmt* native); WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native);
WhileStmt(::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance); WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance);
static WhileStmt^ __CreateInstance(::System::IntPtr native); static WhileStmt^ __CreateInstance(::System::IntPtr native);
static WhileStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static WhileStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
WhileStmt(); WhileStmt();
@ -749,8 +749,8 @@ namespace CppSharp
{ {
public: public:
DoStmt(::CppSharp::CppParser::AST::DoStmt* native); DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native);
DoStmt(::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance); DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance);
static DoStmt^ __CreateInstance(::System::IntPtr native); static DoStmt^ __CreateInstance(::System::IntPtr native);
static DoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DoStmt(); DoStmt();
@ -794,8 +794,8 @@ namespace CppSharp
{ {
public: public:
ForStmt(::CppSharp::CppParser::AST::ForStmt* native); ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native);
ForStmt(::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance); ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance);
static ForStmt^ __CreateInstance(::System::IntPtr native); static ForStmt^ __CreateInstance(::System::IntPtr native);
static ForStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ForStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ForStmt(); ForStmt();
@ -857,8 +857,8 @@ namespace CppSharp
{ {
public: public:
GotoStmt(::CppSharp::CppParser::AST::GotoStmt* native); GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native);
GotoStmt(::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance); GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance);
static GotoStmt^ __CreateInstance(::System::IntPtr native); static GotoStmt^ __CreateInstance(::System::IntPtr native);
static GotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static GotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GotoStmt(); GotoStmt();
@ -884,8 +884,8 @@ namespace CppSharp
{ {
public: public:
IndirectGotoStmt(::CppSharp::CppParser::AST::IndirectGotoStmt* native); IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native);
IndirectGotoStmt(::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance); IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native); static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IndirectGotoStmt(); IndirectGotoStmt();
@ -917,8 +917,8 @@ namespace CppSharp
{ {
public: public:
ContinueStmt(::CppSharp::CppParser::AST::ContinueStmt* native); ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native);
ContinueStmt(::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance); ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance);
static ContinueStmt^ __CreateInstance(::System::IntPtr native); static ContinueStmt^ __CreateInstance(::System::IntPtr native);
static ContinueStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ContinueStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ContinueStmt(); ContinueStmt();
@ -938,8 +938,8 @@ namespace CppSharp
{ {
public: public:
BreakStmt(::CppSharp::CppParser::AST::BreakStmt* native); BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native);
BreakStmt(::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance); BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance);
static BreakStmt^ __CreateInstance(::System::IntPtr native); static BreakStmt^ __CreateInstance(::System::IntPtr native);
static BreakStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static BreakStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BreakStmt(); BreakStmt();
@ -959,8 +959,8 @@ namespace CppSharp
{ {
public: public:
ReturnStmt(::CppSharp::CppParser::AST::ReturnStmt* native); ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native);
ReturnStmt(::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance); ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance);
static ReturnStmt^ __CreateInstance(::System::IntPtr native); static ReturnStmt^ __CreateInstance(::System::IntPtr native);
static ReturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ReturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ReturnStmt(); ReturnStmt();
@ -986,8 +986,8 @@ namespace CppSharp
{ {
public: public:
AsmStmt(::CppSharp::CppParser::AST::AsmStmt* native); AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native);
AsmStmt(::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance); AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance);
static AsmStmt^ __CreateInstance(::System::IntPtr native); static AsmStmt^ __CreateInstance(::System::IntPtr native);
static AsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStmt(); AsmStmt();
@ -998,16 +998,16 @@ namespace CppSharp
~AsmStmt(); ~AsmStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Inputs property ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Inputs
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Outputs property ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Outputs
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
} }
property CppSharp::Parser::SourceLocation AsmLoc property CppSharp::Parser::SourceLocation AsmLoc
@ -1091,15 +1091,15 @@ namespace CppSharp
Operand = 1 Operand = 1
}; };
property ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr; property struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
AsmStringPiece(::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native); AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native);
AsmStringPiece(::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance); AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native); static AsmStringPiece^ __CreateInstance(::System::IntPtr native);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AsmStringPiece^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStringPiece(); AsmStringPiece();
@ -1120,10 +1120,10 @@ namespace CppSharp
void set(bool); void set(bool);
} }
property System::String^ String property ::System::String^ String
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property unsigned int OperandNo property unsigned int OperandNo
@ -1143,8 +1143,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
GCCAsmStmt(::CppSharp::CppParser::AST::GCCAsmStmt* native); GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native);
GCCAsmStmt(::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance); GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native); static GCCAsmStmt^ __CreateInstance(::System::IntPtr native);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static GCCAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GCCAsmStmt(); GCCAsmStmt();
@ -1164,8 +1164,8 @@ namespace CppSharp
{ {
public: public:
MSAsmStmt(::CppSharp::CppParser::AST::MSAsmStmt* native); MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native);
MSAsmStmt(::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance); MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native); static MSAsmStmt^ __CreateInstance(::System::IntPtr native);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MSAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSAsmStmt(); MSAsmStmt();
@ -1192,10 +1192,10 @@ namespace CppSharp
void set(unsigned int); void set(unsigned int);
} }
property System::String^ AsmString property ::System::String^ AsmString
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -1203,8 +1203,8 @@ namespace CppSharp
{ {
public: public:
SEHExceptStmt(::CppSharp::CppParser::AST::SEHExceptStmt* native); SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native);
SEHExceptStmt(::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance); SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native); static SEHExceptStmt^ __CreateInstance(::System::IntPtr native);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHExceptStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHExceptStmt(); SEHExceptStmt();
@ -1236,8 +1236,8 @@ namespace CppSharp
{ {
public: public:
SEHFinallyStmt(::CppSharp::CppParser::AST::SEHFinallyStmt* native); SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native);
SEHFinallyStmt(::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance); SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native); static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHFinallyStmt(); SEHFinallyStmt();
@ -1263,8 +1263,8 @@ namespace CppSharp
{ {
public: public:
SEHTryStmt(::CppSharp::CppParser::AST::SEHTryStmt* native); SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native);
SEHTryStmt(::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance); SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native); static SEHTryStmt^ __CreateInstance(::System::IntPtr native);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHTryStmt(); SEHTryStmt();
@ -1314,8 +1314,8 @@ namespace CppSharp
{ {
public: public:
SEHLeaveStmt(::CppSharp::CppParser::AST::SEHLeaveStmt* native); SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native);
SEHLeaveStmt(::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance); SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native); static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHLeaveStmt(); SEHLeaveStmt();
@ -1347,15 +1347,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr; property struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Capture(::CppSharp::CppParser::AST::CapturedStmt::Capture* native); Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native);
Capture(::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance); Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance);
static Capture^ __CreateInstance(::System::IntPtr native); static Capture^ __CreateInstance(::System::IntPtr native);
static Capture^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Capture^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Capture(); Capture();
@ -1405,8 +1405,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
CapturedStmt(::CppSharp::CppParser::AST::CapturedStmt* native); CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native);
CapturedStmt(::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance); CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance);
static CapturedStmt^ __CreateInstance(::System::IntPtr native); static CapturedStmt^ __CreateInstance(::System::IntPtr native);
static CapturedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CapturedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CapturedStmt(); CapturedStmt();
@ -1415,10 +1415,10 @@ namespace CppSharp
~CapturedStmt(); ~CapturedStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ CaptureInits property ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ CaptureInits
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
} }
property CppSharp::Parser::AST::Stmt^ capturedStmt property CppSharp::Parser::AST::Stmt^ capturedStmt
@ -1449,8 +1449,8 @@ namespace CppSharp
{ {
public: public:
CXXCatchStmt(::CppSharp::CppParser::AST::CXXCatchStmt* native); CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native);
CXXCatchStmt(::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance); CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native); static CXXCatchStmt^ __CreateInstance(::System::IntPtr native);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXCatchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXCatchStmt(); CXXCatchStmt();
@ -1482,8 +1482,8 @@ namespace CppSharp
{ {
public: public:
CXXTryStmt(::CppSharp::CppParser::AST::CXXTryStmt* native); CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native);
CXXTryStmt(::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance); CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native); static CXXTryStmt^ __CreateInstance(::System::IntPtr native);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXTryStmt(); CXXTryStmt();
@ -1515,8 +1515,8 @@ namespace CppSharp
{ {
public: public:
CXXForRangeStmt(::CppSharp::CppParser::AST::CXXForRangeStmt* native); CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native);
CXXForRangeStmt(::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance); CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native); static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXForRangeStmt(); CXXForRangeStmt();
@ -1608,8 +1608,8 @@ namespace CppSharp
{ {
public: public:
MSDependentExistsStmt(::CppSharp::CppParser::AST::MSDependentExistsStmt* native); MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native);
MSDependentExistsStmt(::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance); MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native); static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSDependentExistsStmt(); MSDependentExistsStmt();
@ -1668,15 +1668,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr; property struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
CtorArgs(::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native); CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native);
CtorArgs(::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance); CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance);
static CtorArgs^ __CreateInstance(::System::IntPtr native); static CtorArgs^ __CreateInstance(::System::IntPtr native);
static CtorArgs^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CtorArgs^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CtorArgs(); CtorArgs();
@ -1690,8 +1690,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
CoroutineBodyStmt(::CppSharp::CppParser::AST::CoroutineBodyStmt* native); CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native);
CoroutineBodyStmt(::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance); CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native); static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoroutineBodyStmt(); CoroutineBodyStmt();
@ -1790,8 +1790,8 @@ namespace CppSharp
Count = 2 Count = 2
}; };
CoreturnStmt(::CppSharp::CppParser::AST::CoreturnStmt* native); CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native);
CoreturnStmt(::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance); CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native); static CoreturnStmt^ __CreateInstance(::System::IntPtr native);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CoreturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoreturnStmt(); CoreturnStmt();

190
src/CppParser/Bindings/CLI/Target.cpp

@ -9,7 +9,7 @@
using namespace System; using namespace System;
using namespace System::Runtime::InteropServices; using namespace System::Runtime::InteropServices;
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native) CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native)
: __ownsNativeInstance(false) : __ownsNativeInstance(false)
{ {
NativePtr = native; NativePtr = native;
@ -17,10 +17,10 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native) 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((struct ::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer());
} }
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance) CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance)
: __ownsNativeInstance(ownNativeInstance) : __ownsNativeInstance(ownNativeInstance)
{ {
NativePtr = native; NativePtr = native;
@ -28,7 +28,7 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance) CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{ {
return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer(), __ownsNativeInstance); return gcnew ::CppSharp::Parser::ParserTargetInfo((struct ::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer(), __ownsNativeInstance);
} }
CppSharp::Parser::ParserTargetInfo::~ParserTargetInfo() CppSharp::Parser::ParserTargetInfo::~ParserTargetInfo()
@ -39,7 +39,7 @@ CppSharp::Parser::ParserTargetInfo::~ParserTargetInfo()
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo() CppSharp::Parser::ParserTargetInfo::ParserTargetInfo()
{ {
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativePtr = new ::CppSharp::CppParser::ParserTargetInfo(); NativePtr = new struct ::CppSharp::CppParser::ParserTargetInfo();
} }
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(CppSharp::Parser::ParserTargetInfo^ _0) CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(CppSharp::Parser::ParserTargetInfo^ _0)
@ -47,427 +47,427 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(CppSharp::Parser::ParserTar
__ownsNativeInstance = true; __ownsNativeInstance = true;
if (ReferenceEquals(_0, nullptr)) if (ReferenceEquals(_0, nullptr))
throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&).");
auto &__arg0 = *(::CppSharp::CppParser::ParserTargetInfo*)_0->NativePtr; auto &__arg0 = *(struct ::CppSharp::CppParser::ParserTargetInfo*)_0->NativePtr;
NativePtr = new ::CppSharp::CppParser::ParserTargetInfo(__arg0); NativePtr = new struct ::CppSharp::CppParser::ParserTargetInfo(__arg0);
} }
System::IntPtr CppSharp::Parser::ParserTargetInfo::__Instance::get() ::System::IntPtr CppSharp::Parser::ParserTargetInfo::__Instance::get()
{ {
return System::IntPtr(NativePtr); return ::System::IntPtr(NativePtr);
} }
void CppSharp::Parser::ParserTargetInfo::__Instance::set(System::IntPtr object) void CppSharp::Parser::ParserTargetInfo::__Instance::set(::System::IntPtr object)
{ {
NativePtr = (::CppSharp::CppParser::ParserTargetInfo*)object.ToPointer(); NativePtr = (struct ::CppSharp::CppParser::ParserTargetInfo*)object.ToPointer();
} }
System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get() ::System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get()
{ {
return clix::marshalString<clix::E_UTF8>(((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ABI); return clix::marshalString<clix::E_UTF8>(NativePtr->ABI);
} }
void CppSharp::Parser::ParserTargetInfo::ABI::set(System::String^ value) void CppSharp::Parser::ParserTargetInfo::ABI::set(::System::String^ value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ABI = clix::marshalString<clix::E_UTF8>(value); ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ABI = clix::marshalString<clix::E_UTF8>(value);
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char16Type::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char16Type::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type; return (CppSharp::Parser::ParserIntType)NativePtr->char16Type;
} }
void CppSharp::Parser::ParserTargetInfo::Char16Type::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::Char16Type::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char32Type::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char32Type::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type; return (CppSharp::Parser::ParserIntType)NativePtr->char32Type;
} }
void CppSharp::Parser::ParserTargetInfo::Char32Type::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::Char32Type::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Int64Type::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Int64Type::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type; return (CppSharp::Parser::ParserIntType)NativePtr->int64Type;
} }
void CppSharp::Parser::ParserTargetInfo::Int64Type::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::Int64Type::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntMaxType::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntMaxType::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType; return (CppSharp::Parser::ParserIntType)NativePtr->intMaxType;
} }
void CppSharp::Parser::ParserTargetInfo::IntMaxType::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::IntMaxType::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntPtrType::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntPtrType::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType; return (CppSharp::Parser::ParserIntType)NativePtr->intPtrType;
} }
void CppSharp::Parser::ParserTargetInfo::IntPtrType::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::IntPtrType::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::SizeType::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::SizeType::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType; return (CppSharp::Parser::ParserIntType)NativePtr->sizeType;
} }
void CppSharp::Parser::ParserTargetInfo::SizeType::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::SizeType::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::UIntMaxType::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::UIntMaxType::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType; return (CppSharp::Parser::ParserIntType)NativePtr->uIntMaxType;
} }
void CppSharp::Parser::ParserTargetInfo::UIntMaxType::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::UIntMaxType::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WCharType::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WCharType::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType; return (CppSharp::Parser::ParserIntType)NativePtr->wCharType;
} }
void CppSharp::Parser::ParserTargetInfo::WCharType::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::WCharType::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WIntType::get() CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WIntType::get()
{ {
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType; return (CppSharp::Parser::ParserIntType)NativePtr->wIntType;
} }
void CppSharp::Parser::ParserTargetInfo::WIntType::set(CppSharp::Parser::ParserIntType value) void CppSharp::Parser::ParserTargetInfo::WIntType::set(CppSharp::Parser::ParserIntType value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType = (::CppSharp::CppParser::ParserIntType)value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType = (enum ::CppSharp::CppParser::ParserIntType)value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::BoolAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::BoolAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign; return NativePtr->boolAlign;
} }
void CppSharp::Parser::ParserTargetInfo::BoolAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::BoolAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::BoolWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::BoolWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth; return NativePtr->boolWidth;
} }
void CppSharp::Parser::ParserTargetInfo::BoolWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::BoolWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::CharAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::CharAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign; return NativePtr->charAlign;
} }
void CppSharp::Parser::ParserTargetInfo::CharAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::CharAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::CharWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::CharWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth; return NativePtr->charWidth;
} }
void CppSharp::Parser::ParserTargetInfo::CharWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::CharWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::Char16Align::get() unsigned int CppSharp::Parser::ParserTargetInfo::Char16Align::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align; return NativePtr->char16Align;
} }
void CppSharp::Parser::ParserTargetInfo::Char16Align::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::Char16Align::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::Char16Width::get() unsigned int CppSharp::Parser::ParserTargetInfo::Char16Width::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width; return NativePtr->char16Width;
} }
void CppSharp::Parser::ParserTargetInfo::Char16Width::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::Char16Width::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::Char32Align::get() unsigned int CppSharp::Parser::ParserTargetInfo::Char32Align::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align; return NativePtr->char32Align;
} }
void CppSharp::Parser::ParserTargetInfo::Char32Align::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::Char32Align::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::Char32Width::get() unsigned int CppSharp::Parser::ParserTargetInfo::Char32Width::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width; return NativePtr->char32Width;
} }
void CppSharp::Parser::ParserTargetInfo::Char32Width::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::Char32Width::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::HalfAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::HalfAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign; return NativePtr->halfAlign;
} }
void CppSharp::Parser::ParserTargetInfo::HalfAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::HalfAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::HalfWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::HalfWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth; return NativePtr->halfWidth;
} }
void CppSharp::Parser::ParserTargetInfo::HalfWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::HalfWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::FloatAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::FloatAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign; return NativePtr->floatAlign;
} }
void CppSharp::Parser::ParserTargetInfo::FloatAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::FloatAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::FloatWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::FloatWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth; return NativePtr->floatWidth;
} }
void CppSharp::Parser::ParserTargetInfo::FloatWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::FloatWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::DoubleAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::DoubleAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign; return NativePtr->doubleAlign;
} }
void CppSharp::Parser::ParserTargetInfo::DoubleAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::DoubleAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::DoubleWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::DoubleWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth; return NativePtr->doubleWidth;
} }
void CppSharp::Parser::ParserTargetInfo::DoubleWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::DoubleWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::ShortAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::ShortAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign; return NativePtr->shortAlign;
} }
void CppSharp::Parser::ParserTargetInfo::ShortAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::ShortAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::ShortWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::ShortWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth; return NativePtr->shortWidth;
} }
void CppSharp::Parser::ParserTargetInfo::ShortWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::ShortWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::IntAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::IntAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign; return NativePtr->intAlign;
} }
void CppSharp::Parser::ParserTargetInfo::IntAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::IntAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::IntWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::IntWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth; return NativePtr->intWidth;
} }
void CppSharp::Parser::ParserTargetInfo::IntWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::IntWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth; return NativePtr->intMaxTWidth;
} }
void CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::LongAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::LongAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign; return NativePtr->longAlign;
} }
void CppSharp::Parser::ParserTargetInfo::LongAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::LongAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::LongWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::LongWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth; return NativePtr->longWidth;
} }
void CppSharp::Parser::ParserTargetInfo::LongWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::LongWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign; return NativePtr->longDoubleAlign;
} }
void CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth; return NativePtr->longDoubleWidth;
} }
void CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::LongLongAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::LongLongAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign; return NativePtr->longLongAlign;
} }
void CppSharp::Parser::ParserTargetInfo::LongLongAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::LongLongAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::LongLongWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::LongLongWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth; return NativePtr->longLongWidth;
} }
void CppSharp::Parser::ParserTargetInfo::LongLongWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::LongLongWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::PointerAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::PointerAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign; return NativePtr->pointerAlign;
} }
void CppSharp::Parser::ParserTargetInfo::PointerAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::PointerAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::PointerWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::PointerWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth; return NativePtr->pointerWidth;
} }
void CppSharp::Parser::ParserTargetInfo::PointerWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::PointerWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::WCharAlign::get() unsigned int CppSharp::Parser::ParserTargetInfo::WCharAlign::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign; return NativePtr->wCharAlign;
} }
void CppSharp::Parser::ParserTargetInfo::WCharAlign::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::WCharAlign::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::WCharWidth::get() unsigned int CppSharp::Parser::ParserTargetInfo::WCharWidth::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth; return NativePtr->wCharWidth;
} }
void CppSharp::Parser::ParserTargetInfo::WCharWidth::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::WCharWidth::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::Float128Align::get() unsigned int CppSharp::Parser::ParserTargetInfo::Float128Align::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Align; return NativePtr->float128Align;
} }
void CppSharp::Parser::ParserTargetInfo::Float128Align::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::Float128Align::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Align = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Align = value;
} }
unsigned int CppSharp::Parser::ParserTargetInfo::Float128Width::get() unsigned int CppSharp::Parser::ParserTargetInfo::Float128Width::get()
{ {
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Width; return NativePtr->float128Width;
} }
void CppSharp::Parser::ParserTargetInfo::Float128Width::set(unsigned int value) void CppSharp::Parser::ParserTargetInfo::Float128Width::set(unsigned int value)
{ {
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Width = value; ((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Width = value;
} }

18
src/CppParser/Bindings/CLI/Target.h

@ -41,15 +41,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::ParserTargetInfo* NativePtr; property struct ::CppSharp::CppParser::ParserTargetInfo* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native); ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native);
ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance); ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance);
static ParserTargetInfo^ __CreateInstance(::System::IntPtr native); static ParserTargetInfo^ __CreateInstance(::System::IntPtr native);
static ParserTargetInfo^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ParserTargetInfo^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParserTargetInfo(); ParserTargetInfo();
@ -58,10 +58,10 @@ namespace CppSharp
~ParserTargetInfo(); ~ParserTargetInfo();
property System::String^ ABI property ::System::String^ ABI
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
property CppSharp::Parser::ParserIntType Char16Type property CppSharp::Parser::ParserIntType Char16Type

653
src/CppParser/Bindings/CLI/Types.cpp

File diff suppressed because it is too large Load Diff

148
src/CppParser/Bindings/CLI/Types.h

@ -140,15 +140,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::Type* NativePtr; property struct ::CppSharp::CppParser::AST::Type* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Type(::CppSharp::CppParser::AST::Type* native); Type(struct ::CppSharp::CppParser::AST::Type* native);
Type(::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance); Type(struct ::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance);
static Type^ __CreateInstance(::System::IntPtr native); static Type^ __CreateInstance(::System::IntPtr native);
static Type^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Type^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Type(CppSharp::Parser::AST::TypeKind kind); Type(CppSharp::Parser::AST::TypeKind kind);
@ -180,15 +180,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::TypeQualifiers* NativePtr; property struct ::CppSharp::CppParser::AST::TypeQualifiers* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
TypeQualifiers(::CppSharp::CppParser::AST::TypeQualifiers* native); TypeQualifiers(struct ::CppSharp::CppParser::AST::TypeQualifiers* native);
TypeQualifiers(::CppSharp::CppParser::AST::TypeQualifiers* native, bool ownNativeInstance); TypeQualifiers(struct ::CppSharp::CppParser::AST::TypeQualifiers* native, bool ownNativeInstance);
static TypeQualifiers^ __CreateInstance(::System::IntPtr native); static TypeQualifiers^ __CreateInstance(::System::IntPtr native);
static TypeQualifiers^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypeQualifiers^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeQualifiers(CppSharp::Parser::AST::TypeQualifiers^ _0); TypeQualifiers(CppSharp::Parser::AST::TypeQualifiers^ _0);
@ -224,15 +224,15 @@ namespace CppSharp
{ {
public: public:
property ::CppSharp::CppParser::AST::QualifiedType* NativePtr; property struct ::CppSharp::CppParser::AST::QualifiedType* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
QualifiedType(::CppSharp::CppParser::AST::QualifiedType* native); QualifiedType(struct ::CppSharp::CppParser::AST::QualifiedType* native);
QualifiedType(::CppSharp::CppParser::AST::QualifiedType* native, bool ownNativeInstance); QualifiedType(struct ::CppSharp::CppParser::AST::QualifiedType* native, bool ownNativeInstance);
static QualifiedType^ __CreateInstance(::System::IntPtr native); static QualifiedType^ __CreateInstance(::System::IntPtr native);
static QualifiedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static QualifiedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
QualifiedType(); QualifiedType();
@ -262,8 +262,8 @@ namespace CppSharp
{ {
public: public:
TagType(::CppSharp::CppParser::AST::TagType* native); TagType(struct ::CppSharp::CppParser::AST::TagType* native);
TagType(::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance); TagType(struct ::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance);
static TagType^ __CreateInstance(::System::IntPtr native); static TagType^ __CreateInstance(::System::IntPtr native);
static TagType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TagType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TagType(); TagType();
@ -291,8 +291,8 @@ namespace CppSharp
Incomplete = 3 Incomplete = 3
}; };
ArrayType(::CppSharp::CppParser::AST::ArrayType* native); ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native);
ArrayType(::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance); ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance);
static ArrayType^ __CreateInstance(::System::IntPtr native); static ArrayType^ __CreateInstance(::System::IntPtr native);
static ArrayType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ArrayType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ArrayType(); ArrayType();
@ -330,8 +330,8 @@ namespace CppSharp
{ {
public: public:
FunctionType(::CppSharp::CppParser::AST::FunctionType* native); FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native);
FunctionType(::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance); FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance);
static FunctionType^ __CreateInstance(::System::IntPtr native); static FunctionType^ __CreateInstance(::System::IntPtr native);
static FunctionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static FunctionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionType(); FunctionType();
@ -358,10 +358,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::ExceptionSpecType); void set(CppSharp::Parser::AST::ExceptionSpecType);
} }
property System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ Parameters property ::System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ Parameters
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^);
} }
property unsigned int ParametersCount property unsigned int ParametersCount
@ -388,8 +388,8 @@ namespace CppSharp
RVReference = 3 RVReference = 3
}; };
PointerType(::CppSharp::CppParser::AST::PointerType* native); PointerType(struct ::CppSharp::CppParser::AST::PointerType* native);
PointerType(::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance); PointerType(struct ::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance);
static PointerType^ __CreateInstance(::System::IntPtr native); static PointerType^ __CreateInstance(::System::IntPtr native);
static PointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static PointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PointerType(); PointerType();
@ -415,8 +415,8 @@ namespace CppSharp
{ {
public: public:
MemberPointerType(::CppSharp::CppParser::AST::MemberPointerType* native); MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native);
MemberPointerType(::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance); MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance);
static MemberPointerType^ __CreateInstance(::System::IntPtr native); static MemberPointerType^ __CreateInstance(::System::IntPtr native);
static MemberPointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MemberPointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MemberPointerType(); MemberPointerType();
@ -436,8 +436,8 @@ namespace CppSharp
{ {
public: public:
TypedefType(::CppSharp::CppParser::AST::TypedefType* native); TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native);
TypedefType(::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance); TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance);
static TypedefType^ __CreateInstance(::System::IntPtr native); static TypedefType^ __CreateInstance(::System::IntPtr native);
static TypedefType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypedefType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefType(); TypedefType();
@ -457,8 +457,8 @@ namespace CppSharp
{ {
public: public:
AttributedType(::CppSharp::CppParser::AST::AttributedType* native); AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native);
AttributedType(::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance); AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance);
static AttributedType^ __CreateInstance(::System::IntPtr native); static AttributedType^ __CreateInstance(::System::IntPtr native);
static AttributedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AttributedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedType(); AttributedType();
@ -484,8 +484,8 @@ namespace CppSharp
{ {
public: public:
DecayedType(::CppSharp::CppParser::AST::DecayedType* native); DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native);
DecayedType(::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance); DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance);
static DecayedType^ __CreateInstance(::System::IntPtr native); static DecayedType^ __CreateInstance(::System::IntPtr native);
static DecayedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DecayedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DecayedType(); DecayedType();
@ -529,15 +529,15 @@ namespace CppSharp
Pack = 7 Pack = 7
}; };
property ::CppSharp::CppParser::AST::TemplateArgument* NativePtr; property struct ::CppSharp::CppParser::AST::TemplateArgument* NativePtr;
property System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
TemplateArgument(::CppSharp::CppParser::AST::TemplateArgument* native); TemplateArgument(struct ::CppSharp::CppParser::AST::TemplateArgument* native);
TemplateArgument(::CppSharp::CppParser::AST::TemplateArgument* native, bool ownNativeInstance); TemplateArgument(struct ::CppSharp::CppParser::AST::TemplateArgument* native, bool ownNativeInstance);
static TemplateArgument^ __CreateInstance(::System::IntPtr native); static TemplateArgument^ __CreateInstance(::System::IntPtr native);
static TemplateArgument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateArgument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateArgument(); TemplateArgument();
@ -579,8 +579,8 @@ namespace CppSharp
{ {
public: public:
TemplateSpecializationType(::CppSharp::CppParser::AST::TemplateSpecializationType* native); TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native);
TemplateSpecializationType(::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance); TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native); static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateSpecializationType(); TemplateSpecializationType();
@ -589,10 +589,10 @@ namespace CppSharp
~TemplateSpecializationType(); ~TemplateSpecializationType();
property System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments property ::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^);
} }
property CppSharp::Parser::AST::Template^ Template property CppSharp::Parser::AST::Template^ Template
@ -623,8 +623,8 @@ namespace CppSharp
{ {
public: public:
DependentTemplateSpecializationType(::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native); DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native);
DependentTemplateSpecializationType(::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance); DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native); static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentTemplateSpecializationType(); DependentTemplateSpecializationType();
@ -633,10 +633,10 @@ namespace CppSharp
~DependentTemplateSpecializationType(); ~DependentTemplateSpecializationType();
property System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments property ::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments
{ {
System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get(); ::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^); void set(::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^);
} }
property CppSharp::Parser::AST::QualifiedType^ Desugared property CppSharp::Parser::AST::QualifiedType^ Desugared
@ -661,8 +661,8 @@ namespace CppSharp
{ {
public: public:
TemplateParameterType(::CppSharp::CppParser::AST::TemplateParameterType* native); TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native);
TemplateParameterType(::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance); TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native); static TemplateParameterType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateParameterType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterType(); TemplateParameterType();
@ -700,8 +700,8 @@ namespace CppSharp
{ {
public: public:
TemplateParameterSubstitutionType(::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native); TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native);
TemplateParameterSubstitutionType(::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance); TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native); static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterSubstitutionType(); TemplateParameterSubstitutionType();
@ -727,8 +727,8 @@ namespace CppSharp
{ {
public: public:
InjectedClassNameType(::CppSharp::CppParser::AST::InjectedClassNameType* native); InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native);
InjectedClassNameType(::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance); InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native); static InjectedClassNameType^ __CreateInstance(::System::IntPtr native);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static InjectedClassNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InjectedClassNameType(); InjectedClassNameType();
@ -754,8 +754,8 @@ namespace CppSharp
{ {
public: public:
DependentNameType(::CppSharp::CppParser::AST::DependentNameType* native); DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native);
DependentNameType(::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance); DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance);
static DependentNameType^ __CreateInstance(::System::IntPtr native); static DependentNameType^ __CreateInstance(::System::IntPtr native);
static DependentNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DependentNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentNameType(); DependentNameType();
@ -770,10 +770,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::QualifiedType^); void set(CppSharp::Parser::AST::QualifiedType^);
} }
property System::String^ Identifier property ::System::String^ Identifier
{ {
System::String^ get(); ::System::String^ get();
void set(System::String^); void set(::System::String^);
} }
}; };
@ -781,8 +781,8 @@ namespace CppSharp
{ {
public: public:
PackExpansionType(::CppSharp::CppParser::AST::PackExpansionType* native); PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native);
PackExpansionType(::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance); PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance);
static PackExpansionType^ __CreateInstance(::System::IntPtr native); static PackExpansionType^ __CreateInstance(::System::IntPtr native);
static PackExpansionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static PackExpansionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PackExpansionType(); PackExpansionType();
@ -796,8 +796,8 @@ namespace CppSharp
{ {
public: public:
UnaryTransformType(::CppSharp::CppParser::AST::UnaryTransformType* native); UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native);
UnaryTransformType(::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance); UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native); static UnaryTransformType^ __CreateInstance(::System::IntPtr native);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static UnaryTransformType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnaryTransformType(); UnaryTransformType();
@ -823,8 +823,8 @@ namespace CppSharp
{ {
public: public:
UnresolvedUsingType(::CppSharp::CppParser::AST::UnresolvedUsingType* native); UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native);
UnresolvedUsingType(::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance); UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native); static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnresolvedUsingType(); UnresolvedUsingType();
@ -844,8 +844,8 @@ namespace CppSharp
{ {
public: public:
VectorType(::CppSharp::CppParser::AST::VectorType* native); VectorType(struct ::CppSharp::CppParser::AST::VectorType* native);
VectorType(::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance); VectorType(struct ::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance);
static VectorType^ __CreateInstance(::System::IntPtr native); static VectorType^ __CreateInstance(::System::IntPtr native);
static VectorType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VectorType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VectorType(); VectorType();
@ -871,8 +871,8 @@ namespace CppSharp
{ {
public: public:
BuiltinType(::CppSharp::CppParser::AST::BuiltinType* native); BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native);
BuiltinType(::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance); BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance);
static BuiltinType^ __CreateInstance(::System::IntPtr native); static BuiltinType^ __CreateInstance(::System::IntPtr native);
static BuiltinType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static BuiltinType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BuiltinType(); BuiltinType();

7
src/Generator/Types/Std/Stdlib.CLI.cs

@ -224,9 +224,10 @@ namespace CppSharp.Types.Std
"auto {0} = gcnew ::System::Collections::Generic::List<{1}>();", "auto {0} = gcnew ::System::Collections::Generic::List<{1}>();",
tmpVarName, managedType); tmpVarName, managedType);
string retVarName = ctx.ReturnType.Type.Desugar().IsPointer() ? $"*{ctx.ReturnVarName}" : ctx.ReturnVarName; string retVarName = "__list" + ctx.ParameterIndex;
ctx.Before.WriteLine("for(auto _element : {0})", ctx.Before.WriteLine($@"auto {retVarName} = {(
retVarName); ctx.ReturnType.Type.Desugar().IsPointer() ? $"*{ctx.ReturnVarName}" : ctx.ReturnVarName)};");
ctx.Before.WriteLine($"for(auto _element : {retVarName})");
ctx.Before.WriteOpenBraceAndIndent(); ctx.Before.WriteOpenBraceAndIndent();
{ {
var elementCtx = new MarshalContext(ctx.Context, ctx.Indentation) var elementCtx = new MarshalContext(ctx.Context, ctx.Indentation)

Loading…
Cancel
Save