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

Function returnsForFile

src/graph/branch-guards.ts:2104–2109  ·  view source on GitHub ↗
(absPath: string, language: Language, line: number)

Source from the content-addressed store, hash-verified

2102]);
2103
2104export async function returnsForFile(absPath: string, language: Language, line: number): Promise<ReturnSite[]> {
2105 if (!supportsBranchGuards(language)) return [];
2106 const cached = await treeFor(absPath, language);
2107 if (!cached) return [];
2108 return returnsInTree(cached.tree.rootNode, line);
2109}
2110
2111/** {@link returnsForFile} over source text — the test surface. */
2112export async function returnsInSource(source: string, language: Language, line: number): Promise<ReturnSite[]> {

Callers 1

returnsFunction · 0.90

Calls 3

supportsBranchGuardsFunction · 0.85
treeForFunction · 0.85
returnsInTreeFunction · 0.85

Tested by

no test coverage detected