struct SimpleSub::CompactType

Defined in:

simple_sub/compact_type.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from(input : Typer::Type, polarity : Bool, analysis : Analysis, parents = Set(TypeVariable).new) : CompactType #

[View source]
def self.new(vars : Set(SimpleSub::Typer::TypeVariable) | Nil = nil, prims : Set(SimpleSub::Typer::TypePrimitive) | Nil = nil, rec : Nil | Hash(String, SimpleSub::CompactType) = nil, fn : Nil | Array(SimpleSub::CompactType) = nil) #

[View source]

Class Method Detail

def self.simplified_from(input : Typer::Type, polarity = true) #

[View source]

Instance Method Detail

def fn : Array(CompactType) | Nil #

[View source]
def fn=(fn : Array(CompactType) | Nil) #

[View source]
def prims : Set(TypePrimitive) | Nil #

[View source]
def prims=(prims : Set(TypePrimitive) | Nil) #

[View source]
def rec : Hash(String, CompactType) | Nil #

[View source]
def rec=(rec : Hash(String, CompactType) | Nil) #

[View source]
def show(io : IO, polarity = true) #

[View source]
def show(polarity = true) #

[View source]
def vars : Set(TypeVariable) | Nil #

[View source]
def vars=(vars : Set(TypeVariable) | Nil) #

[View source]