Skip to main content

is_variable_reassignment

Function is_variable_reassignment 

Source
pub fn is_variable_reassignment(
    tree: &Tree,
    var_name: &str,
    use_range: Range,
    code: &str,
) -> bool
Expand description

Check if a variable usage is a reassignment (x = value or x := value after initial declaration)