Sha256: ebb0458a7f1986e13d1e1a02c75496fc4d6c24f7c2c9f02a1415d7ea345b34bf

Contents?: true

Size: 619 Bytes

Versions: 23

Compression:

Stored size: 619 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(right) unless right.type == :splat
            emit_right_mutations
          end

        end # Binary

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mutant-0.5.9 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.8 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.7 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.6 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.5 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.4 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.3 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.2 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.1 lib/mutant/mutator/node/send/binary.rb
mutant-0.5.0 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.6 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.5 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.4 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.3 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.2 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.1 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.0 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.0.rc5 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.0.rc4 lib/mutant/mutator/node/send/binary.rb
mutant-0.3.0.rc3 lib/mutant/mutator/node/send/binary.rb