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

Function returns

src/ui-server/api/when.ts:249–255  ·  view source on GitHub ↗
(definition)

Source from the content-addressed store, hash-verified

247 return memberTypesForFile(file.abs, file.language, definition.startLine);
248 },
249 async returns(definition) {
250 // Not counted: one read per handler, on a tree the walk has parsed anyway.
251 if (!definition.startLine || !supportsBranchGuards(definition.language)) return [];
252 const file = resolve(definition);
253 if (!file) return [];
254 return returnsForFile(file.abs, file.language, definition.startLine);
255 },
256 async directive(definition) {
257 // Not counted: a text read, cached per file, no tree.
258 const none = { file: null, own: false } as const;

Callers

nothing calls this directly

Calls 3

supportsBranchGuardsFunction · 0.90
returnsForFileFunction · 0.90
resolveFunction · 0.70

Tested by

no test coverage detected