MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / extractSignature

Function extractSignature

src/core/tree-sitter.ts:165–169  ·  view source on GitHub ↗
(node: TSNode)

Source from the content-addressed store, hash-verified

163}
164
165function extractSignature(node: TSNode): string {
166 const lines = node.text.split("\n");
167 const firstLine = lines[0].trim();
168 return firstLine.length > 150 ? firstLine.substring(0, 150) + "..." : firstLine;
169}
170
171function mapKind(typeStr: string): SymbolKind {
172 const kinds: Record<string, string> = {

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected