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

Function maxLineNumber

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

Source from the content-addressed store, hash-verified

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

Callers 1

renderMethod · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected