sway_core

Function compile_to_bytecode

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

Given input Sway source code, compile to CompiledBytecode, containing the asm in bytecode form.