123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::TypedContext

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
Inherits: Object
Defined in: lib/typeprof/analyzer.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(caller_ep, mid) ⇒ TypedContext

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 54

def initialize(caller_ep, mid)
  @caller_ep = caller_ep
  @mid = mid
end

Instance Attribute Details

#caller_ep (readonly)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 59

attr_reader :caller_ep, :mid

#mid (readonly)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 59

attr_reader :caller_ep, :mid

Instance Method Details

#replace_cref(cref)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 69

def replace_cref(cref)
  # What to do?
end

#source_location(_pc)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 61

def source_location(_pc)
  if @caller_ep
    @caller_ep.source_location
  else
    "<typed-context:#{ @mid }>"
  end
end