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

Function trait_offset_table_name

mypyc/codegen/emitclass.py:509–512  ·  view source on GitHub ↗
(trait: ClassIR)

Source from the content-addressed store, hash-verified

507 )
508
509 def trait_offset_table_name(trait: ClassIR) -> str:
510 return "{}_{}_offset_table".format(
511 base.name_prefix(emitter.names), trait.name_prefix(emitter.names)
512 )
513
514 # Emit array definitions with enough space for all the entries
515 emitter.emit_line(

Callers 1

generate_vtablesFunction · 0.85

Calls 2

name_prefixMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…