Skip to main content

structural_hash_excluding_range

Function structural_hash_excluding_range 

Source
pub fn structural_hash_excluding_range(
    node: Node<'_>,
    source: &[u8],
    exclude_start: usize,
    exclude_end: usize,
) -> String
Expand description

Compute a structural hash that excludes tokens within a given byte range. Used to strip the entity name from the hash so that renames of otherwise identical entities produce the same hash, enabling Phase 2 rename detection.