class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
def compile_max_matched
def compile_max_matched return node.arity unless node.variadic? min_remaining_children = "#{compile_remaining} - #{@remaining_arity.begin}" return min_remaining_children if node.arity.end.infinite? "[#{min_remaining_children}, #{node.arity.max}].min" end