class TypeProf::Core::AST::StatementsNode::MultiWriteNode::MultiTargetNode::MatchWriteNode::DefinedNode::SplatNode::ForNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/misc.rb, line 266 def initialize(raw_node, lenv) super(raw_node, lenv) # XXX: tentative implementation # raw_node.index @expr = AST.create_node(raw_node.collection, 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
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/misc.rb, line 278 def install0(genv) @expr.install(genv) @body.install(genv) Source.new(genv.nil_type) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/misc.rb, line 276 def subnodes = { expr:, body: } def install0(genv) @expr.install(genv) @body.install(genv) Source.new(genv.nil_type) end end