(absPath: string, language: Language, line: number)
| 2102 | ]); |
| 2103 | |
| 2104 | export 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. */ |
| 2112 | export async function returnsInSource(source: string, language: Language, line: number): Promise<ReturnSite[]> { |
no test coverage detected