MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / collectImporters

Function collectImporters

src/tools/search-codebase.ts:452–463  ·  view source on GitHub ↗
(
      target: string
    )

Source from the content-addressed store, hash-verified

450 };
451
452 const collectImporters = (
453 target: string
454 ): Array<{ importer: string; detail: ImportEdgeDetail | null }> => {
455 const matches: Array<{ importer: string; detail: ImportEdgeDetail | null }> = [];
456 for (const [dep, importers] of reverseImportsLocal) {
457 if (!pathsMatch(dep, target)) continue;
458 for (const importer of importers) {
459 matches.push({ importer, detail: findImportDetail(importDetails, importer, dep) });
460 }
461 }
462 return matches;
463 };
464
465 // Hop 1
466 const hop1Files: string[] = [];

Callers 1

computeImpactCandidatesFunction · 0.85

Calls 2

pathsMatchFunction · 0.85
findImportDetailFunction · 0.85

Tested by

no test coverage detected