class RuboCop::Cop::Performance::CaseWhenSplat

def when_branch_range(when_node)

def when_branch_range(when_node)
  next_branch = when_node.parent.when_branches[when_node.branch_index + 1]
  range_between(when_node.source_range.begin_pos, next_branch.source_range.begin_pos)
end