Skip to main content

find_mutation_targets

Function find_mutation_targets 

Source
pub fn find_mutation_targets(tokens: &[Token]) -> HashSet<usize>
Expand description

Span starts of tokens that a statement WRITES: Set <x> to … / Set … at <k> to …-style targets take the identifier nearest the write (the last one before to, or before at when a keyed write follows), Increase/Decrease <x>, Push/Add/Append … to <x>, Remove/Pop … from <x>.