MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fold

Function fold

graph-ui/src/compiler/subject-resolver.ts:124–124  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

122 */
123export function subjectSpecificity(hit: SymbolSearchHit, name: string, exact: boolean): number {
124 const fold = (text: string): string => (exact ? text : text.toLowerCase());
125 const qualified = fold(hit.qualifiedName ?? '');
126 const wanted = fold(name);
127 const bare = fold(bareNameOf(name));

Callers 1

subjectSpecificityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected