type_check_source

Function type_check_source 

Source
pub fn type_check_source(
    source: &str,
    filename: &str,
    options: &CompileOptions,
) -> Result<(Hir, SourceMap), Vec<Diagnostic>>
Expand description

Type check source code and return the HIR.

Useful for tools that need type information (LSP, documentation) without lowering to MIR.