Sha256: f906186d498028b0c7eb4187e5bb25ddb6f1967cb597c8ba9965c75388c66c5a

Contents?: true

Size: 490 Bytes

Versions: 24

Compression:

Stored size: 490 Bytes

Contents

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

24 entries across 24 versions & 1 rubygems

Version Path
mutant-0.8.0 lib/mutant/mutator/node/next.rb
mutant-0.7.9 lib/mutant/mutator/node/next.rb
mutant-0.7.8 lib/mutant/mutator/node/next.rb
mutant-0.7.7 lib/mutant/mutator/node/next.rb
mutant-0.7.6 lib/mutant/mutator/node/next.rb
mutant-0.7.5 lib/mutant/mutator/node/next.rb
mutant-0.7.4 lib/mutant/mutator/node/next.rb
mutant-0.7.3 lib/mutant/mutator/node/next.rb
mutant-0.7.2 lib/mutant/mutator/node/next.rb
mutant-0.7.1 lib/mutant/mutator/node/next.rb
mutant-0.6.7 lib/mutant/mutator/node/next.rb
mutant-0.6.6 lib/mutant/mutator/node/next.rb
mutant-0.6.5 lib/mutant/mutator/node/next.rb
mutant-0.6.4 lib/mutant/mutator/node/next.rb
mutant-0.6.3 lib/mutant/mutator/node/next.rb
mutant-0.6.2 lib/mutant/mutator/node/next.rb
mutant-0.6.0 lib/mutant/mutator/node/next.rb
mutant-0.5.26 lib/mutant/mutator/node/next.rb
mutant-0.5.25 lib/mutant/mutator/node/next.rb
mutant-0.5.24 lib/mutant/mutator/node/next.rb