MCPcopy Index your code
hub / github.com/python/mypy / gen_cleanup

Method gen_cleanup

mypyc/irbuild/nonlocalcontrol.py:210–216  ·  view source on GitHub ↗
(self, builder: IRBuilder, line: int)

Source from the content-addressed store, hash-verified

208 self.saved = saved
209
210 def gen_cleanup(self, builder: IRBuilder, line: int) -> None:
211 # Restore the old exc_info
212 target, cleanup = BasicBlock(), BasicBlock()
213 builder.add(Branch(self.saved, target, cleanup, Branch.IS_ERROR))
214 builder.activate_block(cleanup)
215 builder.call_c(restore_exc_info_op, [self.saved], line)
216 builder.goto_and_activate(target)

Callers

nothing calls this directly

Calls 6

BasicBlockClass · 0.90
BranchClass · 0.90
addMethod · 0.45
activate_blockMethod · 0.45
call_cMethod · 0.45
goto_and_activateMethod · 0.45

Tested by

no test coverage detected