2012-12-06 21:30:28 +01:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
|
|
|
class Define < self
|
|
|
|
|
2013-06-04 10:25:13 +02:00
|
|
|
handle(:define)
|
2012-12-06 21:30:28 +01:00
|
|
|
|
2012-12-10 17:26:56 +01:00
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
emit_attribute_mutations(:body)
|
|
|
|
emit_attribute_mutations(:arguments)
|
|
|
|
end
|
|
|
|
|
2013-06-04 10:25:13 +02:00
|
|
|
end # Define
|
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|