(self, op: Cast)
| 197 | return s |
| 198 | |
| 199 | def visit_cast(self, op: Cast) -> str: |
| 200 | if op.is_unchecked: |
| 201 | prefix = "unchecked " |
| 202 | else: |
| 203 | prefix = "" |
| 204 | return self.format( |
| 205 | "%r = %s%scast(%s, %r)", op, prefix, self.borrow_prefix(op), op.type, op.src |
| 206 | ) |
| 207 | |
| 208 | def visit_box(self, op: Box) -> str: |
| 209 | return self.format("%r = box(%s, %r)", op, op.src.type, op.src) |
nothing calls this directly
no test coverage detected