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

Method clear_context

atomic-core/src/apply/workspace.rs:487–492  ·  view source on GitHub ↗

Clear context positions (up and down).

(&mut self)

Source from the content-addressed store, hash-verified

485
486 /// Clear context positions (up and down).
487 pub fn clear_context(&mut self) {
488 self.predecessors.clear();
489 self.successors.clear();
490 self.predecessor_vertices.clear();
491 self.successor_vertices.clear();
492 }
493
494 /// Register a vertex inserted during the current change.
495 pub fn register_current_vertex(&mut self, node: GraphNode<NodeId>) {

Callers 3

write_new_vertexFunction · 0.80

Calls 1

clearMethod · 0.65

Tested by 2