(
local: Local,
encoding: Option<Encoding>,
old_start: usize,
new_start: usize,
new_len: usize,
)
| 135 | /// * `new_len` - Number of lines in new content |
| 136 | #[must_use] |
| 137 | pub fn new_edit_with_lines( |
| 138 | local: Local, |
| 139 | encoding: Option<Encoding>, |
| 140 | old_start: usize, |
| 141 | new_start: usize, |
| 142 | new_len: usize, |
| 143 | ) -> Self { |
| 144 | Self { |
| 145 | kind: BuiltHunkKind::Insert, |
| 146 | local, |
| 147 | encoding, |
| 148 | content_start: None, |
| 149 | content_end: None, |
| 150 | deleted_lines: Vec::new(), |
| 151 | old_start, |
| 152 | new_start, |
| 153 | new_len, |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | /// Create a new deletion graph_op. |
| 158 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected