Sha256: d9a1e4f130941727931aa41378a0ad95a2dffc33e4f4b0dde6f9e77dcb69d73d

Contents?: true

Size: 556 Bytes

Versions: 10

Compression:

Stored size: 556 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__'

        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

10 entries across 10 versions & 1 rubygems

Version Path
mutant-0.9.8 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.7 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.6 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.5 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.4 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.3 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.2 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.1 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.9.0 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.24 lib/mutant/mutator/node/literal/symbol.rb