class TypeProf::Core::AST::BranchNode::LoopNode::BreakNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 195 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
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 211 def self.parse_return_arguments(raw_node, lenv, code_range) if raw_node.arguments elems = raw_node.arguments.arguments if elems.one? AST.create_node(elems.first, lenv) else ArrayNode.new(raw_node.arguments, lenv, elems) end else DummyNilNode.new(code_range, lenv) end end
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 204 def install0(genv) arg = @arg.install(genv) @changes.add_edge(genv, arg, @lenv.get_break_vtx) Source.new() end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/control.rb, line 202 def subnodes = { arg: } def install0(genv) arg = @arg.install(genv) @changes.add_edge(genv, arg, @lenv.get_break_vtx) Source.new() end end