class TypeProf::Core::AST::ArrayPatternNode::HashPatternNode::FindPatternNode::AltPatternNode::CapturePatternNode::IfPatternNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 114 def initialize(raw_node, lenv) super(raw_node, lenv) @cond = AST.create_node(raw_node.predicate, lenv) raise if raw_node.statements.type != :statements_node raise if raw_node.statements.body.size != 1 @body = AST.create_pattern_node(raw_node.statements.body[0], lenv) raise if raw_node.subsequent end
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 127 def install0(genv) @cond.install(genv) @body.install(genv) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 125 def subnodes = { cond:, body: } def install0(genv) @cond.install(genv) @body.install(genv) end end