30 lines
452 B
Ruby
30 lines
452 B
Ruby
# encoding: utf-8
|
|
|
|
module Mutant
|
|
class Mutator
|
|
class Node
|
|
|
|
# OpAsgn mutator
|
|
class OpAsgn < Generic
|
|
|
|
handle(:op_asgn, :or_asgn, :and_asgn)
|
|
|
|
children :left, :right
|
|
|
|
private
|
|
|
|
# Emit mutations
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
super
|
|
emit_nil
|
|
end
|
|
|
|
end # OpAsgn
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|