8b7be8a565
Closes #39
30 lines
688 B
Ruby
30 lines
688 B
Ruby
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,
|
|
:lvar, :splat, :const, :blockarg, :block_pass,
|
|
:ivar, :restarg
|
|
)
|
|
|
|
private
|
|
|
|
# Emit mutations
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
end
|
|
|
|
end # Noop
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|