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

Method read

src/db/queries.ts:4735–4741  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4733 */
4734 private fuzzyNames(): { names: string[]; lowered: string; starts: Int32Array } {
4735 const read = (): { names: string[]; lowered: string; starts: Int32Array } => {
4736 const names = this.getAllNodeNames();
4737 const lowered = names.map((name) => name.toLowerCase());
4738 const starts = new Int32Array(names.length + 1);
4739 for (let i = 0; i < lowered.length; i++) starts[i + 1] = starts[i]! + lowered[i]!.length + 1;
4740 return { names, lowered: lowered.join('\n') + '\n', starts };
4741 };
4742 return this.memoizedRead('fuzzyNames', read) ?? read();
4743 }
4744

Callers

nothing calls this directly

Calls 5

getAllNodeNamesMethod · 0.95
mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected