Sha256: b138156cb679e24fe7dbd5e316caf29696c6c434d485ff2cba44b74edb721d79

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node

      # Mutator for loop control keywords
      class Next < Generic

        handle(:next)

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          super
          emit_singletons
          children.each_index(&method(:delete_child))
          emit(s(:break, *children))
        end

      end # Next
    end # Node
  end # Mutator
end # Mutant

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mutant-0.5.19 lib/mutant/mutator/node/next.rb