free_mutant/lib/mutant/mutator/node/and_asgn.rb
2013-09-07 23:57:47 -07:00

30 lines
435 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
# AndAsgn mutator
class AndAsgn < Generic
handle(:and_asgn)
children :left, :right
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
super
emit_nil
end
end # AndAsgn
end # Node
end # Mutator
end # Mutant