Sha256: c5d6e75635f59a2fa7d067909b360db1b21abe8c52fc133cbecae158fe56c2b6
Contents?: true
Size: 574 Bytes
Versions: 8
Compression:
Stored size: 574 Bytes
Contents
module Mutest 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 # Mutest
Version data entries
8 entries across 8 versions & 1 rubygems