class Savi::Compiler::TTypeCheck

Overview

TODO Document this pass

Defined in:

savi/compiler/t_type_check.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.validate_type_args(ctx : Context, type_check : ForReifiedFunc, node : AST::Node, mt : MetaType) #

[View source]
def self.verify_call_arg_count(ctx : Context, call : TInfer::FromCall, call_func, problems) #

[View source]
def self.verify_let_assign_call_site(ctx : Context, call : TInfer::FromCall, call_func : Program::Function, from_rf : ReifiedFunction) #

[View source]
def self.verify_safety_of_runtime_type_match(ctx : Context, pos : Source::Pos, lhs_mt : MetaType, rhs_mt : MetaType, lhs_pos : Source::Pos, rhs_pos : Source::Pos) #

[View source]

Instance Method Detail

def [](t_link : Program::Type::Link) #

[View source]
def [](rf : ReifiedFunction) #

[View source]
def []?(t_link : Program::Type::Link) #

[View source]
def []?(rf : ReifiedFunction) #

[View source]
def run(ctx) #

[View source]