2013-07-15 22:25:09 +02:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
2013-07-15 22:31:50 +02:00
|
|
|
# Mutator for splat nodes
|
2013-07-15 22:25:09 +02:00
|
|
|
class Splat < self
|
|
|
|
|
|
|
|
handle :splat
|
|
|
|
|
|
|
|
children :expression
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Perform dispatch
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
2014-06-05 16:37:31 +00:00
|
|
|
emit_singletons
|
2013-07-15 22:25:09 +02:00
|
|
|
emit_expression_mutations
|
|
|
|
emit(expression)
|
|
|
|
end
|
|
|
|
|
|
|
|
end # Splat
|
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|