Sha256: 9fccb70582f070bdcc670314ae281021f42ee141d1cee689678e375997cb7410
Contents?: true
Size: 541 Bytes
Versions: 79
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true module Mutant class Mutator class Node # Mutation emitter to handle const nodes class Const < self handle(:const) 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.instance_of?(::Parser::AST::Node) end end end # Const end # Node end # Mutator end # Mutant
Version data entries
79 entries across 79 versions & 1 rubygems