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

Function pythonModuleIndex

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

Source from the content-addressed store, hash-verified

700}
701
702function pythonModuleIndex(context: ResolutionContext): PythonModuleIndex {
703 let index = pythonModuleIndexes.get(context);
704 if (!index) {
705 index = buildPythonModuleIndex(context);
706 pythonModuleIndexes.set(context, index);
707 }
708 return index;
709}
710
711function buildPythonModuleIndex(context: ResolutionContext): PythonModuleIndex {
712 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