class TypeProf::Core::EscapeBox::HashSplatBox::MAsgnBox::InstanceTypeBox
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/graph/box.rb, line 1090 def initialize(node, genv, singleton_ty_vtx) super(node) @singleton_ty_vtx = singleton_ty_vtx @ret = Vertex.new(node) genv.add_run(self) end
Calls superclass method
TypeProf::Core::Box::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/graph/box.rb, line 1099 def run0(genv, changes) instance_tys = [] @singleton_ty_vtx.each_type do |ty| instance_tys << ty.get_instance_type(genv) if ty.is_a?(Type::Singleton) end source_vtx = Source.new(*instance_tys) changes.add_edge(genv, source_vtx, @ret) end