Class: Mutant::Mutator::Node

Inherits:
Mutant::Mutator show all
Includes:
AbstractType
Defined in:
lib/mutant/mutator/node.rb,
lib/mutant/mutator/node/noop.rb,
lib/mutant/mutator/node/send.rb,
lib/mutant/mutator/node/block.rb,
lib/mutant/mutator/node/define.rb,
lib/mutant/mutator/node/return.rb,
lib/mutant/mutator/node/iter_19.rb,
lib/mutant/mutator/node/literal.rb,
lib/mutant/mutator/node/arguments.rb,
lib/mutant/mutator/node/literal/nil.rb,
lib/mutant/mutator/node/if_statement.rb,
lib/mutant/mutator/node/literal/hash.rb,
lib/mutant/mutator/node/literal/array.rb,
lib/mutant/mutator/node/literal/float.rb,
lib/mutant/mutator/node/literal/range.rb,
lib/mutant/mutator/node/literal/regex.rb,
lib/mutant/mutator/node/receiver_case.rb,
lib/mutant/mutator/node/literal/fixnum.rb,
lib/mutant/mutator/node/literal/string.rb,
lib/mutant/mutator/node/literal/symbol.rb,
lib/mutant/mutator/node/literal/boolean.rb,
lib/mutant/mutator/node/literal/dynamic.rb,
lib/mutant/mutator/node/actual_arguments.rb,
lib/mutant/mutator/node/pattern_variable.rb,
lib/mutant/mutator/node/default_arguments.rb,
lib/mutant/mutator/node/pattern_arguments.rb,
lib/mutant/mutator/node/formal_arguments_19.rb,
lib/mutant/mutator/node/literal/empty_array.rb,
lib/mutant/mutator/node/local_variable_assignment.rb,
lib/mutant/mutator/node/formal_arguments_19/require_defaults.rb,
lib/mutant/mutator/node/formal_arguments_19/default_mutations.rb,
lib/mutant/mutator/node/formal_arguments_19/pattern_argument_expansion.rb

Overview

Abstract base class for node mutators

Defined Under Namespace

Classes: Arguments, Block, DefaultArguments, Define, DefineSingleton, FormalArguments19, IfStatement, Iter19, Literal, LocalVariableAssignment, Noop, PatternArguments, PatternVariable, ReceiverCase, Return, Send, When

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#input

Class Method Summary collapse

Methods inherited from Mutant::Mutator

each

Class Method Details

.identity(node) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return identity of node

Parameters:

  • node (Rubinius::AST::Node)

Returns:

  • (String)


16
17
18
# File 'lib/mutant/mutator/node.rb', line 16

def self.identity(node)
  ToSource.to_source(node)
end