Sha256: b3e35f4c59f118c67fa7315088bb94c262f8cf40a7af6c3eafa45a3d07653719

Contents?: true

Size: 446 Bytes

Versions: 6

Compression:

Stored size: 446 Bytes

Contents

module Mutant
  class Mutator
    class Node
      # Mutator for return statements
      class Return < self

        handle(:return)

        children :value

      private

        # Emit mutations
        #
        # @return [undefined]
        def dispatch
          emit_singletons
          return unless value
          emit(value)
          emit_value_mutations
        end

      end # Return
    end # Node
  end # Mutator
end # Mutant

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/mutator/node/return.rb
mutant-0.8.15 lib/mutant/mutator/node/return.rb
mutant-0.8.14 lib/mutant/mutator/node/return.rb
mutant-0.8.13 lib/mutant/mutator/node/return.rb
mutant-0.8.12 lib/mutant/mutator/node/return.rb
mutant-0.8.11 lib/mutant/mutator/node/return.rb