MCPcopy
hub / github.com/colbymchenry/codegraph / consider

Method consider

src/mcp/tools.ts:2265–2271  ·  view source on GitHub ↗
(n: Node | undefined | null)

Source from the content-addressed store, hash-verified

2263 if (keyNorm.length < 3) return '';
2264 const cands = new Map<string, Node>();
2265 const consider = (n: Node | undefined | null) => {
2266 if (!n || n.id === selfId || !CALLABLE.has(n.kind) || cands.has(n.id)) return;
2267 const nameNorm = norm(n.name || '');
2268 if (nameNorm.length < 3) return;
2269 if (!nameNorm.includes(keyNorm) && !keyNorm.includes(nameNorm)) return;
2270 cands.set(n.id, n);
2271 };
2272 const cap = key.charAt(0).toUpperCase() + key.slice(1);
2273 const probes = keyIsType
2274 ? [`${key}Handler`, key]

Callers

nothing calls this directly

Calls 3

hasMethod · 0.80
setMethod · 0.80
normFunction · 0.50

Tested by

no test coverage detected