class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter

def tsort_each_child(assignment)

def tsort_each_child(assignment)
  # yield all the assignments which must come after `assignment`
  # (due to dependencies on the previous value of the assigned var)
  my_lhs, _my_rhs = *assignment
  @assignments.each do |other|
    _other_lhs, other_rhs = *other
    next unless dependency?(my_lhs, other_rhs)
    yield other
  end
end