Skip to content

Commit

Permalink
Regenerate the parser bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dobrev <[email protected]>
  • Loading branch information
ddobrev committed Mar 9, 2019
1 parent 8ad78c3 commit 926e8ab
Show file tree
Hide file tree
Showing 13 changed files with 17,589 additions and 14,916 deletions.
1 change: 1 addition & 0 deletions src/AST/Stmt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public Stmt()
}

public SourceRange SourceRange { get; set; }
public SourceLocation BeginLoc { get; set; }
public SourceLocation EndLoc { get; set; }
public Stmt StripLabelLikeStatements { get; set; }

Expand Down
12 changes: 12 additions & 0 deletions src/CppParser/Bindings/CLI/Stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ void CppSharp::Parser::AST::Stmt::SourceRange::set(CppSharp::Parser::SourceRange
((::CppSharp::CppParser::AST::Stmt*)NativePtr)->sourceRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr;
}

CppSharp::Parser::SourceLocation CppSharp::Parser::AST::Stmt::BeginLoc::get()
{
return CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::AST::Stmt*)NativePtr)->beginLoc);
}

void CppSharp::Parser::AST::Stmt::BeginLoc::set(CppSharp::Parser::SourceLocation value)
{
auto _marshal0 = ::CppSharp::CppParser::SourceLocation();
_marshal0.ID = value.ID;
((::CppSharp::CppParser::AST::Stmt*)NativePtr)->beginLoc = _marshal0;
}

CppSharp::Parser::SourceLocation CppSharp::Parser::AST::Stmt::EndLoc::get()
{
return CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::AST::Stmt*)NativePtr)->endLoc);
Expand Down
6 changes: 6 additions & 0 deletions src/CppParser/Bindings/CLI/Stmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ namespace CppSharp
void set(CppSharp::Parser::SourceRange^);
}

property CppSharp::Parser::SourceLocation BeginLoc
{
CppSharp::Parser::SourceLocation get();
void set(CppSharp::Parser::SourceLocation);
}

