class TypeProf::TypedContext

Attributes

caller_ep[R]
mid[R]

Public Class Methods

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

Public Instance Methods

replace_cref(cref) click to toggle source
# File typeprof-0.15.2/lib/typeprof/analyzer.rb, line 69
def replace_cref(cref)
  # What to do?
end
source_location(_pc) click to toggle source
# File typeprof-0.15.2/lib/typeprof/analyzer.rb, line 61
def source_location(_pc)
  if @caller_ep
    @caller_ep.source_location
  else
    "<typed-context:#{ @mid }>"
  end
end