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

Method cutNoteOf

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

Source from the content-addressed store, hash-verified

7257 * the member's lines from there to the next part shown, or to its end.
7258 */
7259 const cutNoteOf = (p: SectionPart, next: SectionPart | undefined, end: number): string => {
7260 const cut = p.cut!;
7261 const holeEnd = Math.min(cut.hostEnd, next ? next.range.start - 1 : Infinity);
7262 return holeEnd > end ? elidedBodyNote(filePath, cut.host, end + 1, holeEnd) : '';
7263 };
7264 /**
7265 * Each cut part's note written again from its `cut`, for after a part
7266 * 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