Class: TypeProf::StaticEnv
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
|
|
Inherits: | Object |
Defined in: | lib/typeprof/analyzer.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(recv_ty, blk_ty, mod_func, pub_meth) ⇒ StaticEnv
# File 'lib/typeprof/analyzer.rb', line 109
def initialize(recv_ty, blk_ty, mod_func, pub_meth) @recv_ty = recv_ty @blk_ty = blk_ty @mod_func = mod_func @pub_meth = pub_meth return if recv_ty == :top #OK recv_ty.each_child_global do |ty| raise ty.inspect if !ty.is_a?(Type::Instance) && !ty.is_a?(Type::Class) && !ty.is_a?(Type::Symbol) && ty != Type.any end end