Module: YTLJit::VM::Node::TypeListWithSignature

Included in:
BaseNode
Defined in:
lib/ytljit/vm.rb

Instance Method Summary collapse

Instance Method Details

#add_type(sig, type, pos = 0) ⇒ Object



107
108
109
110
111
112
113
114
115
116
117
# File 'lib/ytljit/vm.rb', line 107

def add_type(sig, type, pos = 0)
  @type_list.add_type(sig, type, pos)
  if type.have_element? then
    if @my_element_node == nil then
      @my_element_node = BaseNode.new(self)
    end
    if @element_node_list == [] then
      @element_node_list = [[type, sig, @my_element_node, nil]]
    end
  end
end

#set_type_list(sig, val, pos = 1) ⇒ Object



103
104
105
# File 'lib/ytljit/vm.rb', line 103

def set_type_list(sig, val, pos = 1)
  @type_list.type_list(sig).value[pos] = val
end

#type_list(sig) ⇒ Object



99
100
101
# File 'lib/ytljit/vm.rb', line 99

def type_list(sig)
  @type_list.type_list(sig).value
end

#type_list_initvarObject



95
96
97
# File 'lib/ytljit/vm.rb', line 95

def type_list_initvar
  TypeUtil::TypeContainer.new
end