property CppSharp::Parser::SourceLocation EndLoc
{
CppSharp::Parser::SourceLocation get();
Expand Down
5,397 changes: 2,909 additions & 2,488 deletions src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs

Large diffs are not rendered by default.

5,387 changes: 2,904 additions & 2,483 deletions src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs

Large diffs are not rendered by default.

5,393 changes: 2,907 additions & 2,486 deletions src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs

Large diffs are not rendered by default.

5,391 changes: 2,906 additions & 2,485 deletions src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs

Large diffs are not rendered by default.

5,395 changes: 2,908 additions & 2,487 deletions src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs

Large diffs are not rendered by default.

5,395 changes: 2,908 additions & 2,487 deletions src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/CppParser/Stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace CppSharp { namespace CppParser { namespace AST {
Stmt::Stmt()
: stmtClass(StmtClass::NoStmt)
, sourceRange(SourceRange())
, beginLoc(SourceLocation())
, endLoc(SourceLocation())
, stripLabelLikeStatements(nullptr)
{
Expand All @@ -22,6 +23,7 @@ Stmt::Stmt()
Stmt::Stmt(StmtClass klass)
: stmtClass(klass)
, sourceRange(SourceRange())
, beginLoc(SourceLocation())
, endLoc(SourceLocation())
, stripLabelLikeStatements(nullptr)
{
Expand Down
1 change: 1 addition & 0 deletions src/CppParser/Stmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class CS_API Stmt
Stmt(StmtClass klass);
StmtClass stmtClass;
SourceRange sourceRange;
SourceLocation beginLoc;
SourceLocation endLoc;
Stmt* stripLabelLikeStatements;
};
Expand Down
95 changes: 95 additions & 0 deletions src/Parser/ASTConverter.Expr.cs

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions src/Parser/ASTConverter.Stmt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ public override AST.Stmt VisitDeclStmt(DeclStmt stmt)
{
var _stmt = new AST.DeclStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.IsSingleDecl = stmt.IsSingleDecl;
Expand All @@ -706,6 +707,7 @@ public override AST.Stmt VisitNullStmt(NullStmt stmt)
{
var _stmt = new AST.NullStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.SemiLoc = VisitSourceLocation(stmt.SemiLoc);
Expand All @@ -717,6 +719,7 @@ public override AST.Stmt VisitCompoundStmt(CompoundStmt stmt)
{
var _stmt = new AST.CompoundStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.BodyEmpty = stmt.BodyEmpty;
Expand All @@ -737,6 +740,7 @@ public override AST.Stmt VisitCaseStmt(CaseStmt stmt)
{
var _stmt = new AST.CaseStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.KeywordLoc = VisitSourceLocation(stmt.KeywordLoc);
Expand All @@ -754,6 +758,7 @@ public override AST.Stmt VisitDefaultStmt(DefaultStmt stmt)
{
var _stmt = new AST.DefaultStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.KeywordLoc = VisitSourceLocation(stmt.KeywordLoc);
Expand All @@ -767,6 +772,7 @@ public override AST.Stmt VisitLabelStmt(LabelStmt stmt)
{
var _stmt = new AST.LabelStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.IdentLoc = VisitSourceLocation(stmt.IdentLoc);
Expand All @@ -779,6 +785,7 @@ public override AST.Stmt VisitAttributedStmt(AttributedStmt stmt)
{
var _stmt = new AST.AttributedStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.AttrLoc = VisitSourceLocation(stmt.AttrLoc);
Expand All @@ -790,6 +797,7 @@ public override AST.Stmt VisitIfStmt(IfStmt stmt)
{
var _stmt = new AST.IfStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.Cond = VisitExpression(stmt.Cond) as AST.Expr;
Expand All @@ -811,6 +819,7 @@ public override AST.Stmt VisitSwitchStmt(SwitchStmt stmt)
{
var _stmt = new AST.SwitchStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.Cond = VisitExpression(stmt.Cond) as AST.Expr;
Expand All @@ -828,6 +837,7 @@ public override AST.Stmt VisitWhileStmt(WhileStmt stmt)
{
var _stmt = new AST.WhileStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.Cond = VisitExpression(stmt.Cond) as AST.Expr;
Expand All @@ -842,6 +852,7 @@ public override AST.Stmt VisitDoStmt(DoStmt stmt)
{
var _stmt = new AST.DoStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.Cond = VisitExpression(stmt.Cond) as AST.Expr;
Expand All @@ -856,6 +867,7 @@ public override AST.Stmt VisitForStmt(ForStmt stmt)
{
var _stmt = new AST.ForStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.Init = VisitStatement(stmt.Init) as AST.Stmt;
Expand All @@ -873,6 +885,7 @@ public override AST.Stmt VisitGotoStmt(GotoStmt stmt)
{
var _stmt = new AST.GotoStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.GotoLoc = VisitSourceLocation(stmt.GotoLoc);
Expand All @@ -884,6 +897,7 @@ public override AST.Stmt VisitIndirectGotoStmt(IndirectGotoStmt stmt)
{
var _stmt = new AST.IndirectGotoStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.GotoLoc = VisitSourceLocation(stmt.GotoLoc);
Expand All @@ -896,6 +910,7 @@ public override AST.Stmt VisitContinueStmt(ContinueStmt stmt)
{
var _stmt = new AST.ContinueStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.ContinueLoc = VisitSourceLocation(stmt.ContinueLoc);
Expand All @@ -906,6 +921,7 @@ public override AST.Stmt VisitBreakStmt(BreakStmt stmt)
{
var _stmt = new AST.BreakStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.BreakLoc = VisitSourceLocation(stmt.BreakLoc);
Expand All @@ -916,6 +932,7 @@ public override AST.Stmt VisitReturnStmt(ReturnStmt stmt)
{
var _stmt = new AST.ReturnStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.RetValue = VisitExpression(stmt.RetValue) as AST.Expr;
Expand All @@ -927,6 +944,7 @@ public override AST.Stmt VisitGCCAsmStmt(GCCAsmStmt stmt)
{
var _stmt = new AST.GCCAsmStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.AsmLoc = VisitSourceLocation(stmt.AsmLoc);
Expand Down Expand Up @@ -954,6 +972,7 @@ public override AST.Stmt VisitMSAsmStmt(MSAsmStmt stmt)
{
var _stmt = new AST.MSAsmStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.AsmLoc = VisitSourceLocation(stmt.AsmLoc);
Expand Down Expand Up @@ -984,6 +1003,7 @@ public override AST.Stmt VisitSEHExceptStmt(SEHExceptStmt stmt)
{
var _stmt = new AST.SEHExceptStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.ExceptLoc = VisitSourceLocation(stmt.ExceptLoc);
Expand All @@ -996,6 +1016,7 @@ public override AST.Stmt VisitSEHFinallyStmt(SEHFinallyStmt stmt)
{
var _stmt = new AST.SEHFinallyStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.FinallyLoc = VisitSourceLocation(stmt.FinallyLoc);
Expand All @@ -1007,6 +1028,7 @@ public override AST.Stmt VisitSEHTryStmt(SEHTryStmt stmt)
{
var _stmt = new AST.SEHTryStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.TryLoc = VisitSourceLocation(stmt.TryLoc);
Expand All @@ -1022,6 +1044,7 @@ public override AST.Stmt VisitSEHLeaveStmt(SEHLeaveStmt stmt)
{
var _stmt = new AST.SEHLeaveStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.LeaveLoc = VisitSourceLocation(stmt.LeaveLoc);
Expand All @@ -1032,6 +1055,7 @@ public override AST.Stmt VisitCapturedStmt(CapturedStmt stmt)
{
var _stmt = new AST.CapturedStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.capturedStmt = VisitStatement(stmt.capturedStmt) as AST.Stmt;
Expand All @@ -1048,6 +1072,7 @@ public override AST.Stmt VisitCXXCatchStmt(CXXCatchStmt stmt)
{
var _stmt = new AST.CXXCatchStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.CatchLoc = VisitSourceLocation(stmt.CatchLoc);
Expand All @@ -1060,6 +1085,7 @@ public override AST.Stmt VisitCXXTryStmt(CXXTryStmt stmt)
{
var _stmt = new AST.CXXTryStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.TryLoc = VisitSourceLocation(stmt.TryLoc);
Expand All @@ -1072,6 +1098,7 @@ public override AST.Stmt VisitCXXForRangeStmt(CXXForRangeStmt stmt)
{
var _stmt = new AST.CXXForRangeStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.Init = VisitStatement(stmt.Init) as AST.Stmt;
Expand All @@ -1094,6 +1121,7 @@ public override AST.Stmt VisitMSDependentExistsStmt(MSDependentExistsStmt stmt)
{
var _stmt = new AST.MSDependentExistsStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.KeywordLoc = VisitSourceLocation(stmt.KeywordLoc);
Expand All @@ -1107,6 +1135,7 @@ public override AST.Stmt VisitCoroutineBodyStmt(CoroutineBodyStmt stmt)
{
var _stmt = new AST.CoroutineBodyStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.HasDependentPromiseType = stmt.HasDependentPromiseType;
Expand All @@ -1129,6 +1158,7 @@ public override AST.Stmt VisitCoreturnStmt(CoreturnStmt stmt)
{
var _stmt = new AST.CoreturnStmt();
_stmt.SourceRange = VisitSourceRange(stmt.SourceRange);
_stmt.BeginLoc = VisitSourceLocation(stmt.BeginLoc);
_stmt.EndLoc = VisitSourceLocation(stmt.EndLoc);
_stmt.StripLabelLikeStatements = VisitStatement(stmt.StripLabelLikeStatements) as AST.Stmt;
_stmt.IsImplicit = stmt.IsImplicit;
Expand Down

0 comments on commit 926e8ab

Please sign in to comment.