2012-07-26 19:25:23 +02:00
|
|
|
module Mutant
|
2014-08-07 09:00:31 -07:00
|
|
|
# An abstract context where mutations can be applied to.
|
2012-07-26 19:25:23 +02:00
|
|
|
class Context
|
2013-06-14 21:03:22 +02:00
|
|
|
include Adamantium::Flat, AbstractType, Concord::Public.new(:source_path)
|
2012-07-26 19:25:23 +02:00
|
|
|
|
2012-08-16 04:10:54 +02:00
|
|
|
# Return root ast node
|
2012-07-26 19:25:23 +02:00
|
|
|
#
|
2013-06-14 21:03:22 +02:00
|
|
|
# @param [Parser::AST::Node] node
|
2013-01-13 22:26:31 +01:00
|
|
|
#
|
2013-06-14 21:03:22 +02:00
|
|
|
# @return [Parser::AST::Node]
|
2012-07-26 19:25:23 +02:00
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
2012-08-03 01:28:15 +02:00
|
|
|
abstract_method :root
|
2012-08-14 12:26:56 +02:00
|
|
|
|
2013-01-13 22:27:03 +01:00
|
|
|
# Return identification
|
|
|
|
#
|
|
|
|
# @return [String]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
abstract_method :identification
|
|
|
|
|
2013-06-14 20:54:02 +02:00
|
|
|
end # Context
|
|
|
|
end # Mutant
|