Sha256: 1c05be0b4d1cb81bab663e5d974ae94ccf2f9dcf412315abbf582a1ac727448c
Contents?: true
Size: 850 Bytes
Versions: 17
Compression:
Stored size: 850 Bytes
Contents
# frozen_string_literal: true module Mutant class Mutator class Node class Literal # Abstract literal range mutator class Range < self MAP = { irange: :erange, erange: :irange }.freeze children :lower_bound, :upper_bound handle(*MAP.keys) private # Emit mutations # # @return [undefined] def dispatch emit_singletons emit_inverse emit_lower_bound_mutations emit_upper_bound_mutations end # Inverse node # # @return [Parser::AST::Node] def emit_inverse emit(s(MAP.fetch(node.type), *children)) end end # Range end # Literal end # Node end # Mutator end # Mutant
Version data entries
17 entries across 17 versions & 1 rubygems