Class: DeepCover::Node::Masgn

Inherits:
DeepCover::Node show all
Defined in:
lib/deep_cover/node/assignments.rb

Overview

a, b = …

Defined Under Namespace

Classes: BackwardsNode, ConstantAssignment, ConstantCbase, ConstantScopeWrapper, DynamicReceiverWrap, LeftSide, SelfReceiver, Setter, Splat, VariableAssignment

Constant Summary collapse

BASE_MAP =
{
  cvasgn: VariableAssignment, gvasgn: VariableAssignment,
  ivasgn: VariableAssignment, lvasgn: VariableAssignment,
  casgn: ConstantAssignment,
  send: Setter,
}.freeze

Constants inherited from DeepCover::Node

And, CLASSES, Complex, Cvasgn, Dsym, Erange, Float, Int, Ivar, Kwarg, Kwoptarg, Kwrestarg, OrAsgn, Rational, Sym, True, Zsuper

Instance Attribute Summary

Attributes inherited from DeepCover::Node

#base_node, #children, #index, #next_sibling, #parent, #previous_sibling

Instance Method Summary collapse

Methods inherited from DeepCover::Node

[], #[], atom, #children_nodes, #covered_code, #each_node, #fancy_type, #find_all, has_evaluated_segments, inherited, #initialize, #to_s, #type

Methods included from Memoize

#freeze, included

Constructor Details

This class inherits a constructor from DeepCover::Node

Instance Method Details

#children_nodes_in_flow_orderObject



175
176
177
# File 'lib/deep_cover/node/assignments.rb', line 175

def children_nodes_in_flow_order
  [value, left]
end

#execution_countObject



171
172
173
# File 'lib/deep_cover/node/assignments.rb', line 171

def execution_count
  value.flow_completion_count
end