Class: TypeProf::Core::AST::ItLocalVariableReadNode
- 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
- #attrs ⇒ Object
-
#initialize(raw_node, lenv) ⇒ ItLocalVariableReadNode
constructor
A new instance of ItLocalVariableReadNode.
- #install0(genv) ⇒ Object
- #retrieve_at(pos) {|_self| ... } ⇒ Object
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
#attrs ⇒ Object
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
40 41 42 |
# File 'lib/typeprof/core/ast/variable.rb', line 40 def retrieve_at(pos) yield self if code_range.include?(pos) end |