Skip to content

Commit

Permalink
Ignore stripLabelLikeStatements property in bootstrap generator.
Browse files Browse the repository at this point in the history
This is not really necessary and causes StackOverflow exceptions when parsing statements.
  • Loading branch information
tritao committed Mar 10, 2019
1 parent 926e8ab commit e0875c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CppParser/Bootstrap/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,14 @@ public override bool VisitClassDecl(Class @class)
return base.VisitClassDecl(@class);
}

public override bool VisitProperty(Property property)
{
if (property.Name == "stripLabelLikeStatements")
property.ExplicitlyIgnore();

return base.VisitProperty(property);
}

public override bool VisitEnumDecl(Enumeration @enum)
{
if (AlreadyVisited(@enum))
Expand Down

0 comments on commit e0875c7

Please sign in to comment.