class Mutest::Mutator::Node::Index::Assign
Mutator
for index assignments
Constants
- REGULAR_RANGE
Private Instance Methods
dispatch()
click to toggle source
Emit mutations
@return [undefined]
Calls superclass method
# File lib/mutest/mutator/node/index.rb, line 97 def dispatch super() return if asgn_left? emit_index_read emit(children.last) mutate_child(children.length.pred) end
emit_index_read()
click to toggle source
Emit index read
@return [undefined]
# File lib/mutest/mutator/node/index.rb, line 110 def emit_index_read emit(s(:index, receiver, *children[index_range])) end
index_range()
click to toggle source
Index
indices
@return [Range<Integer>]
# File lib/mutest/mutator/node/index.rb, line 117 def index_range if asgn_left? NO_VALUE_RANGE else REGULAR_RANGE end end