(
line: string,
isFirstOrLast: boolean,
{
commonColor,
commonIndicator,
commonLineTrailingSpaceColor,
emptyFirstOrLastLinePlaceholder,
}: DiffOptionsNormalized,
)
| 76 | } |
| 77 | |
| 78 | function printCommonLine( |
| 79 | line: string, |
| 80 | isFirstOrLast: boolean, |
| 81 | { |
| 82 | commonColor, |
| 83 | commonIndicator, |
| 84 | commonLineTrailingSpaceColor, |
| 85 | emptyFirstOrLastLinePlaceholder, |
| 86 | }: DiffOptionsNormalized, |
| 87 | ): string { |
| 88 | return printDiffLine( |
| 89 | line, |
| 90 | isFirstOrLast, |
| 91 | commonColor, |
| 92 | commonIndicator, |
| 93 | commonLineTrailingSpaceColor, |
| 94 | emptyFirstOrLastLinePlaceholder, |
| 95 | ) |
| 96 | } |
| 97 | |
| 98 | // In GNU diff format, indexes are one-based instead of zero-based. |
| 99 | function createPatchMark( |
no test coverage detected