class RuboCop::AST::NodePattern::Compiler

def repeated_generator(expr, captured, accumulate)

def repeated_generator(expr, captured, accumulate)
  with_temp_variables do |child|
    lambda do |range|
      fail_due_to 'repeated pattern at beginning of sequence' if range.begin == SEQ_HEAD_INDEX
      REPEATED_TEMPLATE.result(binding)
    end
  end
end