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

Method visit_tuple_get

mypyc/codegen/emitfunc.py:573–578  ·  view source on GitHub ↗
(self, op: TupleGet)

Source from the content-addressed store, hash-verified

571 self.emit_inc_ref(name, op.value.type)
572
573 def visit_tuple_get(self, op: TupleGet) -> None:
574 dest = self.reg(op)
575 src = self.reg(op.src)
576 self.emit_line(f"{dest} = {src}.f{op.index};")
577 if not op.is_borrowed and op.type.is_refcounted:
578 self.emit_inc_ref(dest, op.type)
579
580 def get_dest_assign(self, dest: Value) -> str:
581 if not dest.is_void:

Callers

nothing calls this directly

Calls 3

regMethod · 0.95
emit_lineMethod · 0.95
emit_inc_refMethod · 0.95

Tested by

no test coverage detected