Sha256: f12edbdfe2de661fa7b51263ef9d82f78d9625dc65a775252ff0f7e368e30e18

Contents?: true

Size: 563 Bytes

Versions: 7

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Mutator
    class Node
      class Literal < self
        # Mutator for symbol literals
        class Symbol < self

          handle(:sym)

          children :value

          PREFIX = '__mutant__'.freeze

        private

          # Emit mutations
          #
          # @return [undefined]
          def dispatch
            emit_singletons
            Util::Symbol.call(value).each(&method(:emit_type))
          end

        end # Symbol
      end # Literal
    end # Node
  end # Mutator
end # Mutant

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.8.23 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.22 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.21 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.20 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.19 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.18 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.17 lib/mutant/mutator/node/literal/symbol.rb