Add a basic block and make it the active one (target of adds).
(self, block: BasicBlock)
| 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.""" |