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

Function pythonModuleIndex

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

Source from the content-addressed store, hash-verified

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