2013-07-23 02:54:54 -04:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
|
|
|
module NamedValue
|
|
|
|
|
2013-07-23 03:37:19 -04:00
|
|
|
# Mutation emitter to handle named value access nodes
|
2013-07-23 02:54:54 -04:00
|
|
|
class Access < Node
|
|
|
|
|
2013-07-24 00:57:39 -04:00
|
|
|
handle(:gvar, :cvar, :ivar, :lvar, :self)
|
2013-07-23 02:54:54 -04:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
2014-06-05 12:37:31 -04:00
|
|
|
emit_singletons
|
2013-07-23 02:54:54 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end # Access
|
|
|
|
end # NamedValue
|
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|