MCPcopy
hub / github.com/python/mypy / make_block

Function make_block

mypyc/test/test_pprint.py:14–17  ·  view source on GitHub ↗
(ops: list[Op])

Source from the content-addressed store, hash-verified

12
13
14def make_block(ops: list[Op]) -> BasicBlock:
15 block = BasicBlock()
16 block.ops.extend(ops)
17 return block
18
19
20class TestGenerateNames(unittest.TestCase):

Callers 2

test_int_opMethod · 0.85
test_assignMethod · 0.85

Calls 2

BasicBlockClass · 0.90
extendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…