zkay.zkay_ast.visitor.transformer_visitor

Module Contents

zkay.zkay_ast.visitor.transformer_visitor.T
class zkay.zkay_ast.visitor.transformer_visitor.AstTransformerVisitor(log=False)

Visitor which replaces visited AST elements by the corresponding visit functions return value

The default action when no matching visit function is defined, is to replace the node with itself and to visit the children. If a matching visit function is defined, children are not automatically visited. (Corresponds to node-or-children traversal order from AstVisitor)

visit(self, ast)
visit_list(self, ast_list: List[zkay.zkay_ast.ast.AST])
visit_children(self, ast: T) T
_visit_internal(self, ast)
get_visit_function(self, c)
visitAST(self, ast: zkay.zkay_ast.ast.AST)