module

Heucristic::Resolve::Builtins

Constants

ABSTRACT = {"Object", "Value", "Number", "Int", "Float", "Struct", "Enum"}
CONSTANTS = {"Crystal::BUILD_COMMIT", "Crystal::BUILD_DATE", "Crystal::CACHE_DIR", "Crystal::DEFAULT_PATH", "Crystal::DESCRIPTION", "Crystal::PATH", "Crystal::VERSION", "Crystal::LLVM_VERSION", "Crystal::HOST_TRIPLE", "Crystal::TARGET_TRIPLE", "Crystal::LIBRARY_PATH", "Crystal::LIBRARY_RPATH", "Crystal::USER_FLAGS", "Crystal::ALL_FLAGS"}
GENERICS = [Generic.new("Tuple", ["T"], 0), Generic.new("NamedTuple", ["T"], 0), Generic.new("Proc", ["T", "R"], 0), Generic.new("Union", ["T"], 0), Generic.new("Pointer", ["T"], nil), Generic.new("StaticArray", ["T", "N"], nil)]
NILABLE_STRING_CONSTANTS = {"Crystal::BUILD_COMMIT"}
ROOTS = {"Object", "NoReturn", "Void", "Enumerable", "Indexable", "Crystal"}
STRING_ARRAY_CONSTANTS = {"Crystal::USER_FLAGS", "Crystal::ALL_FLAGS"}
SUMMARIES = {"NoReturn" => "the type of an expression that never returns", "Void" => "C's void, only meaningful in lib bindings and behind a pointer"}
SUPERCLASSES = { {"Reference", "Object"}, {"Value", "Object"}, {"Number", "Value"}, {"Nil", "Value"}, {"Bool", "Value"}, {"Char", "Value"}, {"Int", "Number"}, {"Int8", "Int"}, {"UInt8", "Int"}, {"Int16", "Int"}, {"UInt16", "Int"}, {"Int32", "Int"}, {"UInt32", "Int"}, {"Int64", "Int"}, {"UInt64", "Int"}, {"Int128", "Int"}, {"UInt128", "Int"}, {"Float", "Number"}, {"Float32", "Float"}, {"Float64", "Float"}, {"Symbol", "Value"}, {"Pointer", "Value"}, {"Tuple", "Value"}, {"NamedTuple", "Value"}, {"StaticArray", "Value"}, {"String", "Reference"}, {"Class", "Value"}, {"Struct", "Value"}, {"Array", "Reference"}, {"Hash", "Reference"}, {"Regex", "Reference"}, {"Range", "Struct"}, {"Slice", "Struct"}, {"Exception", "Reference"}, {"Enum", "Value"}, {"Proc", "Value"}, {"Union", "Value"} }

Class methods

abstract?(name : String) : Bool
Source
abstract?(identity : Index::Identity) : Bool
Source
constant?(name : String) : Bool
Source
constant_type(name : String) : Syntax::Type | Nil
Source
includes?(name : String) : Bool
Source
splat_index(name : String) : Int32 | Nil
Source
summary(name : String) : String | Nil
Source
superclass(name : String) : String | NoSuperclass
Source
type_vars(name : String) : Array(String)
Source

Nested types