infer_types

Function infer_types 

Source
pub fn infer_types(
    interner: &mut Interner,
    ast_map: &IndexMap<SourceId, Root>,
    symbol_table: &SymbolTable,
    dependency_analysis: &DependencyAnalysis,
    diag: &mut Diagnostics,
) -> TypeContext
Expand description

Run type inference on all definitions.

Processes definitions in dependency order (leaves first) to handle recursive definitions correctly.