Skip to main content

resolve_anchor

Function resolve_anchor 

Source
pub fn resolve_anchor(
    anchor: &ReviewAnchor,
    files: &[FileHunks],
    trust_line_number: bool,
) -> AnchorResolution
Expand description

Re-resolve anchor against a fresh files scan. trust_line_number says whether files is numbered the same way the anchor was recorded in. Only then does the recorded line carry information; from another scope’s diff that number addresses whatever happens to sit there, so the match has to be earned by content and neighbours like any other.