2012-12-06 15:30:28 -05:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
|
|
|
# Mutator that does not do mutations on ast
|
|
|
|
class Noop < self
|
|
|
|
|
|
|
|
# Literal references to self do not need to be mutated?
|
2013-06-04 04:25:13 -04:00
|
|
|
handle(
|
|
|
|
:self, :zsuper, :not, :or, :and, :defined,
|
|
|
|
:next, :break, :match, :gvar, :cvar, :ensure, :rescue,
|
|
|
|
:dstr, :dsym, :yield, :begin, :rescue
|
|
|
|
)
|
2013-04-17 23:31:21 -04:00
|
|
|
|
2012-12-06 15:30:28 -05:00
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
# noop
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|