Sha256: bc07fbe4c20c1830a1b74e72fddb8fc9a090ce873dfbb5f34b690a2a16f77a2e
Contents?: true
Size: 609 Bytes
Versions: 7
Compression:
Stored size: 609 Bytes
Contents
module Mutant class Mutator class Node # Mutation emitter to handle const nodes class Const < self handle(:const) private # Emit mutations # # @return [undefined] # # @api private # 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.is_a?(Parser::AST::Node) end end end # Const end # Node end # Mutator end # Mutant
Version data entries
7 entries across 7 versions & 1 rubygems