class TypeProf::Core::AST::LocalVariableReadNode::LocalVariableWriteNode::InstanceVariableReadNode::InstanceVariableWriteNode::GlobalVariableReadNode::GlobalVariableWriteNode::PostExecutionNode::ClassVariableWriteNode::ClassVariableReadNode::RegexpReferenceReadNode

Attributes

var[R]

Public Class Methods

new(raw_node, lenv) click to toggle source
Calls superclass method TypeProf::Core::AST::Node::new
# File typeprof-0.30.1/lib/typeprof/core/ast/variable.rb, line 301
def initialize(raw_node, lenv)
  super(raw_node, lenv)
  @var = raw_node.type == :back_reference_read_node ? :"$&" : :"$#{raw_node.number}"
end

Public Instance Methods

attrs(= { var: }) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/variable.rb, line 308
  def attrs = { var: }

  def install0(genv)
    Source.new(genv.str_type)
  end
end
install0(genv) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/variable.rb, line 310
def install0(genv)
  Source.new(genv.str_type)
end