class TypeProf::Core::AST::LiteralNode::NilNode::TrueNode::FalseNode::IntegerNode::FloatNode::RationalNode::ComplexNode::SymbolNode::InterpolatedSymbolNode

Attributes

parts[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/value.rb, line 102
def initialize(raw_node, lenv)
  super(raw_node, lenv)
  @parts = raw_node.parts.map do |raw_part|
    AST.create_part_node(raw_part, lenv)
  end
end

Public Instance Methods

install0(genv) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/value.rb, line 113
def install0(genv)
  @parts.each do |subnode|
    subnode.install(genv)
  end
  Source.new(genv.symbol_type)
end
subnodes(= { parts: }) click to toggle source
# File typeprof-0.30.1/lib/typeprof/core/ast/value.rb, line 111
  def subnodes = { parts: }

  def install0(genv)
    @parts.each do |subnode|
      subnode.install(genv)
    end
    Source.new(genv.symbol_type)
  end
end