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

Method getFileDependentCounts

src/index.ts:1652–1656  ·  view source on GitHub ↗

* How many other files depend on each of the given files, counted through * their symbols (an `imports` edge points at the symbol, not the file). * A zero means nothing else in the index reaches into that file.

(filePaths: string[])

Source from the content-addressed store, hash-verified

1650 * A zero means nothing else in the index reaches into that file.
1651 */
1652 getFileDependentCounts(filePaths: string[]): Map<string, number> {
1653 return new Map(
1654 this.queries.getFileDependentCounts(filePaths).map((row) => [row.filePath, row.dependents])
1655 );
1656 }
1657
1658 /**
1659 * How far each of the given files reaches out: distinct other files their

Callers

nothing calls this directly

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected