MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getReferencesStats

Function getReferencesStats

src/components/referencesPanel/utils.js:137–145  ·  view source on GitHub ↗
(references)

Source from the content-addressed store, hash-verified

135}
136
137export function getReferencesStats(references) {
138 const fileCount = new Set(references.map((r) => r.uri)).size;
139 const refCount = references.length;
140 return {
141 fileCount,
142 refCount,
143 text: `${refCount} reference${refCount !== 1 ? "s" : ""} in ${fileCount} file${fileCount !== 1 ? "s" : ""}`,
144 };
145}

Callers 3

renderReferencesFunction · 0.90
createReferencesTabFunction · 0.90
openReferencesTabFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected