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

Method with_introduced_by

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

Create a pending edge with an introduced_by reference. # Arguments `from` - Source position `to` - Destination position `flag` - Edge flags `introduced_by` - The change that introduced this edge

(
        from: Position<NodeId>,
        to: Position<NodeId>,
        flag: EdgeFlags,
        introduced_by: NodeId,
    )

Source from the content-addressed store, hash-verified

121 /// * `flag` - Edge flags
122 /// * `introduced_by` - The change that introduced this edge
123 pub fn with_introduced_by(
124 from: Position<NodeId>,
125 to: Position<NodeId>,
126 flag: EdgeFlags,
127 introduced_by: NodeId,
128 ) -> Self {
129 Self {
130 from,
131 to,
132 flag,
133 introduced_by: Some(introduced_by),
134 }
135 }
136
137 /// Check if this is a deletion edge.
138 pub fn is_deletion(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected