MCPcopy Index your code
hub / github.com/codeaashu/claude-code / symbolKindToString

Function symbolKindToString

src/tools/LSPTool/formatters.ts:272–302  ·  view source on GitHub ↗

* Maps SymbolKind enum to readable string

(kind: SymbolKind)

Source from the content-addressed store, hash-verified

270 * Maps SymbolKind enum to readable string
271 */
272function symbolKindToString(kind: SymbolKind): string {
273 const kinds: Record<SymbolKind, string> = {
274 [1]: 'File',
275 [2]: 'Module',
276 [3]: 'Namespace',
277 [4]: 'Package',
278 [5]: 'Class',
279 [6]: 'Method',
280 [7]: 'Property',
281 [8]: 'Field',
282 [9]: 'Constructor',
283 [10]: 'Enum',
284 [11]: 'Interface',
285 [12]: 'Function',
286 [13]: 'Variable',
287 [14]: 'Constant',
288 [15]: 'String',
289 [16]: 'Number',
290 [17]: 'Boolean',
291 [18]: 'Array',
292 [19]: 'Object',
293 [20]: 'Key',
294 [21]: 'Null',
295 [22]: 'EnumMember',
296 [23]: 'Struct',
297 [24]: 'Event',
298 [25]: 'Operator',
299 [26]: 'TypeParameter',
300 }
301 return kinds[kind] || 'Unknown'
302}
303
304/**
305 * Formats a single DocumentSymbol with indentation

Callers 5

formatDocumentSymbolNodeFunction · 0.85
formatCallHierarchyItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected