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

Function countSymbols

src/tools/LSPTool/LSPTool.ts:518–526  ·  view source on GitHub ↗

* Counts the total number of symbols including nested children

(symbols: DocumentSymbol[])

Source from the content-addressed store, hash-verified

516 * Counts the total number of symbols including nested children
517 */
518function countSymbols(symbols: DocumentSymbol[]): number {
519 let count = symbols.length
520 for (const symbol of symbols) {
521 if (symbol.children && symbol.children.length > 0) {
522 count += countSymbols(symbol.children)
523 }
524 }
525 return count
526}
527
528/**
529 * Counts unique files from an array of locations

Callers 1

formatResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected