def visit_extslice(self, node, parent): """visit an ExtSlice node by returning a fresh instance of it""" newnode = new.ExtSlice() _lineno_parent(node, newnode, parent) newnode.dims = [self.visit(dim, newnode) for dim in node.dims] newnode.set_line_info(newnode.last_child()) return newnode
def visit_extslice(self, node, parent): """visit an ExtSlice node by returning a fresh instance of it""" newnode = new.ExtSlice() self._set_infos(node, newnode, parent) newnode.dims = [self.visit(dim, newnode) for dim in node.subs] return newnode