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

Method register_current_vertex

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

Register a vertex inserted during the current change.

(&mut self, node: GraphNode<NodeId>)

Source from the content-addressed store, hash-verified

493
494 /// Register a vertex inserted during the current change.
495 pub fn register_current_vertex(&mut self, node: GraphNode<NodeId>) {
496 self.current_vertices_by_start
497 .insert(node.start_pos(), node);
498 self.current_vertices_by_end.insert(node.end_pos(), node);
499 }
500
501 /// Resolve a previously inserted current-change vertex from workspace state.
502 pub fn get_current_vertex(

Callers 1

write_new_vertexFunction · 0.80

Calls 3

insertMethod · 0.45
start_posMethod · 0.45
end_posMethod · 0.45

Tested by

no test coverage detected