Sha256: f51e3118afb95d229a4d8dc245309fa261b10656c1221e82d062d259cd5a3f1d
Contents?: true
Size: 609 Bytes
Versions: 29
Compression:
Stored size: 609 Bytes
Contents
# encoding: utf-8 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_nil unless parent_type == :const emit_self(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
29 entries across 29 versions & 1 rubygems