Browse Source

Added an option whether passes should visit parameters of events.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/658/head
Dimitar Dobrev 9 years ago
parent
commit
162d8ebb49
  1. 6
      src/AST/ASTVisitor.cs

6
src/AST/ASTVisitor.cs

@ -32,6 +32,7 @@ namespace CppSharp.AST @@ -32,6 +32,7 @@ namespace CppSharp.AST
public bool VisitFunctionReturnType = true;
public bool VisitFunctionParameters = true;
public bool VisitEventParameters = true;
public bool VisitTemplateArguments = true;
}
@ -448,8 +449,9 @@ namespace CppSharp.AST @@ -448,8 +449,9 @@ namespace CppSharp.AST
if (!VisitDeclaration(@event))
return false;
foreach (var param in @event.Parameters)
param.Visit(this);
if (Options.VisitEventParameters)
foreach (var param in @event.Parameters)
param.Visit(this);
return true;
}

Loading…
Cancel
Save