free_mutant/lib/mutant/mutator/node/super.rb
2013-01-01 23:28:21 +01:00

39 lines
681 B
Ruby

module Mutant
class Mutator
class Node
class ZSuper < self
handle(Rubinius::AST::ZSuper)
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_node(Rubinius::AST::Super, new(Rubinius::AST::ActualArguments))
end
end
class Super < self
handle(Rubinius::AST::Super)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_node(Rubinius::AST::ZSuper)
emit_attribute_mutations(:arguments)
end
end
end
end
end