MCPcopy Index your code
hub / github.com/python/mypy / bitmap_field

Method bitmap_field

mypyc/codegen/emit.py:434–439  ·  view source on GitHub ↗

Return C field name used for attribute bitmap.

(self, index: int)

Source from the content-addressed store, hash-verified

432 return result
433
434 def bitmap_field(self, index: int) -> str:
435 """Return C field name used for attribute bitmap."""
436 n = index // BITMAP_BITS
437 if n == 0:
438 return "bitmap"
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."""

Callers 4

attr_bitmap_exprMethod · 0.95
generate_object_structFunction · 0.80
emit_clear_bitmapsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected