vendor/bundle/ruby/2.6.0/gems/rubocop-ast-1.18.0/lib/rubocop/ast/node/case_match_node.rb
# Returns an array of all the when branches in the `case` statement.
#
# @return [Array<Node, nil>] an array of the bodies of the `in` branches
# and the `else` (if any). Note that these bodies could be nil.
Returns an array of all the when branches in the `case` statement.
Returns an array of all the when branches in the ` case ` statement .
def branches
        bodies = in_pattern_branches.map(&:body)
        if else?
          else_branch.empty_else_type? ? bodies.push(nil) : bodies.push(else_branch)
        end
        bodies
      end
def branches bodies = in_pattern_branches . map ( & :body ) if else? else_branch . empty_else_type? ? bodies . push ( nil ) : bodies . push ( else_branch ) end bodies end
Returns an array of all the when branches in the `case` statement.
Returns an array of all the when branches in the ` case ` statement .
# `empty-else` node sets nil because it has no body.
an array of the bodies of the `in` branches and the `else` (if any). Note that these bodies could be nil.
an array of the bodies of the ` in ` branches and the ` else ` ( if any ) . Note that these bodies could be nil .
Array<Node, nil>