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

Method get_parent

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

Get the parent of a position.

(&self, child: &Position<NodeId>)

Source from the content-addressed store, hash-verified

574
575 /// Get the parent of a position.
576 pub fn get_parent(&self, child: &Position<NodeId>) -> Option<Position<NodeId>> {
577 self.parents.get(child).copied()
578 }
579
580 /// Get the children of a position.
581 pub fn get_children(&self, parent: &Position<NodeId>) -> Option<&[Position<NodeId>]> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected