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

Method cutNoteOf

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

Source from the content-addressed store, hash-verified

7313 * the member's lines from there to the next part shown, or to its end.
7314 */
7315 const cutNoteOf = (p: SectionPart, next: SectionPart | undefined, end: number): string => {
7316 const cut = p.cut!;
7317 const holeEnd = Math.min(cut.hostEnd, next ? next.range.start - 1 : Infinity);
7318 return holeEnd > end ? elidedBodyNote(filePath, cut.host, end + 1, holeEnd) : '';
7319 };
7320 /**
7321 * Each cut part's note written again from its `cut`, for after a part
7322 * 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