2012-07-31 22:03:36 +02:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
2012-08-01 14:13:57 +02:00
|
|
|
# Mutator that does do not mutations on ast
|
2012-08-09 23:07:22 +02:00
|
|
|
class Noop < self
|
2012-07-31 22:03:36 +02:00
|
|
|
|
2012-08-01 14:13:57 +02:00
|
|
|
# Literal references to self do not need to be mutated.
|
2012-07-31 22:03:36 +02:00
|
|
|
handle(Rubinius::AST::Self)
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
# noop
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|