Sha256: 190e726cfee4502194e50bddd3060f488d49aea3456a00ef3e00924285449e01

Contents?: true

Size: 746 Bytes

Versions: 41

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

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

          ATTRIBUTE_RANGE = (0..-2).freeze

          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

41 entries across 41 versions & 1 rubygems

Version Path
mutant-0.11.5 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.4 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.3 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.2 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.1 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.11.0 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.35 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.34 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.33 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.32 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.31 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.30 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.29 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.28 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.27 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.26 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.25 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.24 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.23 lib/mutant/mutator/node/send/attribute_assignment.rb
mutant-0.10.22 lib/mutant/mutator/node/send/attribute_assignment.rb