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