sway_core

Function compile_to_asm

Source
pub fn compile_to_asm(
    handler: &Handler,
    engines: &Engines,
    input: Arc<str>,
    initial_namespace: &mut Root,
    build_config: &BuildConfig,
    package_name: &str,
    experimental: ExperimentalFeatures,
) -> Result<CompiledAsm, ErrorEmitted>
Expand description

Given input Sway source code, try compiling to a CompiledAsm, containing the asm in opcode form (not raw bytes/bytecode).