Method: TypeProf::Core::AST::InstanceVariableReadNode#install0

Defined in:
lib/typeprof/core/ast/variable.rb

#install0(genv) ⇒ Object



86
87
88
89
90
91
92
93
94
# File 'lib/typeprof/core/ast/variable.rb', line 86

def install0(genv)
  case @lenv.cref.scope_level
  when :class, :instance
    box = @changes.add_ivar_read_box(genv, lenv.cref.cpath, lenv.cref.scope_level == :class, @var)
    @lenv.apply_ivar_narrowing(genv, self, @var, box.ret)
  else
    Source.new()
  end
end