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

Method activate_block

mypyc/irbuild/ll_builder.py:303–309  ·  view source on GitHub ↗

Add a basic block and make it the active one (target of adds).

(self, block: BasicBlock)

Source from the content-addressed store, hash-verified

301 self.add(Goto(target))
302
303 def activate_block(self, block: BasicBlock) -> None:
304 """Add a basic block and make it the active one (target of adds)."""
305 if self.blocks:
306 assert self.blocks[-1].terminated
307
308 block.error_handler = self.error_handlers[-1]
309 self.blocks.append(block)
310
311 def goto_and_activate(self, block: BasicBlock) -> None:
312 """Add goto a block and make it the active block."""

Callers 15

goto_and_activateMethod · 0.95
coerce_i64_to_ssize_tMethod · 0.95
coerce_nullableMethod · 0.95
_construct_varargsMethod · 0.95
load_static_checkedMethod · 0.95
compare_stringsMethod · 0.95
compare_tuplesMethod · 0.95
unary_notMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by 1

test_debug_opMethod · 0.76