class Mutest::Mutator::Node::Const

Mutation emitter to handle const nodes

Private Instance Methods

dispatch() click to toggle source

Emit mutations

@return [undefined]

# File lib/mutest/mutator/node/const.rb, line 13
def dispatch
  emit_singletons unless parent_node && n_const?(parent_node)
  emit_type(nil, *children.drop(1))
  children.each_with_index do |child, index|
    mutate_child(index) if child.instance_of?(::Parser::AST::Node)
  end
end