class TypeProf::Core::AST::ArrayPatternNode::HashPatternNode::FindPatternNode::AltPatternNode

Attributes

left[R]
right[R]

Public Class Methods

new(raw_node, lenv) click to toggle source
Calls superclass method TypeProf::Core::AST::Node::new
# File typeprof-0.30.1/lib/typeprof/core/ast/pattern.rb, line 72
def initialize(raw_node, lenv)
  super(raw_node, lenv)
  @left = AST.create_pattern_node(raw_node.left, lenv)
  @right = AST.create_pattern_node(raw_node.right, lenv)
end

Public Instance Methods

install0(genv) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/pattern.rb, line 82
def install0(genv)
  @left.install(genv)
  @right.install(genv)
end
subnodes(= { left:, right: }) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/pattern.rb, line 80
  def subnodes = { left:, right: }

  def install0(genv)
    @left.install(genv)
    @right.install(genv)
  end
end