Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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