class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
def compile_remaining
Experimental RBS support (using type sampling data from the type_fusion
project).
def compile_remaining: () -> String
This signature was generated using 3 samples from 1 application.
def compile_remaining offset = case @cur_index when :seq_head ' + 1' when :variadic_mode " - #{@cur_index_var}" when 0 '' when POSITIVE " - #{@cur_index}" else # odd compiling condition, result may not be expected # E.g: `(... {a | b c})` => the b c branch can never match return - (@cur_index + DELTA) end "#{@seq_var}.children.size #{offset}" end