In Files

  • typeprof-0.12.0/lib/typeprof/analyzer.rb

Class/Module Index [+]

Quicksearch

TypeProf::Context

Attributes

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

Public Class Methods

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

Public Instance Methods

source_location(pc) click to toggle source
 
               # File typeprof-0.12.0/lib/typeprof/analyzer.rb, line 38
def source_location(pc)
  if @iseq
    @iseq.source_location(pc)
  else
    "<builtin>"
  end
end