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

Method emit_dep_headers

mypyc/codegen/emitmodule.py:712–719  ·  view source on GitHub ↗
(decls: Emitter, internal: bool)

Source from the content-addressed store, hash-verified

710 ext_declarations.emit_line("#include <CPy.h>")
711
712 def emit_dep_headers(decls: Emitter, internal: bool) -> None:
713 suffix = "_api" if internal else ""
714 if self.compiler_options.depends_on_librt_internal:
715 decls.emit_line(f'#include "internal/librt_internal{suffix}.h"')
716 # Include headers for conditional source files
717 header_deps = collect_header_dependencies(self.modules, internal=internal)
718 for header_dep in sorted(header_deps):
719 decls.emit_line(f'#include "{header_dep}"')
720
721 emit_dep_headers(ext_declarations, False)
722

Callers

nothing calls this directly

Calls 3

sortedFunction · 0.85
emit_lineMethod · 0.45

Tested by

no test coverage detected