MCPcopy
hub / github.com/rgburke/grv / newDiffLineData

Function newDiffLineData

cmd/grv/diff_view.go:72–81  ·  view source on GitHub ↗
(line string, lineType diffLineType, themeComponentID ThemeComponentID)

Source from the content-addressed store, hash-verified

70}
71
72func newDiffLineData(line string, lineType diffLineType, themeComponentID ThemeComponentID) *diffLineData {
73 sections := []*diffLineSection{
74 &diffLineSection{
75 text: line,
76 themeComponentID: themeComponentID,
77 },
78 }
79
80 return newSectionedDiffLineData(sections, lineType)
81}
82
83func newSectionedDiffLineData(sections []*diffLineSection, lineType diffLineType) *diffLineData {
84 diffLine := &diffLineData{

Callers 6

newNormalDiffLineDataFunction · 0.85
fancy_diff_view.goFile · 0.85
processDiffMethod · 0.85
processDiffHeaderMethod · 0.85

Calls 1

newSectionedDiffLineDataFunction · 0.85

Tested by

no test coverage detected