Sha256: 030345e9c8368c236ec5e04c205ec6fcbfca92ffbda8d6b8a0a8a680fbdda4ff

Contents?: true

Size: 576 Bytes

Versions: 8

Compression:

Stored size: 576 Bytes

Contents

module Mutant
  class Mutator
    class Node

      # OpAsgn mutator
      class OrAsgn < self

        handle(:or_asgn)

        children :left, :right

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        def dispatch
          emit_singletons
          emit_right_mutations
          return if n_ivasgn?(left)
          emit_left_mutations do |node|
            AST::Types::ASSIGNABLE_VARIABLES.include?(node.type)
          end
        end

      end # OrAsgn
    end # Node
  end # Mutator
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.8 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.7 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.6 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.5 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.4 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.3 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.2 lib/mutant/mutator/node/or_asgn.rb
mutant-0.8.1 lib/mutant/mutator/node/or_asgn.rb