(self, label: BasicBlock | str)
| 269 | self.emit_line(line) |
| 270 | |
| 271 | def emit_label(self, label: BasicBlock | str) -> None: |
| 272 | if isinstance(label, str): |
| 273 | text = label |
| 274 | else: |
| 275 | if label.label == 0 or not label.referenced: |
| 276 | return |
| 277 | |
| 278 | text = self.label(label) |
| 279 | # Extra semicolon prevents an error when the next line declares a tempvar |
| 280 | self.fragments.append(f"{text}: ;\n") |
| 281 | |
| 282 | def emit_from_emitter(self, emitter: Emitter) -> None: |
| 283 | self.fragments.extend(emitter.fragments) |
no test coverage detected