Flush to memory and clear variables stack
(self, out: CWriter)
| 280 | return Local.from_memory(var, self.base_offset) |
| 281 | |
| 282 | def clear(self, out: CWriter) -> None: |
| 283 | "Flush to memory and clear variables stack" |
| 284 | self.flush(out) |
| 285 | self.variables = [] |
| 286 | self.base_offset = self.logical_sp |
| 287 | |
| 288 | def push(self, var: Local) -> None: |
| 289 | assert(var not in self.variables), var |
no test coverage detected