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

Method cutNoteOf

src/mcp/tools.ts:7337–7341  ·  view source on GitHub ↗
(p: SectionPart, next: SectionPart | undefined, end: number)

Source from the content-addressed store, hash-verified

7335 * the member's lines from there to the next part shown, or to its end.
7336 */
7337 const cutNoteOf = (p: SectionPart, next: SectionPart | undefined, end: number): string => {
7338 const cut = p.cut!;
7339 const holeEnd = Math.min(cut.hostEnd, next ? next.range.start - 1 : Infinity);
7340 return holeEnd > end ? elidedBodyNote(filePath, cut.host, end + 1, holeEnd) : '';
7341 };
7342 /**
7343 * Each cut part's note written again from its `cut`, for after a part
7344 * behind it was dropped: the hole it names now runs on to the next part

Callers

nothing calls this directly

Calls 1

elidedBodyNoteFunction · 0.85

Tested by

no test coverage detected