MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / maxLineNumber

Function maxLineNumber

src/native-ts/color-diff/index.ts:834–838  ·  view source on GitHub ↗
(hunk: Hunk)

Source from the content-addressed store, hash-verified

832// ---------------------------------------------------------------------------
833
834function maxLineNumber(hunk: Hunk): number {
835 const oldEnd = Math.max(0, hunk.oldStart + hunk.oldLines - 1)
836 const newEnd = Math.max(0, hunk.newStart + hunk.newLines - 1)
837 return Math.max(oldEnd, newEnd)
838}
839
840function parseMarker(s: string): Marker {
841 return s === '+' || s === '-' ? s : ' '

Callers 1

renderMethod · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected