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

Method local

atomic-core/src/change/graph_op.rs:558–568  ·  view source on GitHub ↗

Get the local context for this graph_op, if any.

(&self)

Source from the content-addressed store, hash-verified

556
557 /// Get the local context for this graph_op, if any.
558 pub fn local(&self) -> Option<&Local> {
559 match self {
560 GraphOp::Edit { local, .. }
561 | GraphOp::Replacement { local, .. }
562 | GraphOp::SolveOrderConflict { local, .. }
563 | GraphOp::UnsolveOrderConflict { local, .. }
564 | GraphOp::ResurrectZombies { local, .. } => Some(local),
565
566 _ => None,
567 }
568 }
569
570 /// Get the line number for this graph_op, if applicable.
571 pub fn line(&self) -> Option<u64> {

Callers 1

lineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected