class TypeProf::Context

Attributes

cref[R]
iseq[R]
mid[R]

Public Class Methods

new(iseq, cref, mid) click to toggle source
# File typeprof-0.15.2/lib/typeprof/analyzer.rb, line 30
def initialize(iseq, cref, mid)
  @iseq = iseq
  @cref = cref
  @mid = mid
end

Public Instance Methods

replace_cref(cref) click to toggle source
# File typeprof-0.15.2/lib/typeprof/analyzer.rb, line 46
def replace_cref(cref)
  Context.new(@iseq, cref, @mid)
end
source_location(pc) click to toggle source
# File typeprof-0.15.2/lib/typeprof/analyzer.rb, line 38
def source_location(pc)
  if @iseq
    @iseq.source_location(pc)
  else
    "<builtin>"
  end
end