Class: SyntaxTree::YARV::DataFlowGraph::DataFlow

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/yarv/data_flow_graph.rb

Overview

This object represents the flow of data between instructions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataFlow

Returns a new instance of DataFlow.



24
25
26
27
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 24

def initialize
  @in = []
  @out = []
end

Instance Attribute Details

#inObject (readonly)

Returns the value of attribute in.



21
22
23
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 21

def in
  @in
end

#outObject (readonly)

Returns the value of attribute out.



22
23
24
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 22

def out
  @out
end