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

Attributes

e1[R]
e2[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 210
def initialize(raw_node, lenv)
  super(raw_node, lenv)
  @e1 = AST.create_node(raw_node.left, lenv)
  @e2 = AST.create_node(raw_node.right, lenv)
end

Public Instance Methods

install0(genv) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 220
def install0(genv)
  @e1.install(genv)
  @e2.install(genv)
  Source.new(genv.true_type, genv.false_type)
end
subnodes(= { e1:, e2: }) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 218
  def subnodes = { e1:, e2: }

  def install0(genv)
    @e1.install(genv)
    @e2.install(genv)
    Source.new(genv.true_type, genv.false_type)
  end
end