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

Method native_function_name

mypyc/codegen/emit.py:393–394  ·  view source on GitHub ↗
(self, fn: FuncDecl)

Source from the content-addressed store, hash-verified

391 return self.c_undefined_value(rtype)
392
393 def native_function_name(self, fn: FuncDecl) -> str:
394 return f"{NATIVE_PREFIX}{fn.cname(self.names)}"
395
396 def native_function_call(self, fn: FuncDecl) -> str:
397 """Return the C expression for a call to `fn`'s native (CPyDef_) entry.

Callers 6

native_function_callMethod · 0.95
generate_class_type_declFunction · 0.80
generate_classFunction · 0.80
native_function_headerFunction · 0.80

Calls 1

cnameMethod · 0.45

Tested by

no test coverage detected