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

def visit_capture

def visit_capture
  return visit_other_type if node.child.arity == 1
  storage = compiler.next_capture
  term = compile(node.child)
  capture = "#{@seq_var}.children[#{compile_matched(:range)}]"
  "#{term} && (#{storage} = #{capture})"
end