Class: SyntaxTree::YARV::DataFlowGraph::BlockArgument

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

Overview

This represents an object that goes on the stack that is passed between basic blocks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ BlockArgument

Returns a new instance of BlockArgument.



35
36
37
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 35

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



33
34
35
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 33

def name
  @name
end

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 39

def local?
  false
end

#to_strObject



43
44
45
# File 'lib/syntax_tree/yarv/data_flow_graph.rb', line 43

def to_str
  name.to_s
end