MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new_with_line_nums

Method new_with_line_nums

atomic-core/src/change/ops.rs:614–627  ·  view source on GitHub ↗

Creates a new line operation with line numbers.

(
        branch_id: BranchId,
        operation: BranchOp,
        old_line_num: Option<usize>,
        new_line_num: Option<usize>,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected