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

Method constructor

src/native-ts/color-diff/index.ts:848–858  ·  view source on GitHub ↗
(
    hunk: Hunk,
    firstLine: string | null,
    filePath: string,
    prefixContent?: string | null,
  )

Source from the content-addressed store, hash-verified

846 private prefixContent: string | null
847
848 constructor(
849 hunk: Hunk,
850 firstLine: string | null,
851 filePath: string,
852 prefixContent?: string | null,
853 ) {
854 this.hunk = hunk
855 this.filePath = filePath
856 this.firstLine = firstLine
857 this.prefixContent = prefixContent ?? null
858 }
859
860 render(themeName: string, width: number, dim: boolean): string[] | null {
861 const mode = detectColorMode(themeName)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected