Ejemplo n.º 1
0
    def _children_default(self):
        from pgv.red.klass_visitor import KlassVisitor
        
        klass_visitor = KlassVisitor(parent=self)
        for child_ast_node in ast.iter_child_nodes(self._ast_node):
            klass_visitor.visit(child_ast_node)

        # Once we have the children, we don't need the ast node!
        self._ast_node = None
        
        return  klass_visitor.children