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