Create a pair with only a GRAPH section (no semantic layer). This is used for thin changes or when the semantic layer will be regenerated later.
(
path: String,
ops: Vec<CompactGraphOp>,
content_start: u64,
content_end: u64,
)
| 577 | /// This is used for thin changes or when the semantic layer will |
| 578 | /// be regenerated later. |
| 579 | pub fn graph_only( |
| 580 | path: String, |
| 581 | ops: Vec<CompactGraphOp>, |
| 582 | content_start: u64, |
| 583 | content_end: u64, |
| 584 | ) -> Self { |
| 585 | Self { |
| 586 | graph: Some(GraphSectionPayload::new( |
| 587 | path.clone(), |
| 588 | ops, |
| 589 | content_start, |
| 590 | content_end, |
| 591 | )), |
| 592 | semantic: None, |
| 593 | path, |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | /// Create a pair with only a SEMANTIC section (no graph layer). |
| 598 | /// |