Sha256: 83cde5df31ab31321c1657142d6d5ffb60674c567e950581f14ce2005f631610

Contents?: true

Size: 657 Bytes

Versions: 10

Compression:

Stored size: 657 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node
      class Send

        # Mutator for sends that correspond to a binary operator
        class Binary < self

          children :left, :operator, :right

        private

          # Emit mutations
          #
          # @return [undefined]
          #
          # @api private
          #
          def dispatch
            emit(left)
            emit_left_mutations
            emit_selector_replacement
            emit(right) unless right.type == :splat
            emit_right_mutations
          end

        end # Binary

      end # Send
    end # Node
  end # Mutator
end # Mutant

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mutant-0.5.19 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.18 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.17 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.16 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.15 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.14 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.13 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.12 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.11 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.10 lib/mutant/mutator/node/send/binary.rb