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

Function args

src/ui-server/api/when.ts:191–198  ·  view source on GitHub ↗
(caller, site)

Source from the content-addressed store, hash-verified

189 return (await loopsForFile(file.abs, file.language, [key])).get(siteKey(key)) ?? [];
190 },
191 async args(caller, site) {
192 if (!site.line || sites >= maxSites || !supportsBranchGuards(caller.language)) return null;
193 const file = resolve(caller);
194 if (!file) return null;
195 sites++;
196 const key = { line: site.line, column: typeof site.column === 'number' ? site.column : null };
197 return (await callArgumentsForFile(file.abs, file.language, [key])).get(siteKey(key)) ?? null;
198 },
199 async trigger(caller, site) {
200 // Not counted against the budget: the tree is already parsed for the
201 // site's guards, and a trigger lookup is a walk up from one node.

Callers

nothing calls this directly

Calls 5

supportsBranchGuardsFunction · 0.90
callArgumentsForFileFunction · 0.90
siteKeyFunction · 0.90
resolveFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected