Pop symbol table and add to sub table of parent table.
(&mut self)
| 1080 | |
| 1081 | /// Pop symbol table and add to sub table of parent table. |
| 1082 | fn leave_scope(&mut self) { |
| 1083 | let mut table = self.tables.pop().unwrap(); |
| 1084 | // Save the collected varnames to the symbol table |
| 1085 | table.varnames = core::mem::take(&mut self.current_varnames); |
| 1086 | self.tables.last_mut().unwrap().sub_tables.push(table); |
| 1087 | // Restore parent's varnames |
| 1088 | self.current_varnames = self.varnames_stack.pop().unwrap_or_default(); |
| 1089 | } |
| 1090 | |
| 1091 | /// Enter annotation scope (PEP 649) |
| 1092 | /// Creates or reuses the annotation block for the current scope |
no test coverage detected