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

Function create_switch_for_generator_class

mypyc/irbuild/generator.py:174–178  ·  view source on GitHub ↗
(builder: IRBuilder)

Source from the content-addressed store, hash-verified

172
173
174def create_switch_for_generator_class(builder: IRBuilder) -> None:
175 builder.add(Goto(builder.fn_info.generator_class.switch_block))
176 block = BasicBlock()
177 builder.fn_info.generator_class.continuation_blocks.append(block)
178 builder.activate_block(block)
179
180
181def populate_switch_for_generator_class(builder: IRBuilder) -> None:

Callers 1

gen_generator_func_bodyFunction · 0.85

Calls 5

GotoClass · 0.90
BasicBlockClass · 0.90
appendMethod · 0.80
addMethod · 0.45
activate_blockMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…