class Savi::Program::Type
- Savi::Program::Type
- Reference
- Object
Defined in:
savi/program.crConstant Summary
-
KNOWN_TAGS =
[:abstract, :actor, :allocated, :constructed, :enum, :hygienic, :ignores_cap, :numeric, :numeric_signed, :numeric_floating_point, :pass_by_value, :no_field_reassign, :simple_value, :singleton]
Constructors
Instance Method Summary
-
#==(other)
Returns
false
(other can only be aValue
here). - #add_tag(tag : Symbol)
- #cap : AST::Identifier
- #cap=(cap : AST::Identifier)
- #dup(*args)
- #dup_init(new_functions = nil)
- #find_default_constructor!
- #find_default_constructor?
- #find_func!(func_name)
- #find_func?(func_name)
- #find_similar_function(name : String)
- #functions : Array(Function)
- #functions_map_cow(&block : Function -> Function)
- #has_any_fields?
- #has_tag?(tag : Symbol)
- #head_hash(hasher)
- #head_hash
- #ident : AST::Identifier
- #ident=(ident : AST::Identifier)
- #ignores_cap?
-
#inspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #is_concrete?
- #is_instantiable?
- #make_link(package : Package)
- #make_link(package : Package::Link)
- #metadata : Hash(Symbol, Array(String) | Bool | UInt64)
- #param_count
- #params : AST::Group | Nil
- #params=(params : AST::Group | Nil)
- #tags_sorted
Constructor Detail
def self.new(cap : Savi::AST::Identifier, ident : Savi::AST::Identifier, params : Nil | Savi::AST::Group = nil)
#
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).
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>