class RuboCop::AST::NodePattern::Node::Subsequence

def arity

def arity
  min, max = children.map(&:arity_range).map(&:minmax).transpose.map(&:sum)
  min == max ? min || 0 : min..max # NOTE: || 0 for empty case, where min == max == nil.
end