class TypeProf::Core::AST::StatementsNode::MultiWriteNode::MatchWriteNode::DefinedNode::SplatNode::ForNode::FlipFlopNode::MatchRequiredNode

Attributes

pat[R]
value[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/misc.rb, line 228
def initialize(raw_node, lenv)
  super(raw_node, lenv)
  @value = AST.create_node(raw_node.value, lenv)
  @pat = AST.create_pattern_node(raw_node.pattern, lenv)
end

Public Instance Methods

install0(genv) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 238
def install0(genv)
  @value.install(genv)
  @pat.install(genv)
  Source.new(genv.nil_type)
end
subnodes(= { value:, pat: }) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 236
  def subnodes = { value:, pat: }

  def install0(genv)
    @value.install(genv)
    @pat.install(genv)
    Source.new(genv.nil_type)
  end
end