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

Method visit_method_call

mypyc/codegen/emitfunc.py:594–597  ·  view source on GitHub ↗

Call native method.

(self, op: MethodCall)

Source from the content-addressed store, hash-verified

592 self.emit_line(f"{dest}{lib}{NATIVE_PREFIX}{cname}({args});")
593
594 def visit_method_call(self, op: MethodCall) -> None:
595 """Call native method."""
596 dest = self.get_dest_assign(op)
597 self.emit_method_call(dest, op.obj, op.method, op.args)
598
599 def emit_method_call(self, dest: str, op_obj: Value, name: str, op_args: list[Value]) -> None:
600 obj = self.reg(op_obj)

Callers

nothing calls this directly

Calls 2

get_dest_assignMethod · 0.95
emit_method_callMethod · 0.95

Tested by

no test coverage detected