src/basilisp/lang/compiler/nodes.py
def visit(self, f: Callable[..., None], *args, **kwargs):
        """Visit all immediate children of this node, calling
        f(child, *args, **kwargs) on each child."""
        for child_kw in self.children:
            child_attr = munge(child_kw.name)

            if child_attr.endswith("s"):
                iter_child: Iterable[Node] = getattr(self, child_attr)
                assert iter_child is not None, "Listed child must not be none"
                for item in iter_child:
                    f(item, *args, **kwargs)
            else:
                child: Node = getattr(self, child_attr)
                assert child is not None, "Listed child must not be none"
                f(child, *args, **kwargs)
def visit(self, f: Callable[..., None], *args, **kwargs):
        """Visit all immediate children of this node, calling
        f(child, *args, **kwargs) on each child."""
        for child_kw in self.children:
            child_attr = munge(child_kw.name)

            if child_attr.endswith("s"):
                iter_child: Iterable[Node] = getattr(self, child_attr)
                assert iter_child is not None, "Listed child must not be none"
                for item in iter_child:
                    f(item, *args, **kwargs)
            else:
                child: Node = getattr(self, child_attr)
                assert child is not None, "Listed child must not be none"
                f(child, *args, **kwargs)
def visit ( self , f : Callable [ ... , None ] , * args , * * kwargs ) : for child_kw in self . children : child_attr = munge ( child_kw . name ) if child_attr . endswith ( "s" ) : iter_child : Iterable [ Node ] = getattr ( self , child_attr ) assert iter_child is not None , "Listed child must not be none" for item in iter_child : f ( item , * args , * * kwargs ) else : child : Node = getattr ( self , child_attr ) assert child is not None , "Listed child must not be none" f ( child , * args , * * kwargs )
Visit all immediate children of this node, calling
        f(child, *args, **kwargs) on each child.
Visit all immediate children of this node calling f ( child * args ** kwargs ) on each child .