def asobject(self) -> BufferLoad: """Convert object.""" for s in self.slices: if s.stop is not None: self.report_error("BufferLoad only accepts elementwise access", self.span) indices = [s.start for s in self.slices] return BufferLoad(self.buffer, indices, span=self.span)
def asobject(self) -> BufferLoad: """Convert object.""" indices = [s.as_index_expr(self.report_error) for s in self.slices] return BufferLoad(self.buffer, indices, span=self.span)