class Stacklang::Unit

Defined in:

stacklang/compiler/unit.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ast : AST::Unit, path : Path, compiler : Compiler) #

[View source]

Instance Method Detail

def compile #

[View source]
def externs #

[View source]
def functions #

[View source]
def globals : Hash(String, Global) #

[View source]
def path : Path #

[View source]
def requirements : Array(Unit) #

Get the unit of all the directly required units.


[View source]
def self_functions #

[View source]
def self_globals : Array(Global) #

[View source]
def self_structs #

[View source]
def structs : Hash(String, Type::Struct) #

Get all the structs that accessible to this unit. They are solved during this process.


[View source]
def traverse(units) #

Get the unit of all the directly and indirectly required units.


[View source]
def traverse #

Get the unit of all the directly and indirectly required units.


[View source]
def typeinfo(constraint) #

[View source]