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

Method visit_call

mypyc/codegen/emitfunc.py:586–592  ·  view source on GitHub ↗

Call native function.

(self, op: Call)

Source from the content-addressed store, hash-verified

584 return ""
585
586 def visit_call(self, op: Call) -> None:
587 """Call native function."""
588 dest = self.get_dest_assign(op)
589 args = ", ".join(self.reg(arg) for arg in op.args)
590 lib = self.emitter.get_group_prefix(op.fn)
591 cname = op.fn.cname(self.names)
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."""

Callers

nothing calls this directly

Calls 6

get_dest_assignMethod · 0.95
regMethod · 0.95
emit_lineMethod · 0.95
get_group_prefixMethod · 0.80
joinMethod · 0.45
cnameMethod · 0.45

Tested by

no test coverage detected