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 62

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 67

attr_reader :caller_ep, :mid

#mid (readonly)

[ GitHub ]

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

attr_reader :caller_ep, :mid

Instance Method Details

#detailed_source_location(_pc)

[ GitHub ]

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

def detailed_source_location(_pc)
  if @caller_ep
    @caller_ep.source_location
  else
    nil
  end
end

#replace_cref(cref)

[ GitHub ]

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

def replace_cref(cref)
  # What to do?
end

#source_location(_pc)

[ GitHub ]

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

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