(noTrailingNewLine: boolean)
| 20 | ) {} |
| 21 | |
| 22 | public withNoTrailingNewLine(noTrailingNewLine: boolean): DiffLine { |
| 23 | return new DiffLine( |
| 24 | this.text, |
| 25 | this.type, |
| 26 | this.originalLineNumber, |
| 27 | this.oldLineNumber, |
| 28 | this.newLineNumber, |
| 29 | noTrailingNewLine |
| 30 | ) |
| 31 | } |
| 32 | |
| 33 | public isIncludeableLine() { |
| 34 | return this.type === DiffLineType.Add || this.type === DiffLineType.Delete |