(cl: ClassIR, fn: FuncIR, emitter: Emitter)
| 52 | |
| 53 | |
| 54 | def dunder_attr_slot(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> str: |
| 55 | wrapper_fn = cl.get_method(fn.name + "__wrapper") |
| 56 | assert wrapper_fn |
| 57 | return f"{NATIVE_PREFIX}{wrapper_fn.cname(emitter.names)}" |
| 58 | |
| 59 | |
| 60 | # We maintain a table from dunder function names to struct slots they |
nothing calls this directly
no test coverage detected
searching dependent graphs…