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

Function pythonModuleIndex

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

Source from the content-addressed store, hash-verified

695}
696
697function pythonModuleIndex(context: ResolutionContext): PythonModuleIndex {
698 let index = pythonModuleIndexes.get(context);
699 if (!index) {
700 index = buildPythonModuleIndex(context);
701 pythonModuleIndexes.set(context, index);
702 }
703 return index;
704}
705
706function buildPythonModuleIndex(context: ResolutionContext): PythonModuleIndex {
707 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