3ae85ea0f9
* Before Symbol#==, Symbol#eql?, and Symbol#equal? where used inconsistently * Lots of redundant foo.type.equal?(:symbol)
31 lines
515 B
Ruby
31 lines
515 B
Ruby
module Mutant
|
|
class Mutator
|
|
class Node
|
|
|
|
# OpAsgn mutator
|
|
class AndAsgn < self
|
|
|
|
handle(:and_asgn)
|
|
|
|
children :left, :right
|
|
|
|
private
|
|
|
|
# Emit mutations
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
emit_singletons
|
|
emit_left_mutations do |node|
|
|
!n_self?(node)
|
|
end
|
|
emit_right_mutations
|
|
end
|
|
|
|
end # AndAsgn
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|