Move block_pass and cbase mutators into a noop class

This commit is contained in:
Dan Kubb 2013-07-28 13:25:43 -07:00
parent 25bc3b9bc0
commit dc417d1cc8
3 changed files with 6 additions and 32 deletions

View file

@ -57,13 +57,12 @@ require 'mutant/mutator/node/literal/nil'
require 'mutant/mutator/node/argument'
require 'mutant/mutator/node/arguments'
require 'mutant/mutator/node/begin'
require 'mutant/mutator/node/block_pass'
require 'mutant/mutator/node/cbase'
require 'mutant/mutator/node/connective/binary'
require 'mutant/mutator/node/const'
require 'mutant/mutator/node/named_value/access'
require 'mutant/mutator/node/named_value/constant_assignment'
require 'mutant/mutator/node/named_value/variable_assignment'
require 'mutant/mutator/node/noop'
require 'mutant/mutator/node/while'
require 'mutant/mutator/node/super'
require 'mutant/mutator/node/zsuper'

View file

@ -1,25 +0,0 @@
module Mutant
class Mutator
class Node
# Mutation emitter to handle block_pass nodes
class BlockPass < self
handle(:block_pass)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
# noop, for now
end
end # BlockPass
end # Node
end # Mutator
end # Mutant

View file

@ -2,10 +2,10 @@ module Mutant
class Mutator
class Node
# Mutation emitter to handle cbase nodes
class Cbase < self
# Mutation emitter to handle noop nodes
class Noop < self
handle(:cbase)
handle(:block_pass, :cbase)
private
@ -16,10 +16,10 @@ module Mutant
# @api private
#
def dispatch
# noop, for now
# noop
end
end # Cbase
end # Noop
end # Node
end # Mutator
end # Mutant