pub fn compile(
    context: &Context,
    sources: &mut Sources,
    unit: &UnitBuilder,
    diagnostics: &mut Diagnostics,
) -> Result<(), ()> {
    let visitor = Rc::new(NoopCompileVisitor::new());
    let source_loader = Rc::new(FileSourceLoader::new());

    compile_with_options(
        context,
        sources,
        unit,
        diagnostics,
        &Default::default(),
        visitor,
        source_loader,
    )?;

    Ok(())
}
/// Compile the given source with default options.
Compile the given source with default options.
Compile the given source with default options .
pub fn compile(
    context: &Context,
    sources: &mut Sources,
    unit: &UnitBuilder,
    diagnostics: &mut Diagnostics,
) -> Result<(), ()> {
    let visitor = Rc::new(NoopCompileVisitor::new());
    let source_loader = Rc::new(FileSourceLoader::new());
    compile_with_options(
        context,
        sources,
        unit,
        diagnostics,
        &Default::default(),
        visitor,
        source_loader,
    )?;
    Ok(())
}
pub fn compile ( context : & Context , sources : & mut Sources , unit : & UnitBuilder , diagnostics : & mut Diagnostics , ) -> Result < ( ) , ( ) > { let visitor = Rc :: new ( NoopCompileVisitor :: new ( ) ) ; let source_loader = Rc :: new ( FileSourceLoader :: new ( ) ) ; compile_with_options ( context , sources , unit , diagnostics , & Default :: default ( ) , visitor , source_loader , ) ? ; Ok ( ( ) ) }
Compile the given source with default options.
Compile the given source with default options .
context
&Context
sources
&mut Sources
unit
&UnitBuilder
diagnostics
&mut Diagnostics
context
&Context
sources
&mut Sources
unit
&UnitBuilder
diagnostics
&mut Diagnostics