* Maps SymbolKind enum to readable string
(kind: SymbolKind)
| 270 | * Maps SymbolKind enum to readable string |
| 271 | */ |
| 272 | function 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 |
no outgoing calls
no test coverage detected