Skip to main content

resolution_wire

Function resolution_wire 

Source
fn resolution_wire(
    anchor: &ReviewAnchor,
    files: &[FileContent],
    trusted: bool,
    whole: Option<&HashMap<(String, ReviewSide), WholeFile>>,
) -> Option<ThreadResolutionWire>
Expand description

One anchor placed against the bounded content the record carries. With trusted the line number is evidence too, because the branch-ahead layer is the numbering the anchor was written in - the same trust a view’s overlay extends to its own home scope. Untrusted, the placement is earned by content and neighbours alone.

whole is the file held for a line the hunks do not carry, and None for a commit-scoped thread, whose numbering belongs to its own commit and must not borrow the branch’s read. A read cut before the anchored line cannot answer, and answers no landing rather than Gone.