Visit a list of nodes as block in a frame. If the current frame is no buffer a dummy ``if 0: yield None`` is written automatically.
(self, nodes: t.Iterable[nodes.Node], frame: Frame)
| 440 | self.end_write(frame) |
| 441 | |
| 442 | def blockvisit(self, nodes: t.Iterable[nodes.Node], frame: Frame) -> None: |
| 443 | """Visit a list of nodes as block in a frame. If the current frame |
| 444 | is no buffer a dummy ``if 0: yield None`` is written automatically. |
| 445 | """ |
| 446 | try: |
| 447 | self.writeline("pass") |
| 448 | for node in nodes: |
| 449 | self.visit(node, frame) |
| 450 | except CompilerExit: |
| 451 | pass |
| 452 | |
| 453 | def write(self, x: str) -> None: |
| 454 | """Write a string into the output stream.""" |
no test coverage detected