6b2e2a8bb0
* Remove some RBX only nodes * Register parser types * Remove all occurences of ::Rubinius when loading libraries
27 lines
508 B
Ruby
27 lines
508 B
Ruby
module Mutant
|
|
class Mutator
|
|
class Node
|
|
class Literal < self
|
|
# Mutator for symbol literals
|
|
class Symbol < self
|
|
|
|
handle(:sym)
|
|
|
|
private
|
|
|
|
# Emit mutatns
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
emit_nil
|
|
emit_new { new_self(('s'+Random.hex_string).to_sym) }
|
|
end
|
|
|
|
end # Symbol
|
|
end # Literal
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|