free_mutant/lib/mutant/mutator/node/noop.rb

29 lines
588 B
Ruby
Raw Normal View History

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?
handle(
:self, :zsuper, :not, :or, :and, :defined,
:next, :break, :match, :gvar, :cvar, :ensure, :rescue,
:dstr, :dsym, :yield, :begin, :rescue, :gvasgn
)
2013-04-17 23:31:21 -04:00
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
# noop
end
end
end
end
end