345b67144a
* The const node has children, which need to be mutated
27 lines
498 B
Ruby
27 lines
498 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, :self)
|
|
|
|
private
|
|
|
|
# Emit mutations
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
emit_nil
|
|
end
|
|
|
|
end # Access
|
|
end # NamedValue
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|