class RuboCop::NodePattern::Compiler

def compile_seq_terms_with_size(tokens, cur_node)

def compile_seq_terms_with_size(tokens, cur_node)
  index = nil
  terms = []
  until tokens.first == ')'
    yield tokens.first, terms, index || 0
    term, index = compile_expr_with_index(tokens, cur_node, index)
    terms << term
  end
  tokens.shift # drop concluding )
  [terms, index]
end