Sha256: 594715a6b0c58ac8f2fce0ccd0983c584491caff2c6f7dd1632c10305b478df8
Contents?: true
Size: 435 Bytes
Versions: 28
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true module Reek module AST module SexpExtensions # Utility methods for :case nodes. module CaseNode def condition children.first end def body_nodes(type, ignoring = []) children[1..-1].compact.flat_map { |child| child.find_nodes(type, ignoring) } end def else_body children.last end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems