Class: YTLJit::VM::Node::SendThreadPselfNode

Inherits:
SendNode
  • Object
show all
Defined in:
lib/ytl/thread.rb

Direct Known Subclasses

SendThreadCselfNode

Instance Method Summary collapse

Methods inherited from SendNode

#to_ruby

Instance Method Details

#collect_candidate_type_regident(context, slf) ⇒ Object



60
61
62
63
64
65
66
67
68
69
# File 'lib/ytl/thread.rb', line 60

def collect_candidate_type_regident(context, slf)
  cursig = context.to_signature
  slfcls = @arguments[2].decide_type_once(cursig)
  if slfcls.ruby_type == Runtime::Thread then
    add_type(cursig, slfcls.element_type[nil][0])
    context
  else
    super
  end
end