class TypeProf::Core::AST::ArrayPatternNode::HashPatternNode::FindPatternNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 59 def initialize(raw_node, lenv) super(raw_node, lenv) @left = raw_node.left ? AST.create_pattern_node(raw_node.left.expression, lenv) : nil @requireds = raw_node.requireds.map {|raw_elem| AST.create_pattern_node(raw_elem, lenv) } @right = raw_node.right ? AST.create_pattern_node(raw_node.right.expression, lenv) : nil 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 70 def install0(genv) @left.install(genv) if @left @requireds.each do |pat| pat.install(genv) end @right.install(genv) if @right end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 68 def subnodes = { left:, requireds:, right: } def install0(genv) @left.install(genv) if @left @requireds.each do |pat| pat.install(genv) end @right.install(genv) if @right end end