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

Method renderSpan

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

Source from the content-addressed store, hash-verified

6028 const served = dedupEnabled ? servedRangesForFile(priorCalls, filePath, fingerprint) : [];
6029 /** Render one line span exactly as the render paths do. */
6030 const renderSpan = (r: ExploreLineRange): string => {
6031 const slice = fileLines.slice(r.start - 1, r.end).join('\n');
6032 return withLineNumbers ? numberSourceLines(slice, r.start) : slice;
6033 };
6034 /**
6035 * Apply the session history to a set of spans-with-text. A span the agent
6036 * 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