(symbols: CodeSymbol[], parentName?: string)
| 383 | } |
| 384 | |
| 385 | export function flattenSymbols(symbols: CodeSymbol[], parentName?: string): SymbolLocation[] { |
| 386 | const out: SymbolLocation[] = []; |
| 387 | for (const sym of symbols) { |
| 388 | out.push({ |
| 389 | name: sym.name, |
| 390 | kind: sym.kind, |
| 391 | line: sym.line, |
| 392 | endLine: sym.endLine, |
| 393 | signature: sym.signature, |
| 394 | parentName, |
| 395 | }); |
| 396 | if (sym.children.length > 0) { |
| 397 | out.push(...flattenSymbols(sym.children, sym.name)); |
| 398 | } |
| 399 | } |
| 400 | return out; |
| 401 | } |
no outgoing calls
no test coverage detected