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

def compile_and_advance(term)

Experimental RBS support (using type sampling data from the type_fusion project).

def compile_and_advance: (String term) -> String

This signature was generated using 5 samples from 1 application.

def compile_and_advance(term)
  case @cur_index
  when :variadic_mode
    "#{term} && #{compile_loop_advance}"
  when :seq_head
    # @in_sync = false # already the case
    @cur_index = 0
    term
  else
    @in_sync = false
    @cur_index += 1
    term
  end
end