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

Function formatSymbolNotFound

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

408
409/** "not found" (+ optional did-you-mean) when no exact symbol matches. */
410function formatSymbolNotFound(symbol: string, fuzzyNames: string[]): string {
411 const suggestions = [...new Set(fuzzyNames.filter((n) => n !== symbol))].slice(0, 3);
412 if (suggestions.length === 0) return `Symbol "${symbol}" not found`;
413 return `Symbol "${symbol}" not found — did you mean: ${suggestions.join(', ')}?`;
414}
415
416/** Compact node shape retained by the CLI's existing JSON lists. */
417function cliNode(node: Node) {

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected