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

def compile_terms(children = @seq.children, last_arity = 0..0)

def compile_terms(children = @seq.children, last_arity = 0..0)
  arities = remaining_arities(children, last_arity)
  total_arity = arities.shift
  guard = compile_child_nb_guard(total_arity)
  return guard if children.empty?
  @remaining_arity = total_arity
  terms = children.map do |child|
    use_index_from_end
    @remaining_arity = arities.shift
    handle_prev { compile(child) }
  end
  [guard, terms].join(" &&\n")
end