pub fn compile_executable_function_in_prepared_db(
db: &RootDatabase,
executable: ConcreteFunctionWithBodyId,
diagnostics_reporter: DiagnosticsReporter<'_>,
) -> Result<CompiledFunction>Expand description
Runs compiler for an executable function.
§Arguments
db- Preloaded compilation database.executable-ConcreteFunctionWithBodyIds to compile.compiler_config- The compiler configuration.
§Returns
Ok(Vec<String>)- The result artifact of the compilation.Err(anyhow::Error)- Compilation failed.