Class: TypeProf::Core::AST::ItLocalVariableReadNode

Inherits:
Node
  • Object
show all
Defined in:
lib/typeprof/core/ast/variable.rb

Instance Attribute Summary

Attributes inherited from Node

#changes, #diagnostics, #lenv, #prev_node, #ret, #static_ret

Instance Method Summary collapse

Methods inherited from Node

#add_diagnostic, #boxes, #code_range, #define, #define0, #define_copy, #diff, #each_diagnostic, #each_subnode, #get_vertexes, #install, #install_copy, #modified_vars, #narrowings, #pretty_print_instance_variables, #remove_diagnostic, #subnodes, #traverse, #undefine, #undefine0, #uninstall

Constructor Details

#initialize(raw_node, lenv) ⇒ ItLocalVariableReadNode

Returns a new instance of ItLocalVariableReadNode.



30
31
32
# File 'lib/typeprof/core/ast/variable.rb', line 30

def initialize(raw_node, lenv)
  super(raw_node, lenv)
end

Instance Method Details

#attrsObject



34
# File 'lib/typeprof/core/ast/variable.rb', line 34

def attrs = {}

#install0(genv) ⇒ Object



36
37
38
# File 'lib/typeprof/core/ast/variable.rb', line 36

def install0(genv)
  @lenv.get_var(:it)
end

#retrieve_at(pos) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



40
41
42
# File 'lib/typeprof/core/ast/variable.rb', line 40

def retrieve_at(pos)
  yield self if code_range.include?(pos)
end