def visit_return(self, node, parent): """visit a Return node by returning a fresh instance of it""" newnode = new.Return() _lineno_parent(node, newnode, parent) newnode.value = self.visit(node.value, newnode) newnode.set_line_info(newnode.last_child()) return newnode
def visit_return(self, node, parent): """visit a Return node by returning a fresh instance of it""" newnode = new.Return() self._set_infos(node, newnode, parent) newnode.value = self.visit(_filter_none(node.value), newnode) return newnode