class TypeProf::Context
Attributes
cref[R]
iseq[R]
mid[R]
Public Class Methods
new(iseq, cref, mid)
click to toggle source
# File typeprof-0.21.11/lib/typeprof/analyzer.rb, line 30 def initialize(iseq, cref, mid) @iseq = iseq @cref = cref @mid = mid end
Public Instance Methods
detailed_source_location(pc)
click to toggle source
# File typeprof-0.21.11/lib/typeprof/analyzer.rb, line 46 def detailed_source_location(pc) if @iseq @iseq.detailed_source_location(pc) else nil end end
replace_cref(cref)
click to toggle source
# File typeprof-0.21.11/lib/typeprof/analyzer.rb, line 54 def replace_cref(cref) Context.new(@iseq, cref, @mid) end
source_location(pc)
click to toggle source
# File typeprof-0.21.11/lib/typeprof/analyzer.rb, line 38 def source_location(pc) if @iseq @iseq.source_location(pc) else "<builtin>" end end