class Savi::Program::TypeWithValue

Defined in:

savi/program.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ident : Savi::AST::Identifier, target : Savi::Program::Type::Link) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def add_tag(tag : Symbol) #

[View source]
def has_tag?(tag : Symbol) #

[View source]
def ident : AST::Identifier #

[View source]
def ident=(ident : AST::Identifier) #

[View source]
def inspect(io : IO) #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def make_link(package : Package) #

[View source]
def make_link(package : Package::Link) #

[View source]
def target : Type::Link #

[View source]
def target=(target : Type::Link) #

[View source]
def value : UInt64 #

def value=(value : UInt64) #

[View source]
def value? : UInt64 | Nil #