MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pythonModuleIndex

Function pythonModuleIndex

src/resolution/import-resolver.ts:679–686  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

677}
678
679function pythonModuleIndex(context: ResolutionContext): PythonModuleIndex {
680 let index = pythonModuleIndexes.get(context);
681 if (!index) {
682 index = buildPythonModuleIndex(context);
683 pythonModuleIndexes.set(context, index);
684 }
685 return index;
686}
687
688function buildPythonModuleIndex(context: ResolutionContext): PythonModuleIndex {
689 const files = new Set<string>();

Callers 3

resolvePythonModuleFunction · 0.85
pythonScriptModuleScopeFunction · 0.85
pythonPackageImportersFunction · 0.85

Calls 3

buildPythonModuleIndexFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected