Sha256: 6ae39cd80535f474e48bea44d9feaa660e54efa8e413559e399e304c6d56f893

Contents?: true

Size: 950 Bytes

Versions: 8

Compression:

Stored size: 950 Bytes

Contents

module Mutant
  class Mutator
    class Node
      class Send
        # Mutator for attribute assignments
        class AttributeAssignment < self

        private

          # Emit mutations
          #
          # @return [undefined]
          #
          # @api private
          def dispatch
            normal_dispatch
            emit_attribute_read
          end

          # Mutate arguments
          #
          # @return [undefined]
          #
          # @api private
          def mutate_arguments
            remaining_children_indices.each do |index|
              mutate_child(index)
            end
          end

          # Emit attribute read
          #
          # @return [undefined]
          #
          # @api private
          def emit_attribute_read
            emit_type(receiver, selector.to_s[0..-2].to_sym)
          end

        end # AttributeAssignment
      end # Send
    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/send/attribute_assignment.rb
mutant-0.8.7 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.8.6 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.8.5 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.8.4 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.8.3 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.8.2 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.8.1 lib/mutant/mutator/node/send/attribute_assignment.rb