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

Method process_insert

atomic-core/src/record/workflow/graph_op/builder.rs:216–220  ·  view source on GitHub ↗

Process an insertion. # Arguments `old_index` - Position in old content (insertion point) `new_index` - Starting line in new content `new_len` - Number of lines inserted

(&mut self, old_index: usize, new_index: usize, new_len: usize)

Source from the content-addressed store, hash-verified

214 /// * `new_index` - Starting line in new content
215 /// * `new_len` - Number of lines inserted
216 pub fn process_insert(&mut self, old_index: usize, new_index: usize, new_len: usize) {
217 let change = PendingChange::insert(old_index, new_index, new_len);
218 self.add_pending(change);
219 self.new_line = new_index + new_len;
220 }
221
222 /// Process a deletion.
223 ///

Callers 6

test_builder_resetFunction · 0.80
process_diff_opMethod · 0.80

Calls 1

add_pendingMethod · 0.80

Tested by 5

test_builder_resetFunction · 0.64