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

def sync

yield `sync_code` iff not already in sync
def sync
  return if @in_sync
  code = compile_loop_advance("= #{compile_cur_index}")
  @in_sync = true
  yield code
end