class TypeProf::ExecutionPoint

Attributes

ctx[R]
outer[R]
pc[R]

Public Class Methods

new(ctx, pc, outer) click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 93
def initialize(ctx, pc, outer)
  @ctx = ctx
  @pc = pc
  @outer = outer
end

Public Instance Methods

absolute_path() click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 125
def absolute_path
  @ctx.iseq.absolute_path
end
detailed_source_location() click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 121
def detailed_source_location
  @ctx.detailed_source_location(@pc)
end
jump(pc) click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 105
def jump(pc)
  ExecutionPoint.new(@ctx, pc, @outer)
end
key() click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 99
def key
  [@ctx.iseq, @pc]
end
next() click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 109
def next
  ExecutionPoint.new(@ctx, @pc + 1, @outer)
end
replace_cref(cref) click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 113
def replace_cref(cref)
  ExecutionPoint.new(@ctx.replace_cref(cref), @pc, @outer)
end
source_location() click to toggle source
# File typeprof-0.21.9/lib/typeprof/analyzer.rb, line 117
def source_location
  @ctx.source_location(@pc)
end