Sha256: 4dc059f8567ad0da4b66b3bd9098312074cee6e6084fa9dc8d389897fd16e055
Contents?: true
Size: 680 Bytes
Versions: 7
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module Mutant class Mutator class Node class ProcargZero < self MAP = { ::Parser::AST::Node => :emit_argument_node_mutations, Symbol => :emit_argument_symbol_mutations }.freeze private_constant(*constants(false)) handle :procarg0 children :argument private # Emit mutations # # @return [undefined] def dispatch name = Mutant::Util.one(argument.children) emit_type(s(:arg, :"_#{name}")) unless name.to_s.start_with?('_') end end # ProcargZero end # Node end # Mutator end # Mutant
Version data entries
7 entries across 7 versions & 1 rubygems