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

Function remember

src/ui-server/api/search.ts:110–112  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

108
109 const candidates = new Map<string, Node>();
110 const remember = (node: Node): void => {
111 if (!candidates.has(node.id)) candidates.set(node.id, node);
112 };
113
114 if (text.length > 0) {
115 for (const node of cg.getNodesByName(text)) remember(node);

Callers 1

buildSearchFunction · 0.70

Calls 2

hasMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected