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

Method renderSpan

src/mcp/tools.ts:6086–6089  ·  view source on GitHub ↗
(r: ExploreLineRange)

Source from the content-addressed store, hash-verified

6084 const served = dedupEnabled ? servedRangesForFile(priorCalls, filePath, fingerprint) : [];
6085 /** Render one line span exactly as the render paths do. */
6086 const renderSpan = (r: ExploreLineRange): string => {
6087 const slice = fileLines.slice(r.start - 1, r.end).join('\n');
6088 return withLineNumbers ? numberSourceLines(slice, r.start) : slice;
6089 };
6090 /**
6091 * Apply the session history to a set of spans-with-text. A span the agent
6092 * already holds is dropped and reported in `covered`; a partially-held one

Callers

nothing calls this directly

Calls 2

numberSourceLinesFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected