Skip to main content

compile_frontend_from_ast_with_options

Function compile_frontend_from_ast_with_options 

Source
pub fn compile_frontend_from_ast_with_options(
    ast: Ast,
    interner: ThreadedRodeo,
    preview_features: &PreviewFeatures,
) -> MultiErrorResult<CompileState>
Expand description

Compile from an already-parsed AST through all remaining frontend phases.

This runs: AST to RIR → semantic analysis → CFG construction. Use this when you already have a parsed AST (e.g., for --emit modes that need both AST output and later stage output without double-parsing).

This function collects errors from multiple functions instead of stopping at the first error, allowing users to see all issues at once.