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

Function lookup

__tests__/query-paths.test.ts:389–395  ·  view source on GitHub ↗
(defs: Record<string, string[]>)

Source from the content-addressed store, hash-verified

387 const SHARED = [...INDEX, REGISTRY, HELPER];
388 /** Records every symbol the lookup is asked about. */
389 const lookup = (defs: Record<string, string[]>) => {
390 const asked: string[] = [];
391 return {
392 asked,
393 symbolFiles: (symbol: string) => { asked.push(symbol); return defs[symbol] ?? []; },
394 };
395 };
396
397 it('pins only the match defining a named symbol and reports the one set aside', () => {
398 const l = lookup({ clampedInt: [REGISTRY], cursorStyleToString: [REGISTRY] });

Callers 2

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected