Sha256: 81d6a40f424310f51c298ff6810137dc582a21e13fa708c8b54bf238181a1369

Contents?: true

Size: 738 Bytes

Versions: 13

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

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

          ATTRIBUTE_RANGE = (..-2)

          private_constant(*constants(false))

        private

          def dispatch
            normal_dispatch
            emit_attribute_read
          end

          def mutate_arguments
            remaining_children_indices.each do |index|
              mutate_child(index)
            end
          end

          def emit_attribute_read
            emit_type(receiver, selector[ATTRIBUTE_RANGE].to_sym)
          end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.12.4 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.12.3 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.12.2 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.12.0 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.34 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.33 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.32 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.31 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.30 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.29 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.28 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.27 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.26 lib/mutant/mutator/node/send/attribute_assignment.rb