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

Method leave

mypyc/irbuild/builder.py:1341–1350  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1339 self.activate_block(BasicBlock())
1340
1341 def leave(self) -> tuple[list[Register], list[RuntimeArg], list[BasicBlock], RType, FuncInfo]:
1342 builder = self.builders.pop()
1343 self.symtables.pop()
1344 runtime_args = self.runtime_args.pop()
1345 ret_type = self.ret_types.pop()
1346 fn_info = self.fn_infos.pop()
1347 self.nonlocal_control.pop()
1348 self.builder = self.builders[-1]
1349 self.fn_info = self.fn_infos[-1]
1350 return builder.args, runtime_args, builder.blocks, ret_type, fn_info
1351
1352 @contextmanager
1353 def enter_scope(self, fn_info: FuncInfo) -> Iterator[None]:

Callers 12

enter_methodMethod · 0.95
gen_func_bodyFunction · 0.80
gen_glue_methodFunction · 0.80
gen_glue_propertyFunction · 0.80
gen_glue_property_setterFunction · 0.80
gen_dispatch_func_irFunction · 0.80
gen_property_getter_irFunction · 0.80
gen_property_setter_irFunction · 0.80
gen_generator_funcFunction · 0.80
gen_generator_func_bodyFunction · 0.80
transform_mypy_fileFunction · 0.80

Calls 1

popMethod · 0.45

Tested by

no test coverage detected