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

Function formatSymbolNotFound

src/bin/codegraph.ts:431–435  ·  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

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

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected