Mark an attribute as defined in the attribute bitmap. Assumes that the attribute is tracked in the bitmap (only some attributes use the bitmap). If 'value' is not equal to the error value, do nothing.
(
self, value: str, obj: str, rtype: RType, cl: ClassIR, attr: str
)
| 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 |
| 449 | ) -> None: |
| 450 | """Mark an attribute as defined in the attribute bitmap. |
| 451 | |
| 452 | Assumes that the attribute is tracked in the bitmap (only some attributes |
| 453 | use the bitmap). If 'value' is not equal to the error value, do nothing. |
| 454 | """ |
| 455 | self._emit_attr_bitmap_update(value, obj, rtype, cl, attr, clear=False) |
| 456 | |
| 457 | def emit_attr_bitmap_clear(self, obj: str, rtype: RType, cl: ClassIR, attr: str) -> None: |
| 458 | """Mark an attribute as undefined in the attribute bitmap. |
no test coverage detected