(self, target: str)
| 113 | return self.kind in (InstructionKind.LONG_BRANCH, InstructionKind.SHORT_BRANCH) |
| 114 | |
| 115 | def update_target(self, target: str) -> "Instruction": |
| 116 | assert self.target is not None |
| 117 | return Instruction( |
| 118 | self.kind, self.name, self.text.replace(self.target, target), target |
| 119 | ) |
| 120 | |
| 121 | def update_name_and_target(self, name: str, target: str) -> "Instruction": |
| 122 | assert self.target is not None |
no test coverage detected