Get the local context for this graph_op, if any.
(&self)
| 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> { |