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

Function memberTypesForFile

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

Source from the content-addressed store, hash-verified

2295 * strip what they need).
2296 */
2297export async function memberTypesForFile(absPath: string, language: Language, line: number): Promise<Map<string, string>> {
2298 const out = new Map<string, string>();
2299 if (!supportsBranchGuards(language)) return out;
2300 const cached = await treeFor(absPath, language);
2301 if (!cached) return out;
2302 return memberTypesInTree(cached.tree.rootNode, cached.source, line);
2303}
2304
2305/** {@link memberTypesForFile} over source text — the test surface. */
2306export async function memberTypesInSource(source: string, language: Language, line: number): Promise<Map<string, string>> {

Callers 1

memberTypesFunction · 0.90

Calls 3

supportsBranchGuardsFunction · 0.85
treeForFunction · 0.85
memberTypesInTreeFunction · 0.85

Tested by

no test coverage detected