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

Function groupReferencesByFile

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

Source from the content-addressed store, hash-verified

28}
29
30export function groupReferencesByFile(references) {
31 const grouped = {};
32 for (const ref of references) {
33 if (!grouped[ref.uri]) {
34 grouped[ref.uri] = [];
35 }
36 grouped[ref.uri].push(ref);
37 }
38 return grouped;
39}
40
41export async function buildFlatList(references, symbolName) {
42 const grouped = groupReferencesByFile(references);

Callers 1

buildFlatListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected