sway_core

Function compile_to_ast

Source
pub fn compile_to_ast(
    handler: &Handler,
    engines: &Engines,
    input: Arc<str>,
    initial_namespace: &mut Root,
    build_config: Option<&BuildConfig>,
    package_name: &str,
    retrigger_compilation: Option<Arc<AtomicBool>>,
    experimental: ExperimentalFeatures,
) -> Result<Programs, ErrorEmitted>