MCPcopy Create free account
hub / github.com/codeaashu/claude-code / countUniqueFilesFromOutgoingCalls

Function countUniqueFilesFromOutgoingCalls

src/tools/LSPTool/LSPTool.ts:855–860  ·  view source on GitHub ↗

* Counts unique files from CallHierarchyOutgoingCall array * Filters out calls with undefined URIs

(
  calls: CallHierarchyOutgoingCall[],
)

Source from the content-addressed store, hash-verified

853 * Filters out calls with undefined URIs
854 */
855function countUniqueFilesFromOutgoingCalls(
856 calls: CallHierarchyOutgoingCall[],
857): number {
858 const validUris = calls.map(call => call.to?.uri).filter(uri => uri)
859 return new Set(validUris).size
860}
861

Callers 1

formatResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected