class TypeProf::Core::AST::LocalVariableReadNode::ItLocalVariableReadNode::LocalVariableWriteNode::InstanceVariableReadNode::InstanceVariableWriteNode::GlobalVariableReadNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/variable.rb, line 171 def initialize(raw_node, lenv) super(raw_node, lenv) @var = raw_node.name end
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/variable.rb, line 178 def attrs = { var: } def install0(genv) box = @changes.add_gvar_read_box(genv, @var) box.ret end def retrieve_at(pos) yield self if code_range.include?(pos) end end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/variable.rb, line 180 def install0(genv) box = @changes.add_gvar_read_box(genv, @var) box.ret end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/variable.rb, line 185 def retrieve_at(pos) yield self if code_range.include?(pos) end