3e1f9c408f
* Mutator and Generator where merged. * A single pass over all duplications was made. * It is clear a specific handles?(node) code for finding mutators is needed. Like virtus does for attributes, should also cache. * Does not pass on 1.9 mode currently as blocks are unexpectly parsed differend when it comes to a series of literal booleans.
17 lines
328 B
Ruby
17 lines
328 B
Ruby
module Mutant
|
|
# An abstract context where mutations can be appied to.
|
|
class Context
|
|
include Veritas::Immutable
|
|
extend Abstract
|
|
|
|
# Return root ast for mutated node
|
|
#
|
|
# @param [Rubinius::AST::Node] node
|
|
#
|
|
# @return [Rubinis::AST::Script]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract :root
|
|
end
|
|
end
|