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

Function add

src/search/query-utils.ts:31–35  ·  view source on GitHub ↗
(raw: string | undefined | null)

Source from the content-addressed store, hash-verified

29export function deriveProjectNameTokens(projectRoot: string): Set<string> {
30 const tokens = new Set<string>();
31 const add = (raw: string | undefined | null): void => {
32 if (!raw) return;
33 const norm = normalizeNameToken(raw);
34 if (norm.length >= 5) tokens.add(norm);
35 };
36
37 // go.mod module last segment (the most reliable signal for Go repos).
38 try {

Callers 2

deriveProjectNameTokensFunction · 0.70
findCopybookEntriesMethod · 0.50

Calls 2

normalizeNameTokenFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected