free_mutant/lib/mutant/mutator/node/literal.rb
Markus Schirp 02dee45458 Port literal float emitter to parser
Also simplify emitter for special float cases Nan, Inf, -Inf
2013-06-14 21:12:09 +02:00

27 lines
545 B
Ruby

module Mutant
class Mutator
class Node
# Abstract mutator for literal AST nodes
class Literal < self
include AbstractType
private
# Emit a new node with wrapping class for each entry in values
#
# @param [Array] values
#
# @return [undefined]
#
# @api private
#
def emit_values(values)
values.each do |value|
emit_self(value)
end
end
end # Literal
end # Node
end # Mutator
end # Mutant