sway_core

Function ast_to_asm

Source
pub fn ast_to_asm(
    handler: &Handler,
    engines: &Engines,
    programs: &Programs,
    build_config: &BuildConfig,
    experimental: ExperimentalFeatures,
) -> Result<CompiledAsm, ErrorEmitted>
Expand description

Given an AST compilation result, try compiling to a CompiledAsm, containing the asm in opcode form (not raw bytes/bytecode).