Function TransformAstTraverse(AstInterface&, const AstNodePtr&, bool(*)(AstInterface&fa, const AstNodePtr&head, AstNodePtr&result), AstInterface::TraversalVisitType)

Function TransformAstTraverse(AstInterface&, const AstNodePtr&, bool(*)(AstInterface&fa, const AstNodePtr&head, AstNodePtr&result), AstInterface::TraversalVisitType)#

Function Documentation#

AstNodePtr TransformAstTraverse(AstInterface &fa, const AstNodePtr &r, bool (*op)(AstInterface &fa, const AstNodePtr &head, AstNodePtr &result), AstInterface::TraversalVisitType t = AstInterface::PreVisit)#

Traverse and transform an entire AST, where $op$ is invoked to transform each sub-Tree.