(line string, lineType diffLineType, themeComponentID ThemeComponentID)
| 70 | } |
| 71 | |
| 72 | func 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 | |
| 83 | func newSectionedDiffLineData(sections []*diffLineSection, lineType diffLineType) *diffLineData { |
| 84 | diffLine := &diffLineData{ |
no test coverage detected