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

Function mapKind

src/core/tree-sitter.ts:171–179  ·  view source on GitHub ↗
(typeStr: string)

Source from the content-addressed store, hash-verified

169}
170
171function mapKind(typeStr: string): SymbolKind {
172 const kinds: Record<string, string> = {
173 function: "function", method: "method", class: "class",
174 struct: "struct", enum: "enum", interface: "interface",
175 type: "type", trait: "trait", const: "const", variable: "variable",
176 export: "export",
177 };
178 return (kinds[typeStr] ?? "function") as SymbolKind;
179}
180
181function walkTree(rootNode: TSNode, defTypes: Record<string, string>, maxDepth: number = 3): CodeSymbol[] {
182 const symbols: CodeSymbol[] = [];

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected