Return reference to the attribute definedness bitmap.
(self, obj: str, cl: ClassIR, index: int)
| 439 | return f"bitmap{n + 1}" |
| 440 | |
| 441 | def attr_bitmap_expr(self, obj: str, cl: ClassIR, index: int) -> str: |
| 442 | """Return reference to the attribute definedness bitmap.""" |
| 443 | cast = f"({cl.struct_name(self.names)} *)" |
| 444 | attr = self.bitmap_field(index) |
| 445 | return f"({cast}{obj})->{attr}" |
| 446 | |
| 447 | def emit_attr_bitmap_set( |
| 448 | self, value: str, obj: str, rtype: RType, cl: ClassIR, attr: str |
no test coverage detected