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

Function typeText

src/graph/branch-guards.ts:2331–2331  ·  view source on GitHub ↗
(n: SyntaxNode | null | undefined)

Source from the content-addressed store, hash-verified

2329 }
2330 if (!cls) return out;
2331 const typeText = (n: SyntaxNode | null | undefined): string => (n ? collapse(n.text).replace(/^:\s*/, '').trim() : '');
2332 const put = (name: string | null | undefined, type: string) => {
2333 if (name && type && !out.has(name)) out.set(name, type);
2334 };

Callers 2

visitParamsFunction · 0.85
memberTypesInTreeFunction · 0.85

Calls 1

collapseFunction · 0.70

Tested by

no test coverage detected