Create a semantic edit against a span projection without fabricating a historical trunk. The repository must validate the baseline against the dependency closure and apply the corresponding span operations.
(
path: String,
file: crate::change::span_patch::ExternalFile,
baseline: crate::change::span_patch::SpanProjectionId,
)
| 218 | /// historical trunk. The repository must validate the baseline against the |
| 219 | /// dependency closure and apply the corresponding span operations. |
| 220 | pub fn projected_span_edit( |
| 221 | path: String, |
| 222 | file: crate::change::span_patch::ExternalFile, |
| 223 | baseline: crate::change::span_patch::SpanProjectionId, |
| 224 | ) -> Self { |
| 225 | Self { |
| 226 | trunk_id: TrunkId::ROOT, |
| 227 | path, |
| 228 | trunk_op: Some(TrunkOp::ProjectedSpanEdit { file, baseline }), |
| 229 | line_ops: Vec::new(), |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | /// Returns the trunk ID. |
| 234 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected