(self, name: str, target: str)
| 119 | ) |
| 120 | |
| 121 | def update_name_and_target(self, name: str, target: str) -> "Instruction": |
| 122 | assert self.target is not None |
| 123 | return Instruction( |
| 124 | self.kind, |
| 125 | name, |
| 126 | self.text.replace(self.name, name).replace(self.target, target), |
| 127 | target, |
| 128 | ) |
| 129 | |
| 130 | |
| 131 | @dataclasses.dataclass(eq=False) |
no test coverage detected