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

def use_index_from_end

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

def use_index_from_end: () -> Integer?

This signature was generated using 3 samples from 1 application.

returns truthy iff `@cur_index` switched to relative from end mode (i.e. < 0)
def use_index_from_end
  return if @cur_index == :seq_head || @remaining_arity.begin != @remaining_arity.max
  @cur_index = -@remaining_arity.begin - DELTA
end