Preserves the state of this local symbol table, detached from the global symbol table it belongs to.
(self)
| 268 | /// Preserves the state of this local symbol table, detached from the global symbol table |
| 269 | /// it belongs to. |
| 270 | pub(crate) fn save(self) -> LocalSymtableSnapshot { |
| 271 | LocalSymtableSnapshot { |
| 272 | locals: self.locals, |
| 273 | count_temps: self.count_temps, |
| 274 | active_temps: self.active_temps, |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | /// Reattaches a previous local symbol table content to a global symbol table so that it |
| 279 | /// can be used again for compilation. |