2012-12-06 15:30:28 -05:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
|
|
|
# Abstract mutator for literal AST nodes
|
|
|
|
class Literal < self
|
|
|
|
include AbstractType
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2012-12-29 10:34:39 -05:00
|
|
|
# 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
|
|
|
|
|
2013-06-04 04:25:13 -04:00
|
|
|
end # Literal
|
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|