class TypeProf::Core::AST::LocalVariableReadNode::LocalVariableWriteNode::InstanceVariableReadNode::InstanceVariableWriteNode::GlobalVariableReadNode::GlobalVariableWriteNode::PostExecutionNode
Attributes
body[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 218 def initialize(raw_node, lenv) super(raw_node, lenv) @body = raw_node.statements ? AST.create_node(raw_node.statements, lenv) : DummyNilNode.new(TypeProf::CodeRange.new(code_range.last, code_range.last), lenv) end
Public Instance Methods
install0(genv)
click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/variable.rb, line 227 def install0(genv) @body.install(genv) Source.new(genv.nil_type) end
subnodes(= { body: })
click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/variable.rb, line 225 def subnodes = { body: } def install0(genv) @body.install(genv) Source.new(genv.nil_type) end end