class TypeProf::Core::AST::LocalVariableReadNode::ItLocalVariableReadNode::LocalVariableWriteNode::InstanceVariableReadNode::InstanceVariableWriteNode::GlobalVariableReadNode::GlobalVariableWriteNode::PostExecutionNode::ClassVariableWriteNode::ClassVariableReadNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/variable.rb, line 311 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 318 def attrs = { var: } def install0(genv) box = @changes.add_cvar_read_box(genv, lenv.cref.cpath, @var) @lenv.apply_ivar_narrowing(genv, self, @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 320 def install0(genv) box = @changes.add_cvar_read_box(genv, lenv.cref.cpath, @var) @lenv.apply_ivar_narrowing(genv, self, @var, box.ret) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/variable.rb, line 325 def retrieve_at(pos) yield self if code_range.include?(pos) end