/// Construct output from compile result.
Construct output from compile result.
Construct output from compile result .
fn output(
        output: Value,
        diagnostics_output: Option<String>,
        diagnostics: Vec<Diagnostic>,
        instructions: Option<String>,
    ) -> Self {
        Self {
            error: None,
            diagnostics_output,
            diagnostics,
            result: Some(format!("{:?}", output)),
            output: core::drain_output(),
            instructions,
        }
    }
fn output ( output : Value , diagnostics_output : Option < String > , diagnostics : Vec < Diagnostic > , instructions : Option < String > , ) -> Self { Self { error : None , diagnostics_output , diagnostics , result : Some ( format ! ( " " output ) ) , output : core :: drain_output ( ) , instructions , } }
Construct output from compile result.
Construct output from compile result .
output
Value
diagnostics_output
Option<String>
diagnostics
Vec<Diagnostic>
instructions
Option<String>