class TypeProf::Core::AST::BranchNode::LoopNode::BreakNode::NextNode::WhenNode::CaseNode::CaseMatchNode::AndNode::OrNode::ReturnNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 486 def initialize(raw_node, lenv) super(raw_node, lenv) @arg = AST.parse_return_arguments(raw_node, lenv, code_range) end
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 495 def install0(genv) @arg.install(genv) e_ret = @lenv.locals[:"*expected_method_ret"] @lenv.add_return_box(@changes.add_escape_box(genv, @arg.ret)) if e_ret Source.new(Type::Bot.new(genv)) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 493 def subnodes = { arg: } def install0(genv) @arg.install(genv) e_ret = @lenv.locals[:"*expected_method_ret"] @lenv.add_return_box(@changes.add_escape_box(genv, @arg.ret)) if e_ret Source.new(Type::Bot.new(genv)) end end