Sha256: 4e03b42c63215a32debaee2d8e758ad6be4a26c843fbd35dd06e61fe7c632869

Contents?: true

Size: 565 Bytes

Versions: 20

Compression:

Stored size: 565 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::Meta.for(node).assignment?
          end
        end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mutant-0.8.0 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.9 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.8 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.7 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.6 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.5 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.4 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.3 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.2 lib/mutant/mutator/node/or_asgn.rb
mutant-0.7.1 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.7 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.6 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.5 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.4 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.3 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.2 lib/mutant/mutator/node/or_asgn.rb
mutant-0.6.0 lib/mutant/mutator/node/or_asgn.rb
mutant-0.5.26 lib/mutant/mutator/node/or_asgn.rb
mutant-0.5.25 lib/mutant/mutator/node/or_asgn.rb
mutant-0.5.24 lib/mutant/mutator/node/or_asgn.rb