Creates a new line operation with line numbers.
(
branch_id: BranchId,
operation: BranchOp,
old_line_num: Option<usize>,
new_line_num: Option<usize>,
)
| 612 | |
| 613 | /// Creates a new line operation with line numbers. |
| 614 | pub fn new_with_line_nums( |
| 615 | branch_id: BranchId, |
| 616 | operation: BranchOp, |
| 617 | old_line_num: Option<usize>, |
| 618 | new_line_num: Option<usize>, |
| 619 | ) -> Self { |
| 620 | Self { |
| 621 | branch_id, |
| 622 | operation, |
| 623 | old_line_num, |
| 624 | new_line_num, |
| 625 | content_range: None, |
| 626 | } |
| 627 | } |
| 628 | |
| 629 | /// Creates a line insert operation with leaf operations. |
| 630 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected