Specializer
Constructors
def initialize(@env : TypeEnv, main_func : Ast::Function) @env = env main_def = env.function_defs[main_func.name][0] get_or_make_function(Location.zero, main_def, Slice(Type).empty, 0) end
Instance methods
env
Sourcefunctions
Sourceget_or_make_function(location : Location, function_def : FunctionDef, type_args : Slice(Type)) : Function
If the function already exists, just return it. Otherwise, insert it into the map and queue it for processing (unless it is an extern function, in which case there is no need to process it)
log
Sourcequeue
Sourcerun
Source