Move block_pass and cbase mutators into a noop class
This commit is contained in:
parent
25bc3b9bc0
commit
dc417d1cc8
3 changed files with 6 additions and 32 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue