Sha256: acb01f273cae6d0debd54d393991a32bdbdd9fda2e9a04a86c1322c16c17db03
Contents?: true
Size: 682 Bytes
Versions: 52
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true module Mutant class Mutator class Node # Mutator for resbody nodes class Resbody < self handle(:resbody) children :captures, :assignment, :body private def dispatch emit_assignment(nil) emit_body_mutations if body mutate_captures end def mutate_captures return unless captures Util::Array::Element.call(captures.children).each do |matchers| next if matchers.any?(&method(:n_nil?)) emit_captures(s(:array, *matchers)) end end end # Resbody end # Node end # Mutator end # Mutant
Version data entries
52 entries across 52 versions & 1 rubygems