class RuboCop::AST::CaseMatchNode
def branches
-
(Array
- an array of the bodies of the `in` branches)
def branches bodies = in_pattern_branches.map(&:body) if else? # `empty-else` node sets nil because it has no body. else_branch.empty_else_type? ? bodies.push(nil) : bodies.push(else_branch) end bodies end