class TypeProf::Core::AST::ArrayPatternNode::HashPatternNode::FindPatternNode::AltPatternNode::CapturePatternNode::IfPatternNode::PinnedPatternNode

Attributes

expr[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 126
def initialize(raw_node, lenv)
  super(raw_node, lenv)
  @expr = AST.create_node(raw_node.type == :pinned_variable_node ? raw_node.variable : raw_node.expression, lenv)
end

Public Instance Methods

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

  def install0(genv)
    @expr.install(genv)
  end
end