MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / formatSymbolNotFound

Function formatSymbolNotFound

src/bin/codegraph.ts:429–433  ·  view source on GitHub ↗

"not found" (+ optional did-you-mean) when no exact symbol matches.

(symbol: string, fuzzyNames: string[])

Source from the content-addressed store, hash-verified

427
428/** "not found" (+ optional did-you-mean) when no exact symbol matches. */
429function formatSymbolNotFound(symbol: string, fuzzyNames: string[]): string {
430 const suggestions = [...new Set(fuzzyNames.filter((n) => n !== symbol))].slice(0, 3);
431 if (suggestions.length === 0) return `Symbol "${symbol}" not found`;
432 return `Symbol "${symbol}" not found — did you mean: ${suggestions.join(', ')}?`;
433}
434
435/** Compact node shape retained by the CLI's existing JSON lists. */
436function cliNode(node: Node) {

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected