mirror of https://github.com/mono/CppSharp.git
2 changed files with 2369 additions and 0 deletions
@ -0,0 +1,624 @@
@@ -0,0 +1,624 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This is autogenerated code by CppSharp.
|
||||
// Do not edit this file or all your changes will be lost after re-generation.
|
||||
// </auto-generated>
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace CppSharp.AST |
||||
{ |
||||
public enum StmtClass |
||||
{ |
||||
NoStmt = 0, |
||||
GCCAsmStmt = 1, |
||||
MSAsmStmt = 2, |
||||
AttributedStmt = 3, |
||||
BreakStmt = 4, |
||||
CXXCatchStmt = 5, |
||||
CXXForRangeStmt = 6, |
||||
CXXTryStmt = 7, |
||||
CapturedStmt = 8, |
||||
CompoundStmt = 9, |
||||
ContinueStmt = 10, |
||||
CoreturnStmt = 11, |
||||
CoroutineBodyStmt = 12, |
||||
DeclStmt = 13, |
||||
DoStmt = 14, |
||||
BinaryConditionalOperator = 15, |
||||
ConditionalOperator = 16, |
||||
AddrLabelExpr = 17, |
||||
ArrayInitIndexExpr = 18, |
||||
ArrayInitLoopExpr = 19, |
||||
ArraySubscriptExpr = 20, |
||||
ArrayTypeTraitExpr = 21, |
||||
AsTypeExpr = 22, |
||||
AtomicExpr = 23, |
||||
BinaryOperator = 24, |
||||
CompoundAssignOperator = 25, |
||||
BlockExpr = 26, |
||||
CXXBindTemporaryExpr = 27, |
||||
CXXBoolLiteralExpr = 28, |
||||
CXXConstructExpr = 29, |
||||
CXXTemporaryObjectExpr = 30, |
||||
CXXDefaultArgExpr = 31, |
||||
CXXDefaultInitExpr = 32, |
||||
CXXDeleteExpr = 33, |
||||
CXXDependentScopeMemberExpr = 34, |
||||
CXXFoldExpr = 35, |
||||
CXXInheritedCtorInitExpr = 36, |
||||
CXXNewExpr = 37, |
||||
CXXNoexceptExpr = 38, |
||||
CXXNullPtrLiteralExpr = 39, |
||||
CXXPseudoDestructorExpr = 40, |
||||
CXXScalarValueInitExpr = 41, |
||||
CXXStdInitializerListExpr = 42, |
||||
CXXThisExpr = 43, |
||||
CXXThrowExpr = 44, |
||||
CXXTypeidExpr = 45, |
||||
CXXUnresolvedConstructExpr = 46, |
||||
CXXUuidofExpr = 47, |
||||
CallExpr = 48, |
||||
CUDAKernelCallExpr = 49, |
||||
CXXMemberCallExpr = 50, |
||||
CXXOperatorCallExpr = 51, |
||||
UserDefinedLiteral = 52, |
||||
CStyleCastExpr = 53, |
||||
CXXFunctionalCastExpr = 54, |
||||
CXXConstCastExpr = 55, |
||||
CXXDynamicCastExpr = 56, |
||||
CXXReinterpretCastExpr = 57, |
||||
CXXStaticCastExpr = 58, |
||||
ImplicitCastExpr = 60, |
||||
CharacterLiteral = 61, |
||||
ChooseExpr = 62, |
||||
CompoundLiteralExpr = 63, |
||||
ConvertVectorExpr = 64, |
||||
CoawaitExpr = 65, |
||||
CoyieldExpr = 66, |
||||
DeclRefExpr = 67, |
||||
DependentCoawaitExpr = 68, |
||||
DependentScopeDeclRefExpr = 69, |
||||
DesignatedInitExpr = 70, |
||||
DesignatedInitUpdateExpr = 71, |
||||
ExpressionTraitExpr = 72, |
||||
ExtVectorElementExpr = 73, |
||||
FixedPointLiteral = 74, |
||||
FloatingLiteral = 75, |
||||
ConstantExpr = 76, |
||||
ExprWithCleanups = 77, |
||||
FunctionParmPackExpr = 78, |
||||
GNUNullExpr = 79, |
||||
GenericSelectionExpr = 80, |
||||
ImaginaryLiteral = 81, |
||||
ImplicitValueInitExpr = 82, |
||||
InitListExpr = 83, |
||||
IntegerLiteral = 84, |
||||
LambdaExpr = 85, |
||||
MSPropertyRefExpr = 86, |
||||
MSPropertySubscriptExpr = 87, |
||||
MaterializeTemporaryExpr = 88, |
||||
MemberExpr = 89, |
||||
NoInitExpr = 90, |
||||
OffsetOfExpr = 107, |
||||
OpaqueValueExpr = 108, |
||||
UnresolvedLookupExpr = 109, |
||||
UnresolvedMemberExpr = 110, |
||||
PackExpansionExpr = 111, |
||||
ParenExpr = 112, |
||||
ParenListExpr = 113, |
||||
PredefinedExpr = 114, |
||||
PseudoObjectExpr = 115, |
||||
ShuffleVectorExpr = 116, |
||||
SizeOfPackExpr = 117, |
||||
StmtExpr = 118, |
||||
StringLiteral = 119, |
||||
SubstNonTypeTemplateParmExpr = 120, |
||||
SubstNonTypeTemplateParmPackExpr = 121, |
||||
TypeTraitExpr = 122, |
||||
TypoExpr = 123, |
||||
UnaryExprOrTypeTraitExpr = 124, |
||||
UnaryOperator = 125, |
||||
VAArgExpr = 126, |
||||
ForStmt = 127, |
||||
GotoStmt = 128, |
||||
IfStmt = 129, |
||||
IndirectGotoStmt = 130, |
||||
LabelStmt = 131, |
||||
MSDependentExistsStmt = 132, |
||||
NullStmt = 133, |
||||
ReturnStmt = 188, |
||||
SEHExceptStmt = 189, |
||||
SEHFinallyStmt = 190, |
||||
SEHLeaveStmt = 191, |
||||
SEHTryStmt = 192, |
||||
CaseStmt = 193, |
||||
DefaultStmt = 194, |
||||
SwitchStmt = 195, |
||||
WhileStmt = 196, |
||||
} |
||||
|
||||
public partial class Stmt |
||||
{ |
||||
public Stmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceRange SourceRange; |
||||
public SourceLocation EndLoc; |
||||
} |
||||
|
||||
public partial class DeclStmt : Stmt |
||||
{ |
||||
public DeclStmt() |
||||
{ |
||||
} |
||||
|
||||
public List<Declaration> Decls = new List<Declaration>(); |
||||
public bool IsSingleDecl; |
||||
} |
||||
|
||||
public partial class NullStmt : Stmt |
||||
{ |
||||
public NullStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation SemiLoc; |
||||
public bool HasLeadingEmptyMacro; |
||||
} |
||||
|
||||
public partial class CompoundStmt : Stmt |
||||
{ |
||||
public CompoundStmt() |
||||
{ |
||||
} |
||||
|
||||
public List<Stmt> Body = new List<Stmt>(); |
||||
public bool BodyEmpty; |
||||
public uint Size; |
||||
public SourceLocation LBracLoc; |
||||
public SourceLocation RBracLoc; |
||||
} |
||||
|
||||
public partial class SwitchCase : Stmt |
||||
{ |
||||
public SwitchCase() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation KeywordLoc; |
||||
public SourceLocation ColonLoc; |
||||
} |
||||
|
||||
public partial class CaseStmt : SwitchCase |
||||
{ |
||||
public CaseStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation CaseLoc; |
||||
public SourceLocation EllipsisLoc; |
||||
public Expr LHS; |
||||
public Expr RHS; |
||||
public Stmt SubStmt; |
||||
public bool CaseStmtIsGNURange; |
||||
} |
||||
|
||||
public partial class DefaultStmt : SwitchCase |
||||
{ |
||||
public DefaultStmt() |
||||
{ |
||||
} |
||||
|
||||
public Stmt SubStmt; |
||||
public SourceLocation DefaultLoc; |
||||
} |
||||
|
||||
public partial class LabelStmt : Stmt |
||||
{ |
||||
public LabelStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation IdentLoc; |
||||
public Stmt SubStmt; |
||||
public string Name; |
||||
} |
||||
|
||||
public partial class AttributedStmt : Stmt |
||||
{ |
||||
public AttributedStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation AttrLoc; |
||||
} |
||||
|
||||
public partial class IfStmt : Stmt |
||||
{ |
||||
public IfStmt() |
||||
{ |
||||
} |
||||
|
||||
public Expr Cond; |
||||
public Stmt Then; |
||||
public Stmt Else; |
||||
public Stmt Init; |
||||
public SourceLocation IfLoc; |
||||
public SourceLocation ElseLoc; |
||||
public bool Constexpr; |
||||
public bool HasInitStorage; |
||||
public bool HasVarStorage; |
||||
public bool HasElseStorage; |
||||
public bool IsObjCAvailabilityCheck; |
||||
} |
||||
|
||||
public partial class SwitchStmt : Stmt |
||||
{ |
||||
public SwitchStmt() |
||||
{ |
||||
} |
||||
|
||||
public Expr Cond; |
||||
public Stmt Body; |
||||
public Stmt Init; |
||||
public SourceLocation SwitchLoc; |
||||
public bool HasInitStorage; |
||||
public bool HasVarStorage; |
||||
public bool IsAllEnumCasesCovered; |
||||
} |
||||
|
||||
public partial class WhileStmt : Stmt |
||||
{ |
||||
public WhileStmt() |
||||
{ |
||||
} |
||||
|
||||
public Expr Cond; |
||||
public Stmt Body; |
||||
public SourceLocation WhileLoc; |
||||
public bool HasVarStorage; |
||||
} |
||||
|
||||
public partial class DoStmt : Stmt |
||||
{ |
||||
public DoStmt() |
||||
{ |
||||
} |
||||
|
||||
public Expr Cond; |
||||
public Stmt Body; |
||||
public SourceLocation DoLoc; |
||||
public SourceLocation WhileLoc; |
||||
public SourceLocation RParenLoc; |
||||
} |
||||
|
||||
public partial class ForStmt : Stmt |
||||
{ |
||||
public ForStmt() |
||||
{ |
||||
} |
||||
|
||||
public Stmt Init; |
||||
public Expr Cond; |
||||
public Expr Inc; |
||||
public Stmt Body; |
||||
public SourceLocation ForLoc; |
||||
public SourceLocation LParenLoc; |
||||
public SourceLocation RParenLoc; |
||||
public DeclStmt ConditionVariableDeclStmt; |
||||
} |
||||
|
||||
public partial class GotoStmt : Stmt |
||||
{ |
||||
public GotoStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation GotoLoc; |
||||
public SourceLocation LabelLoc; |
||||
} |
||||
|
||||
public partial class IndirectGotoStmt : Stmt |
||||
{ |
||||
public IndirectGotoStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation GotoLoc; |
||||
public SourceLocation StarLoc; |
||||
public Expr Target; |
||||
} |
||||
|
||||
public partial class ContinueStmt : Stmt |
||||
{ |
||||
public ContinueStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation ContinueLoc; |
||||
} |
||||
|
||||
public partial class BreakStmt : Stmt |
||||
{ |
||||
public BreakStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation BreakLoc; |
||||
} |
||||
|
||||
public partial class ReturnStmt : Stmt |
||||
{ |
||||
public ReturnStmt() |
||||
{ |
||||
} |
||||
|
||||
public Expr RetValue; |
||||
public SourceLocation ReturnLoc; |
||||
} |
||||
|
||||
public partial class AsmStmt : Stmt |
||||
{ |
||||
public AsmStmt() |
||||
{ |
||||
} |
||||
|
||||
public List<Expr> Inputs = new List<Expr>(); |
||||
public List<Expr> Outputs = new List<Expr>(); |
||||
public SourceLocation AsmLoc; |
||||
public bool Simple; |
||||
public bool Volatile; |
||||
public uint NumOutputs; |
||||
public uint NumPlusOperands; |
||||
public uint NumInputs; |
||||
public uint NumClobbers; |
||||
} |
||||
|
||||
public partial class GCCAsmStmt : AsmStmt |
||||
{ |
||||
public partial class AsmStringPiece |
||||
{ |
||||
public enum Kind |
||||
{ |
||||
String = 0, |
||||
Operand = 1 |
||||
} |
||||
|
||||
public AsmStringPiece() |
||||
{ |
||||
} |
||||
|
||||
public bool IsString; |
||||
public bool IsOperand; |
||||
public string String; |
||||
public uint OperandNo; |
||||
public sbyte Modifier; |
||||
} |
||||
|
||||
public GCCAsmStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation RParenLoc; |
||||
} |
||||
|
||||
public partial class MSAsmStmt : AsmStmt |
||||
{ |
||||
public MSAsmStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation LBraceLoc; |
||||
public bool HasBraces; |
||||
public uint NumAsmToks; |
||||
public string AsmString; |
||||
} |
||||
|
||||
public partial class SEHExceptStmt : Stmt |
||||
{ |
||||
public SEHExceptStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation ExceptLoc; |
||||
public Expr FilterExpr; |
||||
public CompoundStmt Block; |
||||
} |
||||
|
||||
public partial class SEHFinallyStmt : Stmt |
||||
{ |
||||
public SEHFinallyStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation FinallyLoc; |
||||
public CompoundStmt Block; |
||||
} |
||||
|
||||
public partial class SEHTryStmt : Stmt |
||||
{ |
||||
public SEHTryStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation TryLoc; |
||||
public bool IsCXXTry; |
||||
public CompoundStmt TryBlock; |
||||
public Stmt Handler; |
||||
public SEHExceptStmt ExceptHandler; |
||||
public SEHFinallyStmt FinallyHandler; |
||||
} |
||||
|
||||
public partial class SEHLeaveStmt : Stmt |
||||
{ |
||||
public SEHLeaveStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation LeaveLoc; |
||||
} |
||||
|
||||
public partial class CapturedStmt : Stmt |
||||
{ |
||||
public enum VariableCaptureKind |
||||
{ |
||||
This = 0, |
||||
ByRef = 1, |
||||
ByCopy = 2, |
||||
VLAType = 3 |
||||
} |
||||
|
||||
public partial class Capture |
||||
{ |
||||
public Capture() |
||||
{ |
||||
} |
||||
|
||||
public CapturedStmt.VariableCaptureKind CaptureKind; |
||||
public SourceLocation Location; |
||||
public bool CapturesThis; |
||||
public bool CapturesVariable; |
||||
public bool CapturesVariableByCopy; |
||||
public bool CapturesVariableArrayType; |
||||
} |
||||
|
||||
public CapturedStmt() |
||||
{ |
||||
} |
||||
|
||||
public List<Expr> CaptureInits = new List<Expr>(); |
||||
public uint CaptureSize; |
||||
} |
||||
|
||||
public partial class CXXCatchStmt : Stmt |
||||
{ |
||||
public CXXCatchStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation CatchLoc; |
||||
public QualifiedType CaughtType; |
||||
public Stmt HandlerBlock; |
||||
} |
||||
|
||||
public partial class CXXTryStmt : Stmt |
||||
{ |
||||
public CXXTryStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation TryLoc; |
||||
public uint NumHandlers; |
||||
} |
||||
|
||||
public partial class CXXForRangeStmt : Stmt |
||||
{ |
||||
public CXXForRangeStmt() |
||||
{ |
||||
} |
||||
|
||||
public Stmt Init; |
||||
public Expr RangeInit; |
||||
public Expr Cond; |
||||
public Expr Inc; |
||||
public Stmt Body; |
||||
public SourceLocation ForLoc; |
||||
public SourceLocation CoawaitLoc; |
||||
public SourceLocation ColonLoc; |
||||
public SourceLocation RParenLoc; |
||||
} |
||||
|
||||
public partial class MSDependentExistsStmt : Stmt |
||||
{ |
||||
public MSDependentExistsStmt() |
||||
{ |
||||
} |
||||
|
||||
public SourceLocation KeywordLoc; |
||||
public bool IsIfExists; |
||||
public bool IsIfNotExists; |
||||
public CompoundStmt SubStmt; |
||||
} |
||||
|
||||
public partial class CoroutineBodyStmt : Stmt |
||||
{ |
||||
internal enum SubStmt |
||||
{ |
||||
/// <summary>The body of the coroutine.</summary>
|
||||
Body = 0, |
||||
/// <summary>The promise statement.</summary>
|
||||
Promise = 1, |
||||
/// <summary>The initial suspend statement, run before the body.</summary>
|
||||
InitSuspend = 2, |
||||
/// <summary>The final suspend statement, run after the body.</summary>
|
||||
FinalSuspend = 3, |
||||
/// <summary>Handler for exceptions thrown in the body.</summary>
|
||||
OnException = 4, |
||||
/// <summary>Handler for control flow falling off the body.</summary>
|
||||
OnFallthrough = 5, |
||||
/// <summary>Coroutine frame memory allocation.</summary>
|
||||
Allocate = 6, |
||||
/// <summary>Coroutine frame memory deallocation.</summary>
|
||||
Deallocate = 7, |
||||
/// <summary>Return value for thunk function: p.get_return_object().</summary>
|
||||
ReturnValue = 8, |
||||
/// <summary>Declaration holding the result of get_return_object.</summary>
|
||||
ResultDecl = 9, |
||||
/// <summary>Return statement for the thunk function.</summary>
|
||||
ReturnStmt = 10, |
||||
/// <summary>Return statement if allocation failed.</summary>
|
||||
ReturnStmtOnAllocFailure = 11, |
||||
/// <summary>First offset for move construction of parameter copies.</summary>
|
||||
FirstParamMove = 12 |
||||
} |
||||
|
||||
public partial class CtorArgs |
||||
{ |
||||
public CtorArgs() |
||||
{ |
||||
} |
||||
|
||||
} |
||||
|
||||
public CoroutineBodyStmt() |
||||
{ |
||||
} |
||||
|
||||
public bool HasDependentPromiseType; |
||||
public Stmt Body; |
||||
public Stmt PromiseDeclStmt; |
||||
public Stmt InitSuspendStmt; |
||||
public Stmt FinalSuspendStmt; |
||||
public Stmt ExceptionHandler; |
||||
public Stmt FallthroughHandler; |
||||
public Expr Allocate; |
||||
public Expr Deallocate; |
||||
public Expr ReturnValueInit; |
||||
public Stmt ResultDecl; |
||||
public Stmt ReturnStmt; |
||||
public Stmt ReturnStmtOnAllocFailure; |
||||
} |
||||
|
||||
public partial class CoreturnStmt : Stmt |
||||
{ |
||||
internal enum SubStmt |
||||
{ |
||||
Operand = 0, |
||||
PromiseCall = 1, |
||||
Count = 2 |
||||
} |
||||
|
||||
public CoreturnStmt() |
||||
{ |
||||
} |
||||
|
||||
public bool IsImplicit; |
||||
public SourceLocation KeywordLoc; |
||||
public Expr Operand; |
||||
public Expr PromiseCall; |
||||
} |
||||
} |
Loading…
Reference in new issue