27 lines
506 B
Ruby
27 lines
506 B
Ruby
module Mutant
|
|
class Mutator
|
|
class Node
|
|
module NamedValue
|
|
|
|
# Mutation emitter to handle named value access nodes
|
|
class Access < Node
|
|
|
|
handle(:gvar, :cvar, :ivar, :lvar, :const, :self)
|
|
|
|
private
|
|
|
|
# Emit mutations
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
emit_nil
|
|
end
|
|
|
|
end # Access
|
|
end # NamedValue
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|