free_mutant/lib/mutant/mutator/node/literal/symbol.rb

34 lines
626 B
Ruby
Raw Normal View History

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 mutatns
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_singletons
Mutator::Util::Symbol.each(value, self) do |value|
2014-06-03 03:51:22 +00:00
emit_type(value)
end
end
end # Symbol
end # Literal
end # Node
end # Mutator
end # Mutant