Sha256: b7115ed4fd26cc6e8b126c9d9867cdb1b703053f80385bf06d2676403ac01f8b
Contents?: true
Size: 628 Bytes
Versions: 5
Compression:
Stored size: 628 Bytes
Contents
module Mutant class Mutator class Node module Regexp # Mutator for regexp capture groups, such as `/(foo)/` class CaptureGroup < Node handle(:regexp_capture_group) children :group # Emit mutations # # Replace `(captured_group)` with `(?:non_captured_group)` # # @return [undefined] def dispatch return unless group emit(s(:regexp_passive_group, group)) emit_group_mutations end end # EndOfLineAnchor end # Regexp end # Node end # Mutator end # Mutant
Version data entries
5 entries across 5 versions & 1 rubygems