Sha256: 88522d9205de62d266315da1591d85e05637650f0719c44eee5acf371873ef3d
Contents?: true
Size: 868 Bytes
Versions: 6
Compression:
Stored size: 868 Bytes
Contents
module Mutant class Mutator class Node # Mutator for begin nodes class Begin < self handle(:begin) private # Emit mutants # # @return [undefined] # # @api private # def dispatch Util::Array.each(children, self, &method(:emit_child_subset)) children.each_with_index do |child, index| mutate_child(index) emit(child) unless children.eql?([child]) end end # Emit child subset # # @param [Array<Parser::AST::Node>] children # # @return [undefined] # # @api private # def emit_child_subset(children) return if children.length < 2 emit_type(*children) end end # Block end # Node end # Mutator end # Mutant
Version data entries
6 entries across 6 versions & 1 rubygems