Sha256: 1dd76f1d0335cbaca04f147d4812edea78301a6f1953192749843843f400986e
Contents?: true
Size: 612 Bytes
Versions: 10
Compression:
Stored size: 612 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.kind_of?(Parser::AST::Node) end end end # Const end # Node end # Mutator end # Mutant
Version data entries
10 entries across 10 versions & 1 rubygems