Creates a new line operation.
(branch_id: BranchId, operation: BranchOp)
| 39 | impl LineOps { |
| 40 | /// Creates a new line operation. |
| 41 | pub fn new(branch_id: BranchId, operation: BranchOp) -> Self { |
| 42 | Self { |
| 43 | branch_id, |
| 44 | operation, |
| 45 | token_ops: Vec::new(), |
| 46 | old_line_num: None, |
| 47 | new_line_num: None, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /// Creates a line insert operation with leaf operations. |
| 52 | pub fn insert(branch_id: BranchId, after: Option<BranchId>, leaf_ops: Vec<LeafOp>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected