Class: TypeProf::ExecutionPoint
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
|
|
Inherits: | Object |
Defined in: | lib/typeprof/analyzer.rb |
Class Method Summary
- .new(ctx, pc, outer) ⇒ ExecutionPoint constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(ctx, pc, outer) ⇒ ExecutionPoint
Instance Attribute Details
#ctx (readonly)
[ GitHub ]#outer (readonly)
[ GitHub ]#pc (readonly)
[ GitHub ]Instance Method Details
#jump(pc)
[ GitHub ]#key
[ GitHub ]# File 'lib/typeprof/analyzer.rb', line 83
def key [@ctx.iseq, @pc] end
#next
[ GitHub ]# File 'lib/typeprof/analyzer.rb', line 93
def next ExecutionPoint.new(@ctx, @pc + 1, @outer) end
#replace_cref(cref)
[ GitHub ]# File 'lib/typeprof/analyzer.rb', line 97
def replace_cref(cref) ExecutionPoint.new(@ctx.replace_cref(cref), @pc, @outer) end
#source_location
[ GitHub ]# File 'lib/typeprof/analyzer.rb', line 101
def source_location @ctx.source_location(@pc) end