class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler

def visit_any_order

def visit_any_order
  within_loop do
    compiler.with_temp_variables do |matched|
      case_terms = compile_any_order_branches(matched)
      else_code, init = compile_any_order_else
      term = "#{compile_case(case_terms, else_code)} && #{compile_loop_advance}"
      all_matched_check = "&&\n#{matched}.size == #{node.term_nodes.size}" if node.rest_node
      <<~RUBY
        (#{init}#{matched} = {}; true) &&
        #{compile_loop(term)} #{all_matched_check} \\
      RUBY
    end
  end
end