(&self)
| 177 | /// or new line number for insertions. |
| 178 | #[must_use] |
| 179 | pub fn display_line(&self) -> u64 { |
| 180 | // Convert to 1-indexed for display |
| 181 | match self.kind { |
| 182 | PendingChangeKind::Insert => (self.new_start + 1) as u64, |
| 183 | PendingChangeKind::Delete | PendingChangeKind::Replace => (self.old_start + 1) as u64, |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | /// Check if this change can be combined with another. |
| 188 | /// |