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

Method basic_block

mypyc/test/test_ircheck.py:50–54  ·  view source on GitHub ↗
(self, ops: list[Op])

Source from the content-addressed store, hash-verified

48 self.label = 0
49
50 def basic_block(self, ops: list[Op]) -> BasicBlock:
51 self.label += 1
52 block = BasicBlock(self.label)
53 block.ops = ops
54 return block
55
56 def func_decl(self, name: str, ret_type: RType | None = None) -> FuncDecl:
57 if ret_type is None:

Callers 11

test_valid_fnMethod · 0.95
test_valid_gotoMethod · 0.95
test_invalid_gotoMethod · 0.95
test_invalid_assignMethod · 0.95
test_duplicate_opMethod · 0.95
test_pprintMethod · 0.95

Calls 1

BasicBlockClass · 0.90

Tested by

no test coverage detected