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,
|
2013-06-14 14:54:02 -04:00
|
|
|
:next, :break, :match, :gvar, :cvar, :ensure, :rescue,
|
2013-06-18 19:40:19 -04:00
|
|
|
:dstr, :dsym, :yield, :begin, :rescue, :gvasgn,
|
|
|
|
:lvar,
|
|
|
|
:const,
|
|
|
|
:blockarg,
|
|
|
|
:block_pass,
|
|
|
|
:ivar,
|
|
|
|
:restarg
|
2013-06-04 04:25:13 -04:00
|
|
|
)
|
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
|
|
|
|
end
|
2013-06-04 17:44:32 -04:00
|
|
|
|
2013-06-14 14:54:02 -04:00
|
|
|
end # Noop
|
2013-06-04 17:44:32 -04:00
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|